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

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

version 1.48, 2009/10/26 08:18:16 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 135  main(int argc, char *argv[])
Line 136  main(int argc, char *argv[])
                                 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))

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

CVSweb