X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=2cc50b577991dcf0a6ea90d350aa95b93fd8a71b;hb=ab5f7a047194357ab367848e6e322b76ed830de6;hp=086a10956ab40423392c9f701b0c67c09967b7ce;hpb=c07a80fdfe3926b5eb0585b674aa5d1f57b32ade;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index 086a109..2cc50b5 100755 --- a/keywords.pl +++ b/keywords.pl @@ -1,8 +1,26 @@ #!/usr/bin/perl +require 'regen_lib.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) = @_; @@ -24,8 +44,9 @@ sub tab { __END__ NULL -__LINE__ __FILE__ +__LINE__ +__PACKAGE__ __DATA__ __END__ AUTOLOAD @@ -33,12 +54,8 @@ BEGIN CORE DESTROY END -EQ -GE -GT -LE -LT -NE +INIT +CHECK abs accept alarm @@ -80,6 +97,7 @@ endpwent endservent eof eq +err eval exec exists @@ -142,6 +160,7 @@ link listen local localtime +lock log lstat lt @@ -162,6 +181,7 @@ open opendir or ord +our pack package pipe @@ -173,6 +193,7 @@ prototype push q qq +qr quotemeta qw qx @@ -235,6 +256,7 @@ symlink syscall sysopen sysread +sysseek system syswrite tell