/[jscoverage]/trunk/util.h
ViewVC logotype

Diff of /trunk/util.h

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

revision 370 by siliconforks, Mon Oct 27 20:34:27 2008 UTC revision 399 by siliconforks, Tue Dec 9 03:37:47 2008 UTC
# Line 29  Line 29 
29    
30  #include <sys/stat.h>  #include <sys/stat.h>
31    
32    #ifdef __cplusplus
33    extern "C" {
34    #endif
35    
36  extern const char * program;  extern const char * program;
37    
38  void fatal(const char * format, ...)  void fatal(const char * format, ...)
# Line 43  Line 47 
47    __attribute__((__noreturn__))    __attribute__((__noreturn__))
48    __attribute__((__format__(printf, 3, 4)));    __attribute__((__format__(printf, 3, 4)));
49    
50    void warn_source(const char * source_file, unsigned int line_number, const char * format, ...)
51      __attribute__((__format__(printf, 3, 4)));
52    
53  void version(void)  void version(void)
54    __attribute__((__noreturn__));    __attribute__((__noreturn__));
55    
# Line 60  Line 67 
67    
68  char * xstrndup(const char * s, size_t size);  char * xstrndup(const char * s, size_t size);
69    
70  int xasprintf(char ** s, const char * template, ...) __attribute__((__format__(printf, 2, 3)));  int xasprintf(char ** s, const char * format, ...) __attribute__((__format__(printf, 2, 3)));
71    
72  char * xgetcwd(void);  char * xgetcwd(void);
73    
# Line 112  Line 119 
119  #endif  #endif
120    
121  #ifndef HAVE_VASPRINTF  #ifndef HAVE_VASPRINTF
122  int vasprintf(char ** s, const char * template, va_list a);  int vasprintf(char ** s, const char * format, va_list a);
123  #endif  #endif
124    
125  #ifndef HAVE_ASPRINTF  #ifndef HAVE_ASPRINTF
126  int asprintf(char ** s, const char * template, ...) __attribute__((__format__(printf, 2, 3)));  int asprintf(char ** s, const char * format, ...) __attribute__((__format__(printf, 2, 3)));
127  #endif  #endif
128    
129    #ifdef __cplusplus
130    }
131  #endif  #endif
132    
133    #endif /* UTIL_H_ */

Legend:
Removed from v.370  
changed lines
  Added in v.399

  ViewVC Help
Powered by ViewVC 1.1.24