summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
Diffstat (limited to 'v4l')
-rw-r--r--v4l/ChangeLog7
-rw-r--r--v4l/scripts/gentree.pl9
2 files changed, 15 insertions, 1 deletions
diff --git a/v4l/ChangeLog b/v4l/ChangeLog
index 5629ef9f2..30f19e5c2 100644
--- a/v4l/ChangeLog
+++ b/v4l/ChangeLog
@@ -1,3 +1,10 @@
+2005-12-26 18:18 mchehab
+
+ * v4l/scripts/gentree.pl:
+ - Fixed some errors at gentree parsing.
+
+ Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
+
2005-12-26 15:11 mchehab
* linux/drivers/media/video/saa7134/saa7134-alsa.c:
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";