This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move the scope of origsv inwards, and rename variables to avoid the
[perl5.git] / keywords.pl
CommitLineData
a0d0e21e
LW
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
LW
7select KW;
8
d6376244 9print <<EOM;
37442d52
RGS
10/* -*- buffer-read-only: t -*-
11 *
d6376244
JH
12 * keywords.h
13 *
4bb101f2
JH
14 * Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002,
15 * by Larry Wall and others
d6376244
JH
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
JH
23 */
24EOM
25
a0d0e21e
LW
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
RGS
37print KW "\n/* ex: set ro: */\n";
38
36bb303b
NC
39close KW or die "Error closing keywords.h: $!";
40
a0d0e21e
LW
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
LW
55__END__
56AUTOLOAD
57BEGIN
58CORE
59DESTROY
60END
7d07dbc2 61INIT
7d30b5c4 62CHECK
a0d0e21e
LW
63abs
64accept
65alarm
66and
67atan2
68bind
69binmode
70bless
71caller
72chdir
73chmod
74chomp
75chop
76chown
77chr
78chroot
79close
80closedir
81cmp
82connect
83continue
84cos
85crypt
86dbmclose
87dbmopen
88defined
89delete
90die
91do
92dump
93each
94else
95elsif
96endgrent
97endhostent
98endnetent
99endprotoent
100endpwent
101endservent
102eof
103eq
c963b151 104err
a0d0e21e
LW
105eval
106exec
107exists
108exit
109exp
110fcntl
111fileno
112flock
113for
114foreach
115fork
116format
117formline
118ge
119getc
120getgrent
121getgrgid
122getgrnam
123gethostbyaddr
124gethostbyname
125gethostent
126getlogin
127getnetbyaddr
128getnetbyname
129getnetent
130getpeername
131getpgrp
132getppid
133getpriority
134getprotobyname
135getprotobynumber
136getprotoent
137getpwent
138getpwnam
139getpwuid
140getservbyname
141getservbyport
142getservent
143getsockname
144getsockopt
145glob
146gmtime
147goto
148grep
149gt
150hex
151if
152index
153int
154ioctl
155join
156keys
157kill
158last
159lc
160lcfirst
161le
162length
163link
164listen
165local
166localtime
c0329465 167lock
a0d0e21e
LW
168log
169lstat
170lt
171m
172map
173mkdir
174msgctl
175msgget
176msgrcv
177msgsnd
178my
179ne
180next
181no
182not
183oct
184open
185opendir
186or
187ord
77ca0c92 188our
a0d0e21e
LW
189pack
190package
191pipe
192pop
193pos
194print
195printf
c07a80fd 196prototype
a0d0e21e
LW
197push
198q
199qq
8782bef2 200qr
a0d0e21e
LW
201quotemeta
202qw
203qx
204rand
205read
206readdir
207readline
208readlink
209readpipe
210recv
211redo
212ref
213rename
214require
215reset
216return
217reverse
218rewinddir
219rindex
220rmdir
221s
222scalar
223seek
224seekdir
225select
226semctl
227semget
228semop
229send
230setgrent
231sethostent
232setnetent
233setpgrp
234setpriority
235setprotoent
236setpwent
237setservent
238setsockopt
239shift
240shmctl
241shmget
242shmread
243shmwrite
244shutdown
245sin
246sleep
247socket
248socketpair
249sort
250splice
251split
252sprintf
253sqrt
254srand
255stat
256study
257sub
258substr
259symlink
260syscall
c07a80fd 261sysopen
a0d0e21e 262sysread
137443ea 263sysseek
a0d0e21e
LW
264system
265syswrite
266tell
267telldir
268tie
c07a80fd 269tied
a0d0e21e
LW
270time
271times
272tr
273truncate
274uc
275ucfirst
276umask
277undef
278unless
279unlink
280unpack
281unshift
282untie
283until
284use
285utime
286values
287vec
288wait
289waitpid
290wantarray
291warn
292while
293write
294x
295xor
296y