X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=b4b048b08aaf73d9aa47352f1bb5cb6024505ead;hb=62703e7218aceb3f5d30f70a2307dd02e5eb8c63;hp=d3426be313e32f64b364612655d4eee80d5290eb;hpb=a0d0e21ea6ea90a22318550944fe6cb09ae10cda;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index d3426be..b4b048b 100755 --- a/keywords.pl +++ b/keywords.pl @@ -1,8 +1,27 @@ #!/usr/bin/perl +require 'regen_lib.pl'; +safer_unlink ("keywords.h"); open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n"; +binmode KW; 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,20 +45,18 @@ sub tab { __END__ NULL -__LINE__ __FILE__ +__LINE__ +__PACKAGE__ +__DATA__ __END__ AUTOLOAD BEGIN CORE DESTROY END -EQ -GE -GT -LE -LT -NE +INIT +CHECK abs accept alarm @@ -79,6 +98,7 @@ endpwent endservent eof eq +err eval exec exists @@ -141,6 +161,7 @@ link listen local localtime +lock log lstat lt @@ -161,6 +182,7 @@ open opendir or ord +our pack package pipe @@ -168,9 +190,11 @@ pop pos print printf +prototype push q qq +qr quotemeta qw qx @@ -231,12 +255,15 @@ sub substr symlink syscall +sysopen sysread +sysseek system syswrite tell telldir tie +tied time times tr