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

Diff for /src/usr.bin/mandoc/Attic/apropos.c between version 1.3 and 1.4

version 1.3, 2011/11/13 09:58:21 version 1.4, 2011/11/13 11:07:10
Line 33 
Line 33 
 int  int
 apropos(int argc, char *argv[])  apropos(int argc, char *argv[])
 {  {
         int              ch, cs;          int              ch;
         struct opts      opts;          struct opts      opts;
         struct expr     *e;          struct expr     *e;
         extern int       optind;          extern int       optind;
Line 47 
Line 47 
         else          else
                 ++progname;                  ++progname;
   
         cs = 0;          while (-1 != (ch = getopt(argc, argv, "S:s:")))
   
         while (-1 != (ch = getopt(argc, argv, "S:s:I")))  
                 switch (ch) {                  switch (ch) {
                 case ('S'):                  case ('S'):
                         opts.arch = optarg;                          opts.arch = optarg;
Line 57 
Line 55 
                 case ('s'):                  case ('s'):
                         opts.cat = optarg;                          opts.cat = optarg;
                         break;                          break;
                 case ('I'):  
                         cs = 1;  
                         break;  
                 default:                  default:
                         usage();                          usage();
                         return(EXIT_FAILURE);                          return(EXIT_FAILURE);
Line 71 
Line 66 
         if (0 == argc)          if (0 == argc)
                 return(EXIT_SUCCESS);                  return(EXIT_SUCCESS);
   
         if (NULL == (e = exprcomp(cs, argv, argc))) {          if (NULL == (e = exprcomp(argc, argv))) {
                 fprintf(stderr, "Bad expression\n");                  fprintf(stderr, "Bad expression\n");
                 return(EXIT_FAILURE);                  return(EXIT_FAILURE);
         }          }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4