Remove the -p flag as it is simply the equivalent of -w 80 -h 25.
Chris Pressey
4 years ago
37 | 37 | |
38 | 38 | Usage : |
39 | 39 | |
40 | bef2c [-p] [-o] [-w width] [-h height] <befunge-source> <c-destination> | |
41 | ||
42 | -p : suppress pre-optimization | |
40 | bef2c [-o] [-w width] [-h height] <befunge-source> <c-destination> | |
41 | ||
43 | 42 | -o : suppress post-optimization |
44 | 43 | -w : explicit width |
45 | 44 | -h : explicit height |
58 | 57 | - don't load NULs into playfield |
59 | 58 | - use %% instead of %c with '%' being passed in |
60 | 59 | - avoid freeing fo/fi on failure to open |
60 | removed -p flag as it is equivalent to | |
61 | `-w 80 -h 25`, just use that instread | |
61 | 62 | |
62 | 63 | v0.94: Sep 2004, Chris Pressey |
63 | 64 | display correct version number |
115 | 116 | char in[255]; |
116 | 117 | char pg[2000]; /* befunge 'page' of source */ |
117 | 118 | int x = 0, y = 0, d = 0; /* loopers */ |
118 | int pre_optimize = 1; /* flag: optimize before compile? */ | |
119 | 119 | int post_optimize = 1; /* flag: optimize after compile? */ |
120 | 120 | |
121 | 121 | int labelrefs[8000]; /* postoptimization table */ |
152 | 152 | } |
153 | 153 | for (i = 1; i < argc; i++) |
154 | 154 | { |
155 | if (!strcmp(argv[i], "-p")) { pre_optimize = 0; linewidth=80; pageheight=25; } | |
156 | 155 | if (!strcmp(argv[i], "-o")) { post_optimize = 0; } |
157 | 156 | if (!strcmp(argv[i], "-w")) { linewidth = atoi(argv[i+1]); } |
158 | 157 | if (!strcmp(argv[i], "-h")) { pageheight = atoi(argv[i+1]); } |