git @ Cat's Eye Technologies Befunge-93 / f91ca1d
Exit with non-zero exit code when error occurs. Chris Pressey 3 years ago
1 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
5858 - use %% instead of %c with '%' being passed in
5959 - avoid freeing fo/fi on failure to open
6060 removed -p flag as it is equivalent to
61 `-w 80 -h 25`, just use that instread
61 `-w 80 -h 25`, just use that instead
62 show usage and exit if unrecognized command-line
63 options are given
64 exit with a non-zero exit code if an error occurs
6265
6366 v0.94: Sep 2004, Chris Pressey
6467 display correct version number
197200 } else
198201 {
199202 printf ("Error : couldn't open '%s' for input.\n", argv[argc - 1]);
200 exit (0);
203 exit (1);
201204 }
202205
203206 if (!(fo = fopen (argv[argc - 1], "w"))) /*** Output */
204207 {
205208 printf ("Error : couldn't open '%s' for output.\n", argv[argc - 1]);
206 exit (0);
209 exit (1);
207210 }
208211
209212 printf ("Compiling");