This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Upgrade Module::Load::Conditional to 0.14
[perl5.git] / keywords.pl
... / ...
CommitLineData
1#!/usr/bin/perl
2
3require 'regen_lib.pl';
4safer_unlink ("keywords.h");
5open(KW, ">keywords.h") || die "Can't create keywords.h: $!\n";
6binmode KW;
7select KW;
8
9print <<EOM;
10/* -*- buffer-read-only: t -*-
11 *
12 * keywords.h
13 *
14 * Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2005,
15 * 2006, by Larry Wall and others
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 *
20 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
21 * This file is built by keywords.pl from its data. Any changes made here
22 * will be lost!
23 */
24EOM
25
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
37print KW "\n/* ex: set ro: */\n";
38
39close KW or die "Error closing keywords.h: $!";
40
41###########################################################################
42sub tab {
43 local($l, $t) = @_;
44 $t .= "\t" x ($l - (length($t) + 1) / 8);
45 $t;
46}
47###########################################################################
48__END__
49
50NULL
51__FILE__
52__LINE__
53__PACKAGE__
54__DATA__
55__END__
56AUTOLOAD
57BEGIN
58UNITCHECK
59CORE
60DESTROY
61END
62INIT
63CHECK
64abs
65accept
66alarm
67and
68atan2
69bind
70binmode
71bless
72break
73caller
74chdir
75chmod
76chomp
77chop
78chown
79chr
80chroot
81close
82closedir
83cmp
84connect
85continue
86cos
87crypt
88dbmclose
89dbmopen
90default
91defined
92delete
93die
94do
95dump
96each
97else
98elsif
99endgrent
100endhostent
101endnetent
102endprotoent
103endpwent
104endservent
105eof
106eq
107err
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
148given
149glob
150gmtime
151goto
152grep
153gt
154hex
155if
156index
157int
158ioctl
159join
160keys
161kill
162last
163lc
164lcfirst
165le
166length
167link
168listen
169local
170localtime
171lock
172log
173lstat
174lt
175m
176map
177mkdir
178msgctl
179msgget
180msgrcv
181msgsnd
182my
183ne
184next
185no
186not
187oct
188open
189opendir
190or
191ord
192our
193pack
194package
195pipe
196pop
197pos
198print
199printf
200prototype
201push
202q
203qq
204qr
205quotemeta
206qw
207qx
208rand
209read
210readdir
211readline
212readlink
213readpipe
214recv
215redo
216ref
217rename
218require
219reset
220return
221reverse
222rewinddir
223rindex
224rmdir
225s
226say
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
261state
262study
263sub
264substr
265symlink
266syscall
267sysopen
268sysread
269sysseek
270system
271syswrite
272tell
273telldir
274tie
275tied
276time
277times
278tr
279truncate
280uc
281ucfirst
282umask
283undef
284unless
285unlink
286unpack
287unshift
288untie
289until
290use
291utime
292values
293vec
294wait
295waitpid
296wantarray
297warn
298when
299while
300write
301x
302xor
303y