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

Diff for /mandoc/main.c between version 1.360 and 1.361

version 1.360, 2021/10/04 21:29:17 version 1.361, 2022/04/14 16:43:43
Line 149  main(int argc, char *argv[])
Line 149  main(int argc, char *argv[])
         enum mandoc_os   os_e;          /* Check base system conventions. */          enum mandoc_os   os_e;          /* Check base system conventions. */
         enum outmode     outmode;       /* According to command line. */          enum outmode     outmode;       /* According to command line. */
   
   #if DEBUG_MEMORY
           mandoc_dbg_init(argc, argv);
   #endif
 #if HAVE_PROGNAME  #if HAVE_PROGNAME
         progname = getprogname();          progname = getprogname();
 #else  #else
         if (argc < 1)          if (argc < 1)
                 progname = mandoc_strdup("mandoc");                  progname = "mandoc";
         else if ((progname = strrchr(argv[0], '/')) == NULL)          else if ((progname = strrchr(argv[0], '/')) == NULL)
                 progname = argv[0];                  progname = argv[0];
         else          else
Line 671  out:
Line 674  out:
         } else if (outst.had_output && outst.outtype != OUTT_LINT)          } else if (outst.had_output && outst.outtype != OUTT_LINT)
                 mandoc_msg_summary();                  mandoc_msg_summary();
   
   #if DEBUG_MEMORY
           mandoc_dbg_finish();
   #endif
         return (int)mandoc_msg_getrc();          return (int)mandoc_msg_getrc();
 }  }
   

Legend:
Removed from v.1.360  
changed lines
  Added in v.1.361

CVSweb