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

SCM Repository

[diderot] Diff of /branches/vis15/src/lib/common/util.cxx
ViewVC logotype

Diff of /branches/vis15/src/lib/common/util.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

branches/vis15/src/lib/common/nrrd.cxx revision 3824, Thu May 5 15:57:28 2016 UTC branches/vis15/src/lib/common/util.cxx revision 3825, Thu May 5 16:23:54 2016 UTC
# Line 1  Line 1 
1  /*! \file nrrd.cxx  /*! \file util.cxx
2   *   *
3   * \author John Reppy   * \author John Reppy
4   */   */
# Line 12  Line 12 
12    
13  #include <cstdlib>  #include <cstdlib>
14  #include "diderot/image.hxx"  #include "diderot/image.hxx"
15    #include "teem/biff.h"
16    
17  namespace Diderot {  namespace Diderot {
18    
# Line 32  Line 33 
33    
34  }  }
35    
36    void error (struct WorldBase *wrld, const char *fmt, ...)
37    {
38        char buf[1024];
39        va_list ap;
40    
41    // NOTE: if there was a biffMsg function that worked with va_lists, then we
42    // could avoid the buffer
43        va_start (ap, fmt);
44        vsnprintf (buf, sizeof(buf), fmt, ap);
45        va_end (ap);
46    
47        biffMsgAdd (wrld->errors, buf);
48    }
49    
50    
51  } // namespace Diderot  } // namespace Diderot

Legend:
Removed from v.3824  
changed lines
  Added in v.3825

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