]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix dealing with whitespace
authorwessels <>
Mon, 25 Aug 1997 12:12:20 +0000 (12:12 +0000)
committerwessels <>
Mon, 25 Aug 1997 12:12:20 +0000 (12:12 +0000)
src/mk-globals-c.pl

index 70f626bdbe50cd4c2c83fc2f67b53f36c401f5ef..bb08dddb8c30fcedffff1a00f77882c5895f2a79 100755 (executable)
@@ -10,8 +10,9 @@ while (<>) {
        die unless (/^extern\s+([^;]+);(.*)$/);
        $var = $1;
        $comments = $2;
-       if ($comments =~ m+/\*\s*(\S*)\s*\*/+) {
+       if ($comments =~ m+/\*\s*(.*)\s*\*/+) {
                $init = $1;
+               $init =~ s/\s$// while ($init =~ /\s$/);
        }
        print $var;
        print " = $init" if (defined $init);