recognize but ignore -undef flag
This commit is contained in:
parent
7761eecc34
commit
abeebac3c1
2 changed files with 9 additions and 0 deletions
|
@ -58,6 +58,9 @@ when generating makefile dependencies, generate them in the following format:
|
||||||
.IP ""
|
.IP ""
|
||||||
where "file.o" is derived from the source file name. Normally, only a list
|
where "file.o" is derived from the source file name. Normally, only a list
|
||||||
of files included is generated.
|
of files included is generated.
|
||||||
|
.IP -\fBundef\fR
|
||||||
|
.br
|
||||||
|
this flag is silently ignored, for compatibility with other preprocessors.
|
||||||
.PP
|
.PP
|
||||||
The following names are always available unless undefined:
|
The following names are always available unless undefined:
|
||||||
.IP __FILE__
|
.IP __FILE__
|
||||||
|
|
|
@ -31,6 +31,12 @@ do_option(text)
|
||||||
case 'x':
|
case 'x':
|
||||||
options[*text] = 1;
|
options[*text] = 1;
|
||||||
break;
|
break;
|
||||||
|
case 'u':
|
||||||
|
if (! strcmp(text,"ndef")) {
|
||||||
|
/* ignore -undef */
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
/* fall through */
|
||||||
default:
|
default:
|
||||||
error("illegal option: %c", text[-1]);
|
error("illegal option: %c", text[-1]);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue