]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Adding "use strict" and "use warnings", for safety. Required some extra
authorNicholas Nethercote <n.nethercote@gmail.com>
Sun, 4 Jan 2004 13:08:56 +0000 (13:08 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Sun, 4 Jan 2004 13:08:56 +0000 (13:08 +0000)
variable declarations.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2176

coregrind/gen_toolint.pl

index c78f298c4589f50484d94576c12b045f09671f33..674d16d215abe4875c10b85202d23576f3907275 100644 (file)
 #
 #  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(<STDIN>) {
     # skip simple comments