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

Diff for /mandoc/main.c between version 1.47 and 1.49

version 1.47, 2009/10/26 04:15:42 version 1.49, 2009/10/26 08:42:37
Line 35 
Line 35 
   
 #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);
 # ifndef __dead  # ifndef __dead
 #  define __dead __attribute__((__noreturn__))  #  define __dead __attribute__((__noreturn__))
 # endif  # endif
Line 88  struct curparse {
Line 89  struct curparse {
         out_man           outman;          out_man           outman;
         out_free          outfree;          out_free          outfree;
         void             *outdata;          void             *outdata;
         char             *outopts;          char              outopts[BUFSIZ];
 };  };
   
 static  int               foptions(int *, char *);  static  int               foptions(int *, char *);
Line 134  main(int argc, char *argv[])
Line 135  main(int argc, char *argv[])
                         if ( ! moptions(&curp.inttype, optarg))                          if ( ! moptions(&curp.inttype, optarg))
                                 return(EXIT_FAILURE);                                  return(EXIT_FAILURE);
                         break;                          break;
                 case ('o'):                  case ('O'):
                         curp.outopts = optarg;                          (void)strlcat(curp.outopts, optarg, BUFSIZ);
                           (void)strlcat(curp.outopts, ",", BUFSIZ);
                         break;                          break;
                 case ('T'):                  case ('T'):
                         if ( ! toptions(&curp.outtype, optarg))                          if ( ! toptions(&curp.outtype, optarg))
Line 221  usage(void)
Line 223  usage(void)
 {  {
   
         (void)fprintf(stderr, "usage: %s [-V] [-foption...] "          (void)fprintf(stderr, "usage: %s [-V] [-foption...] "
                         "[-mformat] [-Toutput] [-Werr...]\n",                          "[-mformat] [-Ooption] [-Toutput] "
                         __progname);                          "[-Werr...]\n", __progname);
         exit(EXIT_FAILURE);          exit(EXIT_FAILURE);
 }  }
   

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.49

CVSweb