patch-2.4.1 linux/scripts/checkconfig.pl
Next file: linux/CREDITS
Previous file: linux/net/x25/x25_timer.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Mon Jan 15 15:31:19 2001
- Orig file:
v2.4.0/linux/scripts/checkconfig.pl
- Orig date:
Tue Aug 31 09:33:09 1999
diff -u --recursive --new-file v2.4.0/linux/scripts/checkconfig.pl linux/scripts/checkconfig.pl
@@ -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 )
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)