X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=c804620cf8cf4a3d378a69f5e8864999dbf22344;hb=3f774658ecc4b04691265c9db31d70a4a611b290;hp=595e875bc4900ba247382138e7f8abe43fcfc702;hpb=36477c247f3c188fb8cc7e276c87b739d3e6ab7c;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index 595e875..c804620 100755 --- a/keywords.pl +++ b/keywords.pl @@ -1,9 +1,25 @@ #!/usr/bin/perl -unlink "keywords.h"; +require 'regen.pl'; +safer_unlink ("keywords.h"); open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n"; select KW; +print <) { print &tab(5, "#define KEY_$keyword"), $keynum++, "\n"; } +close KW or die "Error closing keywords.h: $!"; + ########################################################################### sub tab { local($l, $t) = @_; @@ -25,8 +43,9 @@ sub tab { __END__ NULL -__LINE__ __FILE__ +__LINE__ +__PACKAGE__ __DATA__ __END__ AUTOLOAD @@ -34,12 +53,8 @@ BEGIN CORE DESTROY END -EQ -GE -GT -LE -LT -NE +INIT +CHECK abs accept alarm @@ -81,6 +96,7 @@ endpwent endservent eof eq +err eval exec exists @@ -143,6 +159,7 @@ link listen local localtime +lock log lstat lt @@ -163,6 +180,7 @@ open opendir or ord +our pack package pipe @@ -174,6 +192,7 @@ prototype push q qq +qr quotemeta qw qx @@ -236,6 +255,7 @@ symlink syscall sysopen sysread +sysseek system syswrite tell