Use the options parameter provided for command line options. Specifically, for haltnop.

This commit is contained in:
stag019
2014-12-31 13:29:24 -05:00
parent 513d451710
commit 2b839fec37
3 changed files with 5 additions and 9 deletions

View File

@@ -7,7 +7,6 @@
#include <math.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -30,8 +29,6 @@ void setuplex(void);
*
*/
bool haltnop;
clock_t nStartClock, nEndClock;
SLONG nLineNo;
ULONG nTotalLines, nPass, nPC, nIFDepth, nErrors;
@@ -260,7 +257,7 @@ main(int argc, char *argv[])
char *tzMainfile;
haltnop = true;
if (argc == 1)
PrintUsage();
@@ -275,6 +272,7 @@ main(int argc, char *argv[])
DefaultOptions.binary[1] = '1';
DefaultOptions.fillchar = 0;
DefaultOptions.verbose = false;
DefaultOptions.haltnop = true;
opt_SetCurrentOptions(&DefaultOptions);
@@ -303,7 +301,7 @@ main(int argc, char *argv[])
}
break;
case 'h':
haltnop = false;
newopt.haltnop = false;
break;
case 'i':
fstk_AddIncludePath(optarg);