From 3337c9d51a8fd59ba1a5b94315c816fdf97fd0ae Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 22 May 2009 19:08:22 -0700 Subject: [PATCH] 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. --- lexor.lex | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lexor.lex b/lexor.lex index b70936c73..ad0df6906 100644 --- a/lexor.lex +++ b/lexor.lex @@ -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."