Mercurial > baum
comparison baum.c @ 61:73de2151aebd
better code for long strings
author | meillo@marmaro.de |
---|---|
date | Thu, 13 Nov 2008 13:15:11 +0100 |
parents | 6279e5b14d9e |
children | 80df58d240b2 |
comparison
equal
deleted
inserted
replaced
56:7adeee76ce3e | 61:73de2151aebd |
---|---|
251 | 251 |
252 option_verbose = 0; | 252 option_verbose = 0; |
253 | 253 |
254 while (--argc > 0 && (*++argv)[0] == '-') { | 254 while (--argc > 0 && (*++argv)[0] == '-') { |
255 if (strcmp(argv[0], "--version") == 0) { | 255 if (strcmp(argv[0], "--version") == 0) { |
256 printf("\ | 256 printf("baum %s\n" |
257 baum %s\n\ | 257 "an esoteric programming language\n" |
258 an esoteric programming language\n\ | 258 "by markus schnalke and julian forster\n" |
259 by markus schnalke and julian forster\n\ | 259 "http://prog.marmaro.de/baum\n", VERSION); |
260 http://prog.marmaro.de/baum\n\ | |
261 ", VERSION); | |
262 exit(0); | 260 exit(0); |
263 } else if (strcmp(argv[0], "--help") == 0) { | 261 } else if (strcmp(argv[0], "--help") == 0) { |
264 printf("\ | 262 printf("baum --version print version information and exit\n" |
265 baum --version print version information and exit\n\ | 263 "baum --help print this output\n" |
266 baum --help print this output\n\ | 264 "baum [-v] <file> (verbosly) run file\n"); |
267 baum [-v] <file> (verbosly) run file\n\ | |
268 "); | |
269 exit(0); | 265 exit(0); |
270 } else if (strcmp(argv[0], "-v") == 0) { | 266 } else if (strcmp(argv[0], "-v") == 0) { |
271 option_verbose = 1; | 267 option_verbose = 1; |
272 /* | 268 /* |
273 } else if (strcmp(argv[0], "-W") == 0) { | 269 } else if (strcmp(argv[0], "-W") == 0) { |