Upgrade Module::Load::Conditional to 0.14
[p5sagit/p5-mst-13.2.git] / keywords.pl
CommitLineData
a0d0e21e 1#!/usr/bin/perl
2
9ad884cb 3require 'regen_lib.pl';
36bb303b 4safer_unlink ("keywords.h");
a0d0e21e 5open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n";
dfb1454f 6binmode KW;
a0d0e21e 7select KW;
8
d6376244 9print <<EOM;
37442d52 10/* -*- buffer-read-only: t -*-
11 *
d6376244 12 * keywords.h
13 *
cfc85103 14 * Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2005,
15 * 2006, by Larry Wall and others
d6376244 16 *
17 * You may distribute under the terms of either the GNU General Public
18 * License or the Artistic License, as specified in the README file.
19 *
a41d5059 20 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
d73f34fb 21 * This file is built by keywords.pl from its data. Any changes made here
a41d5059 22 * will be lost!
d6376244 23 */
24EOM
25
a0d0e21e 26# Read & print data.
27
28$keynum = 0;
29while (<DATA>) {
30 chop;
31 next unless $_;
32 next if /^#/;
33 ($keyword) = split;
34 print &tab(5, "#define KEY_$keyword"), $keynum++, "\n";
35}
36
37442d52 37print KW "\n/* ex: set ro: */\n";
38
36bb303b 39close KW or die "Error closing keywords.h: $!";
40
a0d0e21e 41###########################################################################
42sub tab {
43 local($l, $t) = @_;
44 $t .= "\t" x ($l - (length($t) + 1) / 8);
45 $t;
46}
47###########################################################################
48__END__
49
50NULL
a0d0e21e 51__FILE__
68dc0745 52__LINE__
53__PACKAGE__
e50aee73 54__DATA__
a0d0e21e 55__END__
56AUTOLOAD
57BEGIN
3c10abe3 58UNITCHECK
a0d0e21e 59CORE
60DESTROY
61END
7d07dbc2 62INIT
7d30b5c4 63CHECK
a0d0e21e 64abs
65accept
66alarm
67and
68atan2
69bind
70binmode
71bless
0d863452 72break
a0d0e21e 73caller
74chdir
75chmod
76chomp
77chop
78chown
79chr
80chroot
81close
82closedir
83cmp
84connect
85continue
86cos
87crypt
88dbmclose
89dbmopen
0d863452 90default
a0d0e21e 91defined
92delete
93die
94do
95dump
96each
97else
98elsif
99endgrent
100endhostent
101endnetent
102endprotoent
103endpwent
104endservent
105eof
106eq
c963b151 107err
a0d0e21e 108eval
109exec
110exists
111exit
112exp
113fcntl
114fileno
115flock
116for
117foreach
118fork
119format
120formline
121ge
122getc
123getgrent
124getgrgid
125getgrnam
126gethostbyaddr
127gethostbyname
128gethostent
129getlogin
130getnetbyaddr
131getnetbyname
132getnetent
133getpeername
134getpgrp
135getppid
136getpriority
137getprotobyname
138getprotobynumber
139getprotoent
140getpwent
141getpwnam
142getpwuid
143getservbyname
144getservbyport
145getservent
146getsockname
147getsockopt
0d863452 148given
a0d0e21e 149glob
150gmtime
151goto
152grep
153gt
154hex
155if
156index
157int
158ioctl
159join
160keys
161kill
162last
163lc
164lcfirst
165le
166length
167link
168listen
169local
170localtime
c0329465 171lock
a0d0e21e 172log
173lstat
174lt
175m
176map
177mkdir
178msgctl
179msgget
180msgrcv
181msgsnd
182my
183ne
184next
185no
186not
187oct
188open
189opendir
190or
191ord
77ca0c92 192our
a0d0e21e 193pack
194package
195pipe
196pop
197pos
198print
199printf
c07a80fd 200prototype
a0d0e21e 201push
202q
203qq
8782bef2 204qr
a0d0e21e 205quotemeta
206qw
207qx
208rand
209read
210readdir
211readline
212readlink
213readpipe
214recv
215redo
216ref
217rename
218require
219reset
220return
221reverse
222rewinddir
223rindex
224rmdir
225s
0d863452 226say
a0d0e21e 227scalar
228seek
229seekdir
230select
231semctl
232semget
233semop
234send
235setgrent
236sethostent
237setnetent
238setpgrp
239setpriority
240setprotoent
241setpwent
242setservent
243setsockopt
244shift
245shmctl
246shmget
247shmread
248shmwrite
249shutdown
250sin
251sleep
252socket
253socketpair
254sort
255splice
256split
257sprintf
258sqrt
259srand
260stat
952306ac 261state
a0d0e21e 262study
263sub
264substr
265symlink
266syscall
c07a80fd 267sysopen
a0d0e21e 268sysread
137443ea 269sysseek
a0d0e21e 270system
271syswrite
272tell
273telldir
274tie
c07a80fd 275tied
a0d0e21e 276time
277times
278tr
279truncate
280uc
281ucfirst
282umask
283undef
284unless
285unlink
286unpack
287unshift
288untie
289until
290use
291utime
292values
293vec
294wait
295waitpid
296wantarray
297warn
0d863452 298when
a0d0e21e 299while
300write
301x
302xor
303y