summaryrefslogtreecommitdiff
path: root/source4/script/configure_check_unused.pl
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-06-24 01:27:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:45 -0500
commitd5888fbb60d6b16b20ee95e434a94048ef1806bc (patch)
treea8679ea78c695cb706ff3ce5dd0b4c8859b200b7 /source4/script/configure_check_unused.pl
parent152a6a00c31f52d14a63bfc977ac54713c56c9cd (diff)
downloadsamba-d5888fbb60d6b16b20ee95e434a94048ef1806bc.tar.gz
samba-d5888fbb60d6b16b20ee95e434a94048ef1806bc.tar.bz2
samba-d5888fbb60d6b16b20ee95e434a94048ef1806bc.zip
r7866: Remove some unused autoconf macro calls.
Some of these should probably be re-added again later when we need them. They should then be added to the appropriate config.m4 file in the source tree rather then in rewrite.m4. (This used to be commit 4eca613470139f6425f454aea016566f9deffa3e)
Diffstat (limited to 'source4/script/configure_check_unused.pl')
-rwxr-xr-xsource4/script/configure_check_unused.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/script/configure_check_unused.pl b/source4/script/configure_check_unused.pl
index 1bf433aafd..52d8deeb27 100755
--- a/source4/script/configure_check_unused.pl
+++ b/source4/script/configure_check_unused.pl
@@ -63,13 +63,15 @@ sub cfile_parse($$$)
open(FI, $in) or die("Can't open $in");
my $ln = 0;
my $line;
- foreach($line = <FI>) {
+ while($line = <FI>) {
$ln++;
- if ($line =~ /\#([ \t]*)include ["<]([^">]+)/) {
+ $_ = $line;
+ if (/\#([ \t]*)include ["<]([^">]+)/) {
$headers->{$2} = "$in:$ln";
}
- foreach($line =~ /([A-Za-z0-9_]+)/g) {
+ $_ = $line;
+ while(/([A-Za-z0-9_]+)/g) {
$symbols->{$1} = "$in:$ln";
}
}