From: Nicholas Nethercote Date: Sun, 4 Jan 2004 13:08:56 +0000 (+0000) Subject: Adding "use strict" and "use warnings", for safety. Required some extra X-Git-Tag: svn/VALGRIND_2_1_1~130 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ca20c879d6b16aeefd89046701d41af8f0c1404;p=thirdparty%2Fvalgrind.git Adding "use strict" and "use warnings", for safety. Required some extra variable declarations. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2176 --- diff --git a/coregrind/gen_toolint.pl b/coregrind/gen_toolint.pl index c78f298c45..674d16d215 100644 --- a/coregrind/gen_toolint.pl +++ b/coregrind/gen_toolint.pl @@ -23,12 +23,17 @@ # # The GNU General Public License is contained in the file COPYING. +use strict; +use warnings; my $output = shift @ARGV; my $indent = ""; my $headerguard; my $include; my $passcomment = 1; +my $pre; +my $post; +my $generate; my $struct = "VG_(tool_interface)"; @@ -210,6 +215,7 @@ my $state = "idle"; my $buf; my $lines; +my $prefix; while() { # skip simple comments