[BACK]Return to main.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/main.c between version 1.54 and 1.55

version 1.54, 2009/10/31 06:17:19 version 1.55, 2009/11/02 08:08:23
Line 30 
Line 30 
   
 #define UNCONST(a)      ((void *)(uintptr_t)(const void *)(a))  #define UNCONST(a)      ((void *)(uintptr_t)(const void *)(a))
   
 /* Account for FreeBSD and Linux in our declarations. */  /* FIXME: Intel's compiler?  LLVM?  pcc?  */
   
   #if !defined(__GNUC__) || (__GNUC__ < 2)
   # define __attribute__(x)
   #endif /* !defined(__GNUC__) || (__GNUC__ < 2) */
   
 #ifdef __linux__  #ifdef __linux__
 extern  int               getsubopt(char **, char * const *, char **);  extern  int               getsubopt(char **, char * const *, char **);
 extern  size_t            strlcat(char *, const char *, size_t);  extern  size_t            strlcat(char *, const char *, size_t);
 # ifndef __dead  
 #  define __dead __attribute__((__noreturn__))  
 # endif  
 #elif defined(__dead2)  
 # ifndef __dead  
 #  define __dead __dead2  
 # endif  
 #endif  #endif
   
 typedef void            (*out_mdoc)(void *, const struct mdoc *);  typedef void            (*out_mdoc)(void *, const struct mdoc *);
Line 105  static int    pset(const char *, int, struct curparse 
Line 102  static int    pset(const char *, int, struct curparse 
                                 struct man **, struct mdoc **);                                  struct man **, struct mdoc **);
 static  struct man       *man_init(struct curparse *);  static  struct man       *man_init(struct curparse *);
 static  struct mdoc      *mdoc_init(struct curparse *);  static  struct mdoc      *mdoc_init(struct curparse *);
 __dead  static void       version(void);  static  void              version(void) __attribute__((noreturn));
 __dead  static void       usage(void);  static  void              usage(void) __attribute__((noreturn));
   
 static  const char       *progname;  static  const char       *progname;
   
Line 212  main(int argc, char *argv[])
Line 209  main(int argc, char *argv[])
 }  }
   
   
 __dead static void  static void
 version(void)  version(void)
 {  {
   
Line 221  version(void)
Line 218  version(void)
 }  }
   
   
 __dead static void  static void
 usage(void)  usage(void)
 {  {
   

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

CVSweb