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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1978 - (view) (download) (as text)

1 : jhr 1978 /*! \file util.c
2 :     *
3 :     * \author John Reppy
4 :     */
5 :    
6 :     /*
7 :     * COPYRIGHT (c) 2012 The Diderot Project (http://diderot-language.cs.uchicago.edu)
8 :     * All rights reserved.
9 :     */
10 :    
11 :     #include "Diderot/diderot.h"
12 :     #include "teem/biff.h"
13 :    
14 :     void Diderot_Error (WorldPrefix_t *wrld, const char *fmt, ...)
15 :     {
16 :     char buf[1024];
17 :     va_list ap;
18 :    
19 :     // NOTE: if there was a biffMsg function that worked with va_lists, then we
20 :     // could avoid the buffer
21 :     va_start (ap, fmt);
22 :     vsnprintf (buf, sizeof(buf), fmt, ap);
23 :     va_end (ap);
24 :    
25 :     biffMsgAdd(wrld->errors, buf);
26 :     }
27 :    

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