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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2107 - (download) (as text) (annotate)
Fri Dec 7 13:25:59 2012 UTC (9 years, 6 months ago) by jhr
File size: 543 byte(s)
  Porting changes from vis12 branch into stage.
/*! \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);

ViewVC Help
Powered by ViewVC 1.0.0