X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=fe745d470bfb8f504701067664afc495d9ed6e02;hb=48614a46f2d1bab9f109995e713e48774d849328;hp=c9479c459c63c95a9f9b883424bcac13c1124252;hpb=c750a3ec3b866067ab46dbcc9083205d823047c3;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index c9479c4..fe745d4 100755 --- a/keywords.pl +++ b/keywords.pl @@ -1,8 +1,28 @@ #!/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"; } +print KW "\n/* ex: set ro: */\n"; + +close KW or die "Error closing keywords.h: $!"; + ########################################################################### sub tab { local($l, $t) = @_; @@ -24,8 +48,9 @@ sub tab { __END__ NULL -__LINE__ __FILE__ +__LINE__ +__PACKAGE__ __DATA__ __END__ AUTOLOAD @@ -33,13 +58,8 @@ BEGIN CORE DESTROY END -EQ -GE -GT -LE -LT -NE -RESTART +INIT +CHECK abs accept alarm @@ -81,6 +101,7 @@ endpwent endservent eof eq +err eval exec exists @@ -143,6 +164,7 @@ link listen local localtime +lock log lstat lt @@ -163,6 +185,7 @@ open opendir or ord +our pack package pipe @@ -174,6 +197,7 @@ prototype push q qq +qr quotemeta qw qx @@ -236,6 +260,7 @@ symlink syscall sysopen sysread +sysseek system syswrite tell