This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
(Replaced by #4297.)
[perl5.git] / perlvars.h
1 /****************/
2 /* Truly global */
3 /****************/
4
5 /* Don't forget to re-run embed.pl to propagate changes! */
6
7 /* This file describes the "global" variables used by perl
8  * This used to be in perl.h directly but we want to abstract out into
9  * distinct files which are per-thread, per-interpreter or really global,
10  * and how they're initialized.
11  *
12  * The 'G' prefix is only needed for vars that need appropriate #defines
13  * generated in embed*.h.  Such symbols are also used to generate
14  * the appropriate export list for win32.
15  *
16  * Avoid build-specific #ifdefs here, like DEBUGGING.  That way,
17  * we can keep binary compatibility of the curinterp structure */
18
19
20 /* global state */
21 PERLVAR(Gcurinterp,     PerlInterpreter *)
22                                         /* currently running interpreter
23                                          * XXX this needs to be in TLS */
24
25 /* constants (these are not literals to facilitate pointer comparisons) */
26 PERLVARIC(GYes,         char *, "1")
27 PERLVARIC(GNo,          char *, "")
28 PERLVARIC(Ghexdigit,    char *, "0123456789abcdef0123456789ABCDEF")
29 PERLVARIC(Gpatleave,    char *, "\\.^$@dDwWsSbB+*?|()-nrtfeaxc0123456789[{]}")
30
31 /* XXX does anyone even use this? */
32 PERLVARI(Gdo_undump,    bool,   FALSE)  /* -u or dump seen? */