summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-12-08 14:07:37 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-12-08 14:07:37 +0000
commit75f82519ae1a4af2d3c7f0cf2509770566cbeeff (patch)
treecd4d35901973523ec43fdd314497d6c7d9b7486c /v4l
parent6e74e7af21deee1b7b291cb8917b07ad505e6d3c (diff)
downloadmediapointer-dvb-s2-75f82519ae1a4af2d3c7f0cf2509770566cbeeff.tar.gz
mediapointer-dvb-s2-75f82519ae1a4af2d3c7f0cf2509770566cbeeff.tar.bz2
Updated doc to explain usage of #if macros and gentree updated
- Updated to explain usage of #if macros - gentree was removing linux/version.h from .c files. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'v4l')
-rw-r--r--v4l/ChangeLog10
-rw-r--r--v4l/scripts/gentree.pl12
2 files changed, 18 insertions, 4 deletions
diff --git a/v4l/ChangeLog b/v4l/ChangeLog
index ba672c6b3..e4f695633 100644
--- a/v4l/ChangeLog
+++ b/v4l/ChangeLog
@@ -1,3 +1,13 @@
+2005-12-08 14:05 mchehab
+
+ * README.CVS:
+ - Updated to explain usage of #if macros
+
+ * v4l/scripts/gentree.pl:
+ - gentree was removing linux/version.h from .c files.
+
+ Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
+
2005-12-08 13:47 mchehab
* linux/drivers/media/dvb/b2c2/flexcop-eeprom.c:
diff --git a/v4l/scripts/gentree.pl b/v4l/scripts/gentree.pl
index 7c044ee06..74db9f1ad 100644
--- a/v4l/scripts/gentree.pl
+++ b/v4l/scripts/gentree.pl
@@ -67,10 +67,6 @@ sub filter_source ($$) {
print STDERR "File: $in, for kernel $VERSION($CODE)/\n" if $DEBUG;
while ($line = <IN>) {
- if ($line =~ m/^#include <linux\/version.h>/ &&
- $in =~ m/.*\.c/) {
- next;
- }
if ($line =~ m/^#include \"compat.h\"/) {
next;
}
@@ -93,6 +89,14 @@ sub filter_source ($$) {
$level++;
next;
}
+ if ($line =~ /^#if 0\s.*[Kk][Ee][Ee][Pp].*/) {
+ chomp($line);
+ $state{$level} = "ifother";
+ $if{$level} = 0;
+ print STDERR "/* BP #if 0 (keep) state=$state{$level} if=$if{$level} level=$level ($line) */\n" if $DEBUG;
+ $level++;
+ next;
+ }
if ($line =~ /^#if 1\s.*[Kk][Ee][Ee][Pp].*/) {
print OUT "#if 1\n";
$state{$level} = "ifother";