Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis12/src/lib/common/util.c
ViewVC logotype

View of /branches/vis12/src/lib/common/util.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1978 - (download) (as text) (annotate)
Sat Jul 21 16:19:40 2012 UTC (9 years, 4 months ago) by jhr
File size: 543 byte(s)
  Working on sequence loading
/*! \file util.c
 *
 * \author John Reppy
 */

/*
 * COPYRIGHT (c) 2012 The Diderot Project (http://diderot-language.cs.uchicago.edu)
 * All rights reserved.
 */

#include "Diderot/diderot.h"
#include "teem/biff.h"

void Diderot_Error (WorldPrefix_t *wrld, const char *fmt, ...)
{
    char buf[1024];
    va_list ap;

// NOTE: if there was a biffMsg function that worked with va_lists, then we
// could avoid the buffer
    va_start (ap, fmt);
    vsnprintf (buf, sizeof(buf), fmt, ap);
    va_end (ap);

    biffMsgAdd(wrld->errors, buf);
}


root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0