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