version 1.86, 2015/11/03 16:21:47 |
version 1.87, 2017/06/15 13:48:42 |
|
|
char ecommt[MAXCCHARS+1] = {ECOMMT}; /* end character for comment */ |
char ecommt[MAXCCHARS+1] = {ECOMMT}; /* end character for comment */ |
int synch_lines = 0; /* line synchronisation for C preprocessor */ |
int synch_lines = 0; /* line synchronisation for C preprocessor */ |
int prefix_builtins = 0; /* -P option to prefix builtin keywords */ |
int prefix_builtins = 0; /* -P option to prefix builtin keywords */ |
|
int error_warns = 0; /* -E option to make warnings exit_code = 1 */ |
|
int fatal_warns = 0; /* -E -E option to make warnings fatal */ |
|
|
struct keyblk { |
struct keyblk { |
char *knam; /* keyword name */ |
char *knam; /* keyword name */ |
|
|
outfile = NULL; |
outfile = NULL; |
resizedivs(MAXOUT); |
resizedivs(MAXOUT); |
|
|
while ((c = getopt(argc, argv, "gst:d:D:U:o:I:P")) != -1) |
while ((c = getopt(argc, argv, "gst:d:D:EU:o:I:P")) != -1) |
switch(c) { |
switch(c) { |
|
|
case 'D': /* define something..*/ |
case 'D': /* define something..*/ |
|
|
if (*p) |
if (*p) |
*p++ = EOS; |
*p++ = EOS; |
dodefine(optarg, p); |
dodefine(optarg, p); |
|
break; |
|
case 'E': /* like GNU m4 1.4.9+ */ |
|
if (error_warns == 0) |
|
error_warns = 1; |
|
else |
|
fatal_warns = 1; |
break; |
break; |
case 'I': |
case 'I': |
addtoincludepath(optarg); |
addtoincludepath(optarg); |