X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=keywords.pl;h=c804620cf8cf4a3d378a69f5e8864999dbf22344;hb=e8d7f3747c04a9bb10b98235d6cac8ff43bf8a54;hp=8920a3b5bca7f94149ae655f917a2d7852efbfab;hpb=68dc074516a6859e3424b48d1647bcb08b1a1a7d;p=p5sagit%2Fp5-mst-13.2.git diff --git a/keywords.pl b/keywords.pl index 8920a3b..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) = @_; @@ -35,12 +53,8 @@ BEGIN CORE DESTROY END -EQ -GE -GT -LE -LT -NE +INIT +CHECK abs accept alarm @@ -82,6 +96,7 @@ endpwent endservent eof eq +err eval exec exists @@ -144,6 +159,7 @@ link listen local localtime +lock log lstat lt @@ -164,6 +180,7 @@ open opendir or ord +our pack package pipe @@ -175,6 +192,7 @@ prototype push q qq +qr quotemeta qw qx @@ -237,6 +255,7 @@ symlink syscall sysopen sysread +sysseek system syswrite tell