Remove __progname; add progname set to argv[0] in each main().

This commit is contained in:
stag019
2015-03-09 13:57:04 -04:00
parent 33ae6d8ca3
commit 6438ae2591
5 changed files with 16 additions and 6 deletions

View File

@@ -19,6 +19,9 @@ void setuplex(void);
int cldefines_index;
int cldefines_size;
char **cldefines;
char *progname;
clock_t nStartClock, nEndClock;
SLONG nLineNo;
ULONG nTotalLines, nPass, nPC, nIFDepth, nErrors;
@@ -280,6 +283,8 @@ main(int argc, char *argv[])
if (argc == 1)
usage();
progname = argv[0];
/* yydebug=1; */
DefaultOptions.gbgfx[0] = '0';