From 01f98d28caa9a8e0f45efc25c0a50ad75b5678f0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 9 Nov 2008 18:38:42 +0000 Subject: Handle #i as well as #ifdef. --- deheader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2