diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2008-11-09 18:38:42 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2008-11-09 18:38:42 +0000 |
commit | 01f98d28caa9a8e0f45efc25c0a50ad75b5678f0 (patch) | |
tree | 0c6a9b051c48b67a7d9f014667940ad353bce16c | |
parent | cbf25e8815cd93fd4bcb730b2ee6783ea81c52e5 (diff) | |
download | deheader-01f98d28caa9a8e0f45efc25c0a50ad75b5678f0.tar.gz deheader-01f98d28caa9a8e0f45efc25c0a50ad75b5678f0.tar.bz2 deheader-01f98d28caa9a8e0f45efc25c0a50ad75b5678f0.tar.xz deheader-01f98d28caa9a8e0f45efc25c0a50ad75b5678f0.zip |
Handle #i as well as #ifdef.
-rwxr-xr-x | deheader | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |