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

Diff for /mandoc/main.c between version 1.341 and 1.342

version 1.341, 2020/01/20 10:37:15 version 1.342, 2020/02/06 19:41:40
Line 1 
Line 1 
 /*      $Id$ */  /*      $Id$ */
 /*  /*
  * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>   * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010-2012, 2014-2019 Ingo Schwarze <schwarze@openbsd.org>   * Copyright (c) 2010-2012, 2014-2020 Ingo Schwarze <schwarze@openbsd.org>
  * Copyright (c) 2010 Joerg Sonnenberger <joerg@netbsd.org>   * Copyright (c) 2010 Joerg Sonnenberger <joerg@netbsd.org>
  *   *
  * Permission to use, copy, modify, and distribute this software for any   * Permission to use, copy, modify, and distribute this software for any
Line 326  main(int argc, char *argv[])
Line 326  main(int argc, char *argv[])
   
         /* Postprocess options. */          /* Postprocess options. */
   
         if (outmode == OUTMODE_DEF) {          switch (outmode) {
           case OUTMODE_DEF:
                 switch (search.argmode) {                  switch (search.argmode) {
                 case ARG_FILE:                  case ARG_FILE:
                         outmode = OUTMODE_ALL;                          outmode = OUTMODE_ALL;
Line 339  main(int argc, char *argv[])
Line 340  main(int argc, char *argv[])
                         outmode = OUTMODE_LST;                          outmode = OUTMODE_LST;
                         break;                          break;
                 }                  }
                   break;
           case OUTMODE_FLN:
                   if (search.argmode == ARG_FILE)
                           outmode = OUTMODE_ALL;
                   break;
           case OUTMODE_ALL:
                   break;
           case OUTMODE_LST:
           case OUTMODE_ONE:
                   abort();
         }          }
   
         if (oarg != NULL) {          if (oarg != NULL) {

Legend:
Removed from v.1.341  
changed lines
  Added in v.1.342

CVSweb