diff options
Diffstat (limited to 'iid.y')
-rw-r--r-- | iid.y | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -629,9 +629,8 @@ int main( int argc , char * argv [ ] ) { int c ; /* current option */ - char * CmdPtr ; /* Points to the command string */ + char * CmdPtr = NULL ; /* Points to the command string */ char Command [ MAXCMD ] ; /* Buffer for reading commands */ - int Do1 = 0 ; /* 1 if should only do 1 command */ int DoPrompt ; /* 1 if should write a prompt */ int errors = 0 ; /* error count */ @@ -643,7 +642,6 @@ main( int argc , char * argv [ ] ) break ; case 'c': CmdPtr = optarg ; - Do1 = 1 ; break ; case 'H': fputs("\ @@ -677,7 +675,7 @@ To get help after starting program type 'help'.\n\ /* run the parser */ - if (Do1) { + if (CmdPtr) { ScanInit(CmdPtr) ; exit(yyparse()) ; } else { |