-#!/usr/bin/perl
+#!/usr/bin/perl -w
+use strict;
require 'regen_lib.pl';
safer_unlink ("keywords.h");
*
* keywords.h
*
- * Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002,
- * by Larry Wall and others
+ * Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2005,
+ * 2006, 2007, by Larry Wall and others
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
# Read & print data.
-$keynum = 0;
+my $keynum = 0;
while (<DATA>) {
chop;
next unless $_;
next if /^#/;
- ($keyword) = split;
+ my ($keyword) = split;
print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
}
###########################################################################
sub tab {
- local($l, $t) = @_;
+ my ($l, $t) = @_;
$t .= "\t" x ($l - (length($t) + 1) / 8);
$t;
}
__END__
AUTOLOAD
BEGIN
+UNITCHECK
CORE
DESTROY
END
endservent
eof
eq
-err
eval
exec
exists
sqrt
srand
stat
+state
study
sub
substr