summaryrefslogtreecommitdiff
path: root/v4l/scripts/gentree.pl
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-12-26 18:19:22 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-12-26 18:19:22 +0000
commit68165d728dc07adfcf364d738cd5aaddc6a6c6da (patch)
treec8c5f284eeb8deaf0a4b94951c982480c4902d45 /v4l/scripts/gentree.pl
parent36c4f9aa4f767f3fb8bc9ab34fde31bc033f3e52 (diff)
downloadmediapointer-dvb-s2-68165d728dc07adfcf364d738cd5aaddc6a6c6da.tar.gz
mediapointer-dvb-s2-68165d728dc07adfcf364d738cd5aaddc6a6c6da.tar.bz2
Fixed some errors at gentree parsing.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'v4l/scripts/gentree.pl')
-rw-r--r--v4l/scripts/gentree.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/v4l/scripts/gentree.pl b/v4l/scripts/gentree.pl
index 891459749..c67489d2c 100644
--- a/v4l/scripts/gentree.pl
+++ b/v4l/scripts/gentree.pl
@@ -164,7 +164,7 @@ print STDERR "/* BP orig: ($line) */\n" if $DEBUG;
$level++;
next;
}
- if ($line =~ /^#if/) {
+ if ($line =~ /^#if\s/) {
$state{$level} = "ifother";
$if{$level} = 1;
print STDERR "/* BP $line state=$state{$level} if=$if{$level} level=$level ($line) */\n" if $DEBUG;
@@ -178,6 +178,13 @@ print STDERR "/* BP orig: ($line) */\n" if $DEBUG;
$level++;
}
+ if ($line =~ /^#ifndef/) {
+ $state{$level} = "ifother";
+ $if{$level} = 1;
+ print STDERR "/* BP $line state=$state{$level} if=$if{$level} level=$level ($line) */\n" if $DEBUG;
+ $level++;
+ }
+
if ($level) {
if ($state{$level-1} eq "if" && $line =~ /^#else/) {
$state{$level-1} = "else";