| Kernel v2.4.1 /scripts/checkconfig.pl |
|---|
 2.4.1
 scripts
 checkconfig.pl
diff -u --recursive --new-file v2.4.0/linux/scripts/checkconfig.pl linux/scripts/checkconfig.pl
--- v2.4.0/linux/scripts/checkconfig.pl Tue Aug 31 09:33:09 1999
+++ linux/scripts/checkconfig.pl Mon Jan 15 15:31:19 2001
@@ -14,6 +14,7 @@
# Initialize variables.
my $fInComment = 0;
+ my $fInString = 0;
my $fUseConfig = 0;
my $iLinuxConfig = 0;
my %configList = ();
@@ -23,6 +24,10 @@
# Strip comments.
$fInComment && (s+^.*?\*/+ +o ? ($fInComment = 0) : next);
m+/\*+o && (s+/\*.*?\*/+ +go, (s+/\*.*$+ +o && ($fInComment = 1)));
+
+ # Strip strings.
+ $fInString && (s+^.*?"+ +o ? ($fInString = 0) : next);
+ m+"+o && (s+".*?"+ +go, (s+".*$+ +o && ($fInString = 1)));
# Pick up definitions.
if ( m/^\s*#/o )
|