[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/main.c between version 1.9 and 1.10

version 1.9, 2009/07/06 22:12:38 version 1.10, 2009/07/07 00:16:21
Line 539 
Line 539 
 static int  static int
 foptions(int *fflags, char *arg)  foptions(int *fflags, char *arg)
 {  {
         char            *v;          char            *v, *o;
         char            *toks[6];          char            *toks[6];
   
         toks[0] = "ign-scope";          toks[0] = "ign-scope";
Line 549 
Line 549 
         toks[4] = "strict";          toks[4] = "strict";
         toks[5] = NULL;          toks[5] = NULL;
   
         while (*arg)          while (*arg) {
                   o = arg;
                 switch (getsubopt(&arg, toks, &v)) {                  switch (getsubopt(&arg, toks, &v)) {
                 case (0):                  case (0):
                         *fflags |= IGN_SCOPE;                          *fflags |= IGN_SCOPE;
Line 568 
Line 569 
                                    NO_IGN_MACRO | NO_IGN_CHARS;                                     NO_IGN_MACRO | NO_IGN_CHARS;
                         break;                          break;
                 default:                  default:
                         warnx("bad argument: -f%s", suboptarg);                          warnx("bad argument: -f%s", o);
                         return(0);                          return(0);
                 }                  }
           }
   
         return(1);          return(1);
 }  }
Line 579 
Line 581 
 static int  static int
 woptions(int *wflags, char *arg)  woptions(int *wflags, char *arg)
 {  {
         char            *v;          char            *v, *o;
         char            *toks[5];          char            *toks[5];
   
         toks[0] = "all";          toks[0] = "all";
Line 588 
Line 590 
         toks[3] = "error";          toks[3] = "error";
         toks[4] = NULL;          toks[4] = NULL;
   
         while (*arg)          while (*arg) {
                   o = arg;
                 switch (getsubopt(&arg, toks, &v)) {                  switch (getsubopt(&arg, toks, &v)) {
                 case (0):                  case (0):
                         *wflags |= WARN_WALL;                          *wflags |= WARN_WALL;
Line 603 
Line 606 
                         *wflags |= WARN_WERR;                          *wflags |= WARN_WERR;
                         break;                          break;
                 default:                  default:
                         warnx("bad argument: -W%s", suboptarg);                          warnx("bad argument: -W%s", o);
                         return(0);                          return(0);
                 }                  }
           }
   
         return(1);          return(1);
 }  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10