summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-12 18:21:40 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-12 18:21:40 +0300
commitbe02d139535aefaaeda2db36211186fce3de01b7 (patch)
tree4f064214e9cbf934cbb36b62aa4188b6192d948d
parentdff67d602e6ae72fd8e8865eb2343e9db922578d (diff)
downloaddeheader-be02d139535aefaaeda2db36211186fce3de01b7.tar.gz
deheader-be02d139535aefaaeda2db36211186fce3de01b7.tar.bz2
deheader-be02d139535aefaaeda2db36211186fce3de01b7.tar.xz
deheader-be02d139535aefaaeda2db36211186fce3de01b7.zip
Add #elif into preprocessor derectives.
-rwxr-xr-xdeheader2
1 files changed, 1 insertions, 1 deletions
diff --git a/deheader b/deheader
index f1aaf28..1a30061 100755
--- a/deheader
+++ b/deheader
@@ -1280,7 +1280,7 @@ class InclusionMap:
cnt = -1
for line in open(sourcefile):
cnt = cnt + 1
- c = match_preproc(["ifndef", "ifdef", "if"], line)
+ c = match_preproc(["ifndef", "ifdef", "if", "elif"], line)
if c is not False:
if allow_parse_includes == True:
allow_parse_includes = self.check_block(sourcefile, cnt, compiler, defines, maker, verbosity, showerrs, subdir)