X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=ac81d42f7dc1068bd9a2d812f492bb922ee3ca55;hb=dd7c5fd3a00e036412095647a0fc720a41dd4fea;hp=595e875bc4900ba247382138e7f8abe43fcfc702;hpb=36477c247f3c188fb8cc7e276c87b739d3e6ab7c;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index 595e875..ac81d42 100755 --- a/keywords.pl +++ b/keywords.pl @@ -1,9 +1,28 @@ #!/usr/bin/perl -unlink "keywords.h"; +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) = @_; @@ -25,8 +48,9 @@ sub tab { __END__ NULL -__LINE__ __FILE__ +__LINE__ +__PACKAGE__ __DATA__ __END__ AUTOLOAD @@ -34,12 +58,8 @@ BEGIN CORE DESTROY END -EQ -GE -GT -LE -LT -NE +INIT +CHECK abs accept alarm @@ -48,6 +68,7 @@ atan2 bind binmode bless +break caller chdir chmod @@ -65,6 +86,7 @@ cos crypt dbmclose dbmopen +default defined delete die @@ -81,6 +103,7 @@ endpwent endservent eof eq +err eval exec exists @@ -121,6 +144,7 @@ getservbyport getservent getsockname getsockopt +given glob gmtime goto @@ -143,6 +167,7 @@ link listen local localtime +lock log lstat lt @@ -163,6 +188,7 @@ open opendir or ord +our pack package pipe @@ -174,6 +200,7 @@ prototype push q qq +qr quotemeta qw qx @@ -195,6 +222,7 @@ rewinddir rindex rmdir s +say scalar seek seekdir @@ -236,6 +264,7 @@ symlink syscall sysopen sysread +sysseek system syswrite tell @@ -264,6 +293,7 @@ wait waitpid wantarray warn +when while write x