/[gnats]/gnats/gnats/gnats.h
ViewVC logotype

Diff of /gnats/gnats/gnats.h

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

revision 1.54 by hatzis, Thu Feb 24 19:21:12 2005 UTC revision 1.55 by chewie, Thu Feb 24 21:21:22 2005 UTC
# Line 32  Software Foundation, 59 Temple Place - S Line 32  Software Foundation, 59 Temple Place - S
32    
33  #include "config.h"  #include "config.h"
34    
 /* Define these for the default settings */  
 #include <ansidecl.h>  
 #include <libiberty.h>  
   
35  #include <stdio.h>  #include <stdio.h>
36  #include <time.h>  #include <time.h>
37  /* On FreeBSD this ends up defining RE_DUP_MAX.  We need to make sure it's  /* On FreeBSD this ends up defining RE_DUP_MAX.  We need to make sure it's
38     included before our regex.h. */     included before our regex.h. */
39  #include <sys/param.h>  #include <sys/param.h>
40    
41    /* Use some miscelaneous functions; should be included after stdio.h */
42    #include "ansidecl.h"
43    
44    /* If system have getopt_long() it seems GNU compliant and likely use
45       GNU-compatible getopt() as well. Otherwise, we will use getopt*()
46       from libiberty. */
47    #ifdef HAVE_GETOPT
48    #define HAVE_DECL_GETOPT 1
49    #else
50    #define HAVE_DECL_GETOPT 0
51    #endif /* HAVE_GETOPT */
52    #ifdef HAVE_GETOPT_LONG
53    #include <getopt.h>
54    #else
55    #include "gnugetopt.h"
56    #endif /* HAVE_GETOPT_LONG */
57    
58  #include <sys/types.h>  #include <sys/types.h>
59  #include <sys/stat.h>  #include <sys/stat.h>
 #include <getopt.h>  
60  #ifndef S_ISREG                 /* Doesn't have POSIX.1 stat stuff. */  #ifndef S_ISREG                 /* Doesn't have POSIX.1 stat stuff. */
61  #define mode_t unsigned short  #define mode_t unsigned short
62  #endif  #endif
# Line 86  extern int errno; Line 98  extern int errno;
98  #include <sys/file.h>  #include <sys/file.h>
99  #endif  #endif
100    
101  #ifdef HAVE_LIBGEN_H  #if defined(HAVE_LIBGEN_H)
102    #  if defined(HAVE_BASENAME) || defined(HAVE_DIRNAME)
103  #include <libgen.h>  #include <libgen.h>
104  #endif  #  endif
105    #endif /* HAVE_LIBGEN_H */
106    
107  #ifndef alloca  #ifndef alloca
108  /* Make alloca work the best possible way.  */  /* Make alloca work the best possible way.  */
# Line 392  extern FILE *open_mail_file (const Datab Line 406  extern FILE *open_mail_file (const Datab
406  extern void close_mail_file (FILE *);  extern void close_mail_file (FILE *);
407  extern char *quote_string (const char *string);  extern char *quote_string (const char *string);
408  extern StringList *new_string_list_ent (char *string, StringList *next);  extern StringList *new_string_list_ent (char *string, StringList *next);
409    extern PTR xmalloc (size_t size);
410    extern PTR xrealloc (PTR ptr, size_t size);
411    extern char *xstrdup (const char *string);
412  extern char *xstrndup (const char *string, size_t length);  extern char *xstrndup (const char *string, size_t length);
413  extern const char *temporary_directory (void);  extern const char *temporary_directory (void);
414  extern int open_temporary_file (char *template, int mode);  extern int open_temporary_file (char *template, int mode);
# Line 402  extern size_t gnats_strftime (char *s, s Line 419  extern size_t gnats_strftime (char *s, s
419  extern void usage (const char *const texts[], int exit_code);  extern void usage (const char *const texts[], int exit_code);
420  extern void version (const char *const program_name);  extern void version (const char *const program_name);
421  extern bool value_is_empty (const char *string);  extern bool value_is_empty (const char *string);
422    #ifndef HAVE_ASPRINTF
423    extern int asprintf (char **ret, const char *format, ...) ATTRIBUTE_PRINTF_2;
424    #endif
425    #ifndef HAVE_VASPRINTF
426    extern int vasprintf (char **ret, const char *format, va_list) ATTRIBUTE_PRINTF(2,0);
427    #endif
428    #ifndef HAVE_BASENAME
429    extern char *basename (char *path);
430    #endif
431    
432  #endif /* !_gnats_h_ */  #endif /* !_gnats_h_ */

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

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