/[global]/global/libutil/die.h
ViewVC logotype

Diff of /global/libutil/die.h

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

revision 1.13 by shigio, Tue May 10 05:17:52 2005 UTC revision 1.14 by shigio, Tue Oct 4 05:53:53 2005 UTC
# Line 25  Line 25 
25  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
26  #include <config.h>  #include <config.h>
27  #endif  #endif
   
 #ifdef HAVE_STDARG_H  
28  #include <stdarg.h>  #include <stdarg.h>
 #else  
 #include <varargs.h>  
 #endif  
29    
30  #ifndef __attribute__  #ifndef __attribute__
31  /* This feature is available in gcc versions 2.5 and later.  */  /* This feature is available in gcc versions 2.5 and later.  */
# Line 51  void setquiet(); Line 46  void setquiet();
46  void setverbose();  void setverbose();
47  void setdebug();  void setdebug();
48  void sethandler(void (*proc)());  void sethandler(void (*proc)());
 #ifdef HAVE_STDARG_H  
49  void die(const char *s, ...)  void die(const char *s, ...)
50          __attribute__ ((__noreturn__, __format__ (__printf__, 1, 2)));          __attribute__ ((__noreturn__, __format__ (__printf__, 1, 2)));
 #else  
 void die();  
 #endif  
 #ifdef HAVE_STDARG_H  
51  void die_with_code(int n, const char *s, ...)  void die_with_code(int n, const char *s, ...)
52          __attribute__ ((__noreturn__, __format__ (__printf__, 2, 3)));          __attribute__ ((__noreturn__, __format__ (__printf__, 2, 3)));
 #else  
 void die_with_code();  
 #endif  
 #ifdef HAVE_STDARG_H  
53  void message(const char *s, ...)  void message(const char *s, ...)
54          __attribute__ ((__format__ (__printf__, 1, 2)));          __attribute__ ((__format__ (__printf__, 1, 2)));
 #else  
 void message();  
 #endif  
 #ifdef HAVE_STDARG_H  
55  void warning(const char *s, ...)  void warning(const char *s, ...)
56          __attribute__ ((__format__ (__printf__, 1, 2)));          __attribute__ ((__format__ (__printf__, 1, 2)));
 #else  
 void warning();  
 #endif  
57    
58  #endif /* ! _DIE_H_ */  #endif /* ! _DIE_H_ */

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26