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 |
|
|
} 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(); |
} |
} |
|
|