git @ Cat's Eye Technologies Befunge-93 / 863433e
Remove the -p flag as it is simply the equivalent of -w 80 -h 25. Chris Pressey 4 years ago
1 changed file(s) with 4 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
3737
3838 Usage :
3939
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
4342 -o : suppress post-optimization
4443 -w : explicit width
4544 -h : explicit height
5857 - don't load NULs into playfield
5958 - use %% instead of %c with '%' being passed in
6059 - 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
6162
6263 v0.94: Sep 2004, Chris Pressey
6364 display correct version number
115116 char in[255];
116117 char pg[2000]; /* befunge 'page' of source */
117118 int x = 0, y = 0, d = 0; /* loopers */
118 int pre_optimize = 1; /* flag: optimize before compile? */
119119 int post_optimize = 1; /* flag: optimize after compile? */
120120
121121 int labelrefs[8000]; /* postoptimization table */
152152 }
153153 for (i = 1; i < argc; i++)
154154 {
155 if (!strcmp(argv[i], "-p")) { pre_optimize = 0; linewidth=80; pageheight=25; }
156155 if (!strcmp(argv[i], "-o")) { post_optimize = 0; }
157156 if (!strcmp(argv[i], "-w")) { linewidth = atoi(argv[i+1]); }
158157 if (!strcmp(argv[i], "-h")) { pageheight = atoi(argv[i+1]); }