baum

changeset 61:73de2151aebd

better code for long strings
author meillo@marmaro.de
date Thu, 13 Nov 2008 13:15:11 +0100
parents 7adeee76ce3e
children 80df58d240b2
files baum.c
diffstat 1 files changed, 7 insertions(+), 11 deletions(-) [+]
line diff
     1.1 --- a/baum.c	Sun Mar 16 20:11:02 2008 +0100
     1.2 +++ b/baum.c	Thu Nov 13 13:15:11 2008 +0100
     1.3 @@ -253,19 +253,15 @@
     1.4  	
     1.5  	while (--argc > 0 && (*++argv)[0] == '-') {
     1.6  		if (strcmp(argv[0], "--version") == 0) {
     1.7 -			printf("\
     1.8 -baum %s\n\
     1.9 -an esoteric programming language\n\
    1.10 -by markus schnalke and julian forster\n\
    1.11 -http://prog.marmaro.de/baum\n\
    1.12 -", VERSION);
    1.13 +			printf("baum %s\n"
    1.14 +			       "an esoteric programming language\n"
    1.15 +			       "by markus schnalke and julian forster\n"
    1.16 +			       "http://prog.marmaro.de/baum\n", VERSION);
    1.17  			exit(0);
    1.18  		} else if (strcmp(argv[0], "--help") == 0) {
    1.19 -			printf("\
    1.20 -baum --version        print version information and exit\n\
    1.21 -baum --help           print this output\n\
    1.22 -baum [-v] <file>      (verbosly) run file\n\
    1.23 -");
    1.24 +			printf("baum --version        print version information and exit\n"
    1.25 +			       "baum --help           print this output\n"
    1.26 +			       "baum [-v] <file>      (verbosly) run file\n");
    1.27  			exit(0);
    1.28  		} else if (strcmp(argv[0], "-v") == 0) {
    1.29  			option_verbose = 1;