Add debug flag to command line interpretation.

This commit is contained in:
Olaf Seibert
2015-05-10 17:39:38 +02:00
parent a6ee20cdc1
commit 2bc55f39f3
3 changed files with 11 additions and 4 deletions

View File

@@ -279,6 +279,8 @@ int main(
} else if (!stricmp(cp, "yl1")) {
/* list the first pass, in addition to the second */
list_pass_0++;
} else if (!stricmp(cp, "yd")) {
enabl_debug++;
} else {
fprintf(stderr, "Unknown option %s\n", argv[arg]);
print_help();
@@ -332,7 +334,7 @@ int main(
list_symbol_table();
}
#if 0
if (enabl_debug)
if (enabl_debug > 1)
dump_all_macros();
#endif