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

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

version 1.53, 2009/10/31 06:10:57 version 1.54, 2009/10/31 06:17:19
Line 108  static struct mdoc  *mdoc_init(struct curparse *);
Line 108  static struct mdoc  *mdoc_init(struct curparse *);
 __dead  static void       version(void);  __dead  static void       version(void);
 __dead  static void       usage(void);  __dead  static void       usage(void);
   
 extern  char             *__progname;  static  const char       *progname;
   
   
 int  int
Line 118  main(int argc, char *argv[])
Line 118  main(int argc, char *argv[])
         struct buf       ln, blk;          struct buf       ln, blk;
         struct curparse  curp;          struct curparse  curp;
   
           progname = strrchr(argv[0], '/');
           if (progname == NULL)
                   progname = argv[0];
           else
                   ++progname;
   
         memset(&curp, 0, sizeof(struct curparse));          memset(&curp, 0, sizeof(struct curparse));
   
         curp.inttype = INTT_AUTO;          curp.inttype = INTT_AUTO;
Line 210  __dead static void
Line 216  __dead static void
 version(void)  version(void)
 {  {
   
         (void)printf("%s %s\n", __progname, VERSION);          (void)printf("%s %s\n", progname, VERSION);
         exit(EXIT_SUCCESS);          exit(EXIT_SUCCESS);
 }  }
   
Line 221  usage(void)
Line 227  usage(void)
   
         (void)fprintf(stderr, "usage: %s [-V] [-foption...] "          (void)fprintf(stderr, "usage: %s [-V] [-foption...] "
                         "[-mformat] [-Ooption] [-Toutput] "                          "[-mformat] [-Ooption] [-Toutput] "
                         "[-Werr...]\n", __progname);                          "[-Werr...]\n", progname);
         exit(EXIT_FAILURE);          exit(EXIT_FAILURE);
 }  }
   

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

CVSweb