Make ivl warn that it does not support `ifndef or `elsif

We added support for these two directives some time ago,
but ivl was never updated to warn that it did not support
them and you needed to use ivlpp.
This commit is contained in:
Cary R 2009-05-22 19:08:22 -07:00 committed by Stephen Williams
parent dfda202f14
commit 3337c9d51a
1 changed files with 12 additions and 0 deletions

View File

@ -517,6 +517,12 @@ S [afpnumkKMGT]
<< endl;
}
^{W}?`elsif{W}?.* {
cerr << yylloc.text << ":" << yylloc.first_line <<
": warning: `elsif not supported. Use an external preprocessor."
<< endl;
}
^{W}?`endif{W}?.* {
cerr << yylloc.text << ":" << yylloc.first_line <<
": warning: `endif not supported. Use an external preprocessor."
@ -529,6 +535,12 @@ S [afpnumkKMGT]
<< endl;
}
^{W}?`ifndef{W}?.* {
cerr << yylloc.text << ":" << yylloc.first_line <<
": warning: `ifndef not supported. Use an external preprocessor."
<< endl;
}
^`include{W}?.* {
cerr << yylloc.text << ":" << yylloc.first_line <<
": warning: `include not supported. Use an external preprocessor."