Commit | Line | Data |
49f531da |
1 | /****************/ |
2 | /* Truly global */ |
3 | /****************/ |
4 | |
cb68f92d |
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 |
22c35a8c |
13 | * generated in embed*.h. Such symbols are also used to generate |
14dd3ad8 |
14 | * the appropriate export list for win32. */ |
cb68f92d |
15 | |
49f531da |
16 | /* global state */ |
cb68f92d |
17 | PERLVAR(Gcurinterp, PerlInterpreter *) |
43165c05 |
18 | /* currently running interpreter |
19 | * XXX this needs to be in TLS */ |
a0ed51b3 |
20 | |
3fe35a81 |
21 | /* constants (these are not literals to facilitate pointer comparisons) */ |
3fe6f2dc |
22 | PERLVARIC(GYes, char *, "1") |
23 | PERLVARIC(GNo, char *, "") |
e3fdf988 |
24 | PERLVARIC(Ghexdigit, char *, "0123456789abcdef0123456789ABCDEF") |
3fe6f2dc |
25 | PERLVARIC(Gpatleave, char *, "\\.^$@dDwWsSbB+*?|()-nrtfeaxc0123456789[{]}") |
43165c05 |
26 | |
27 | /* XXX does anyone even use this? */ |
28 | PERLVARI(Gdo_undump, bool, FALSE) /* -u or dump seen? */ |
b363f7ed |
29 | |
1feb2720 |
30 | #if defined(MYMALLOC) && (defined(USE_THREADS) || defined(USE_ITHREADS)) |
b363f7ed |
31 | PERLVAR(Gmalloc_mutex, perl_mutex) /* Mutex for malloc */ |
32 | #endif |