summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2008-11-09 18:38:42 +0000
committerEric S. Raymond <esr@thyrsus.com>2008-11-09 18:38:42 +0000
commit01f98d28caa9a8e0f45efc25c0a50ad75b5678f0 (patch)
tree0c6a9b051c48b67a7d9f014667940ad353bce16c
parentcbf25e8815cd93fd4bcb730b2ee6783ea81c52e5 (diff)
downloaddeheader-01f98d28caa9a8e0f45efc25c0a50ad75b5678f0.tar.gz
deheader-01f98d28caa9a8e0f45efc25c0a50ad75b5678f0.tar.bz2
deheader-01f98d28caa9a8e0f45efc25c0a50ad75b5678f0.tar.xz
deheader-01f98d28caa9a8e0f45efc25c0a50ad75b5678f0.zip
Handle #i as well as #ifdef.
-rwxr-xr-xdeheader2
1 files changed, 1 insertions, 1 deletions
diff --git a/deheader b/deheader
index 299d6e6..43a27a3 100755
--- a/deheader
+++ b/deheader
@@ -86,7 +86,7 @@ class InclusionMap:
includes = []
ifdepth = 0
for line in open(sourcefile):
- if line.startswith("#ifdef") or line.startswith("#ifndef"):
+ if line.startswith("#if") or line.startswith("#ifndef"):
ifdepth += 1
elif line.startswith("#endif"):
ifdepth -= 1