Ooops. It helps to p4 add the new file.
[p5sagit/p5-mst-13.2.git] / intrpvar.h
CommitLineData
49f531da 1/***********************************************/
2/* Global only to current interpreter instance */
3/***********************************************/
4
cb68f92d 5/* Don't forget to re-run embed.pl to propagate changes! */
6
6537fe72 7/* New variables must be added to the very end for binary compatibility.
8 * XSUB.h provides wrapper functions via perlapi.h that make this
9 * irrelevant, but not all code may be expected to #include XSUB.h. */
10
02506efe 11/* Don't forget to add your variable also to perl_clone()! */
12
cb68f92d 13/* The 'I' prefix is only needed for vars that need appropriate #defines
14 * generated when built with or without MULTIPLICITY. It is also used
15 * to generate the appropriate export list for win32.
16 *
14dd3ad8 17 * When building without MULTIPLICITY, these variables will be truly global. */
cb68f92d 18
d95e864f 19
20/* For historical reasons this file follows thrdvar.h into the interpeter
21 struct, and that file currently ends with 7 bytes of variables, so putting
22 one last byte here is good for alignment. */
23
24/* This value may be set when embedding for full cleanup */
25/* 0=none, 1=full, 2=full with checks */
26PERLVARI(Iperl_destruct_level, U8, 0)
27
28PERLVAR(Iperldb, U32)
29
49f531da 30/* pseudo environmental stuff */
d95e864f 31PERLVAR(Iorigargc, int)
cb68f92d 32PERLVAR(Iorigargv, char **)
33PERLVAR(Ienvgv, GV *)
cb68f92d 34PERLVAR(Iincgv, GV *)
b3ac6de7 35PERLVAR(Ihintgv, GV *)
cb68f92d 36PERLVAR(Iorigfilename, char *)
37PERLVAR(Idiehook, SV *)
38PERLVAR(Iwarnhook, SV *)
1d7c1841 39
40/* switches */
a7cb1f99 41PERLVAR(Ipatchlevel, SV *)
27da23d5 42PERLVAR(Ilocalpatches, const char * const *)
dd374669 43PERLVARI(Isplitstr, const char *, " ")
9f7da6d5 44
45PERLVAR(Iminus_c, bool)
cb68f92d 46PERLVAR(Ipreprocess, bool)
47PERLVAR(Iminus_n, bool)
48PERLVAR(Iminus_p, bool)
49PERLVAR(Iminus_l, bool)
50PERLVAR(Iminus_a, bool)
51PERLVAR(Iminus_F, bool)
52PERLVAR(Idoswitches, bool)
9f7da6d5 53
bc9b29db 54PERLVAR(Iminus_E, bool)
954c1994 55
56/*
ccfc67b7 57=head1 Global Variables
58
2eb25c99 59=for apidoc mn|bool|PL_dowarn
954c1994 60
61The C variable which corresponds to Perl's $^W warning variable.
62
63=cut
64*/
65
d41ff1b8 66PERLVAR(Idowarn, U8)
cb68f92d 67PERLVAR(Idoextract, bool)
49f531da 68PERLVAR(Isawampersand, bool) /* must save all match strings */
cb68f92d 69PERLVAR(Iunsafe, bool)
9f7da6d5 70PERLVAR(Iexit_flags, U8) /* was exit() unexpected, etc. */
71PERLVAR(Isrand_called, bool)
72/* Part of internal state, but makes the 16th 1 byte variable in a row. */
73PERLVAR(Itainting, bool) /* doing taint checks */
cb68f92d 74PERLVAR(Iinplace, char *)
75PERLVAR(Ie_script, SV *)
49f531da 76
77/* magical thingies */
78PERLVAR(Ibasetime, Time_t) /* $^T */
79PERLVAR(Iformfeed, SV *) /* $^L */
d4cce5f1 80
81
cb68f92d 82PERLVARI(Imaxsysfd, I32, MAXSYSFD)
83 /* top fd to pass to subprocesses */
49f531da 84PERLVAR(Istatusvalue, I32) /* $? */
85#ifdef VMS
cb68f92d 86PERLVAR(Istatusvalue_vms,U32)
e5218da5 87#else
88PERLVAR(Istatusvalue_posix,I32)
49f531da 89#endif
90
d95e864f 91#ifdef CSH
92PERLVARI(Icshlen, I32, 0)
93PERLVARI(Icshname, const char *, CSH)
94#endif
9f7da6d5 95
49f531da 96/* shortcuts to various I/O objects */
cb68f92d 97PERLVAR(Istdingv, GV *)
bf49b057 98PERLVAR(Istderrgv, GV *)
cb68f92d 99PERLVAR(Idefgv, GV *)
100PERLVAR(Iargvgv, GV *)
101PERLVAR(Iargvoutgv, GV *)
1d7c1841 102PERLVAR(Iargvout_stack, AV *)
49f531da 103
104/* shortcuts to regexp stuff */
5c0ca799 105/* this one needs to be moved to thrdvar.h and accessed via
4d1ff10f 106 * find_threadsv() when USE_5005THREADS */
cb68f92d 107PERLVAR(Ireplgv, GV *)
49f531da 108
109/* shortcuts to misc objects */
cb68f92d 110PERLVAR(Ierrgv, GV *)
49f531da 111
112/* shortcuts to debugging objects */
cb68f92d 113PERLVAR(IDBgv, GV *)
114PERLVAR(IDBline, GV *)
954c1994 115
116/*
2eb25c99 117=for apidoc mn|GV *|PL_DBsub
954c1994 118When Perl is run in debugging mode, with the B<-d> switch, this GV contains
119the SV which holds the name of the sub being debugged. This is the C
120variable which corresponds to Perl's $DB::sub variable. See
121C<PL_DBsingle>.
122
2eb25c99 123=for apidoc mn|SV *|PL_DBsingle
954c1994 124When Perl is run in debugging mode, with the B<-d> switch, this SV is a
7889fe52 125boolean which indicates whether subs are being single-stepped.
954c1994 126Single-stepping is automatically turned on after every step. This is the C
127variable which corresponds to Perl's $DB::single variable. See
128C<PL_DBsub>.
129
2eb25c99 130=for apidoc mn|SV *|PL_DBtrace
954c1994 131Trace variable used when Perl is run in debugging mode, with the B<-d>
132switch. This is the C variable which corresponds to Perl's $DB::trace
133variable. See C<PL_DBsingle>.
134
135=cut
136*/
137
cb68f92d 138PERLVAR(IDBsub, GV *)
139PERLVAR(IDBsingle, SV *)
140PERLVAR(IDBtrace, SV *)
141PERLVAR(IDBsignal, SV *)
49f531da 142PERLVAR(Ilineary, AV *) /* lines of script for debugger */
143PERLVAR(Idbargs, AV *) /* args to call listed by caller function */
144
145/* symbol tables */
49f531da 146PERLVAR(Idebstash, HV *) /* symbol table for perldb package */
147PERLVAR(Iglobalstash, HV *) /* global keyword overrides imported here */
148PERLVAR(Icurstname, SV *) /* name of current package */
149PERLVAR(Ibeginav, AV *) /* names of BEGIN subroutines */
d4cce5f1 150PERLVAR(Iendav, AV *) /* names of END subroutines */
3c10abe3 151PERLVAR(Iunitcheckav, AV *) /* names of UNITCHECK subroutines */
7d30b5c4 152PERLVAR(Icheckav, AV *) /* names of CHECK subroutines */
49f531da 153PERLVAR(Iinitav, AV *) /* names of INIT subroutines */
154PERLVAR(Istrtab, HV *) /* shared string table */
005a453c 155PERLVARI(Isub_generation,U32,1) /* incr to invalidate method cache */
49f531da 156
9f7da6d5 157/* funky return mechanisms */
158PERLVAR(Iforkprocess, int) /* so do_open |- can return proc# */
159
49f531da 160/* memory management */
49f531da 161PERLVAR(Isv_count, I32) /* how many SV* are currently allocated */
162PERLVAR(Isv_objcount, I32) /* how many objects are currently allocated */
163PERLVAR(Isv_root, SV*) /* storage for SVs belonging to interp */
164PERLVAR(Isv_arenaroot, SV*) /* list of areas for garbage collection */
165
49f531da 166/* subprocess state */
d4cce5f1 167PERLVAR(Ifdpid, AV *) /* keep fd-to-pid mappings for my_popen */
49f531da 168
169/* internal state */
49f531da 170PERLVARI(Iop_mask, char *, NULL) /* masked operations for safe evals */
171
49f531da 172/* current interpreter roots */
cb68f92d 173PERLVAR(Imain_cv, CV *)
174PERLVAR(Imain_root, OP *)
175PERLVAR(Imain_start, OP *)
176PERLVAR(Ieval_root, OP *)
177PERLVAR(Ieval_start, OP *)
49f531da 178
179/* runtime control stuff */
cb68f92d 180PERLVARI(Icurcopdb, COP *, NULL)
181PERLVARI(Icopline, line_t, NOLINE)
49f531da 182
183/* statics moved here for shared library purposes */
9f7da6d5 184PERLVARI(Igensym, I32, 0) /* next symbol for getsym() to define */
49f531da 185PERLVAR(Ifilemode, int) /* so nextargv() can preserve mode */
186PERLVAR(Ilastfd, int) /* what to preserve mode on */
187PERLVAR(Ioldname, char *) /* what to preserve mode on */
d4cce5f1 188PERLVAR(IArgv, char **) /* stuff to free from do_aexec, vfork safe */
189PERLVAR(ICmd, char *) /* stuff to free from do_aexec, vfork safe */
cb68f92d 190PERLVAR(Ipreambleav, AV *)
cb68f92d 191PERLVAR(Imess_sv, SV *)
7889fe52 192PERLVAR(Iors_sv, SV *) /* output record separator $\ */
d95e864f 193 /* Space for one more U16 here without increasing the structure size */
194PERLVAR(Ilast_lop_op, OPCODE) /* last list operator */
195PERLVAR(Iin_my, U16) /* we're compiling a "my" (or "our") declaration */
196PERLVARI(Ilaststype, U16, OP_STAT)
197PERLVARI(Ilaststatval, int, -1)
d4cce5f1 198
4b556e6c 199/* interpreter atexit processing */
d95e864f 200PERLVARI(Iexitlistlen, I32, 0) /* length of same */
cb68f92d 201PERLVARI(Iexitlist, PerlExitListEntry *, NULL)
202 /* list of exit functions */
954c1994 203
204/*
205=for apidoc Amn|HV*|PL_modglobal
206
7889fe52 207C<PL_modglobal> is a general purpose, interpreter global HV for use by
954c1994 208extensions that need to keep information on a per-interpreter basis.
7889fe52 209In a pinch, it can also be used as a symbol table for extensions
210to share data among each other. It is a good idea to use keys
954c1994 211prefixed by the package name of the extension that owns the data.
212
213=cut
214*/
215
cb68f92d 216PERLVAR(Imodglobal, HV *) /* per-interp module data */
217
218/* these used to be in global before 5.004_68 */
219PERLVARI(Iprofiledata, U32 *, NULL) /* table of ops, counts */
4608196e 220PERLVARI(Irsfp, PerlIO * VOL, NULL) /* current source file pointer */
7d49f689 221PERLVARI(Irsfp_filters, AV *, NULL) /* keeps active source filters */
cb68f92d 222
223PERLVAR(Icompiling, COP) /* compiling/done executing marker */
224
225PERLVAR(Icompcv, CV *) /* currently compiling subroutine */
226PERLVAR(Icomppad, AV *) /* storage for lexically scoped temporaries */
227PERLVAR(Icomppad_name, AV *) /* variable names for "my" variables */
228PERLVAR(Icomppad_name_fill, I32) /* last "introduced" variable offset */
229PERLVAR(Icomppad_name_floor, I32) /* start of vars in innermost block */
4b556e6c 230
231#ifdef HAVE_INTERP_INTERN
cb68f92d 232PERLVAR(Isys_intern, struct interp_intern)
233 /* platform internals */
4b556e6c 234#endif
235
7fae4e64 236/* more statics moved here */
7fae4e64 237PERLVAR(IDBcv, CV *) /* from perl.c */
9f7da6d5 238PERLVARI(Igeneration, int, 100) /* from op.c */
56953603 239
cb68f92d 240PERLVARI(Iin_clean_objs,bool, FALSE) /* from sv.c */
241PERLVARI(Iin_clean_all, bool, FALSE) /* from sv.c */
9f7da6d5 242PERLVAR(Inomemok, bool) /* let malloc context handle nomem */
243PERLVARI(Isavebegin, bool, FALSE) /* save BEGINs for compiler */
7fae4e64 244
245PERLVAR(Ilinestart, char *) /* beg. of most recently read line */
7fae4e64 246
d8eceb89 247PERLVAR(Iuid, Uid_t) /* current real user id */
248PERLVAR(Ieuid, Uid_t) /* current effective user id */
249PERLVAR(Igid, Gid_t) /* current real group id */
250PERLVAR(Iegid, Gid_t) /* current effective group id */
bf9cdc68 251PERLVARI(Ian, U32, 0) /* malloc sequence number */
252PERLVARI(Icop_seqmax, U32, 0) /* statement sequence number */
bf9cdc68 253PERLVARI(Ievalseq, U32, 0) /* eval sequence number */
0672f40e 254PERLVAR(Iorigalen, U32)
9f7da6d5 255PERLVAR(Iorigenviron, char **)
ca0c25f6 256#ifdef PERL_USES_PL_PIDSTATUS
0672f40e 257PERLVAR(Ipidstatus, HV *) /* pid-to-status mappings for waitpid */
ca0c25f6 258#endif
0672f40e 259PERLVAR(Iosname, char *) /* operating system */
5c728af0 260
0672f40e 261PERLVAR(Isighandlerp, Sighandler_t)
262
232d1c15 263PERLVARA(Ibody_roots, PERL_ARENA_ROOTS_SIZE, void*) /* array of body roots */
93e68bfb 264
0672f40e 265PERLVAR(Inice_chunk, char *) /* a nice chunk of memory to reuse */
266PERLVAR(Inice_chunk_size, U32) /* how nice the chunk of memory is */
267
9f7da6d5 268PERLVARI(Imaxo, int, MAXO) /* maximum number of ops */
269
0b94c7bb 270PERLVARI(Irunops, runops_proc_t, MEMBER_TO_FPTR(RUNOPS_DEFAULT))
0672f40e 271
51371543 272PERLVARA(Itokenbuf,256, char)
0672f40e 273
954c1994 274/*
275=for apidoc Amn|SV|PL_sv_undef
276This is the C<undef> SV. Always refer to this as C<&PL_sv_undef>.
277
278=for apidoc Amn|SV|PL_sv_no
279This is the C<false> SV. See C<PL_sv_yes>. Always refer to this as
280C<&PL_sv_no>.
281
282=for apidoc Amn|SV|PL_sv_yes
283This is the C<true> SV. See C<PL_sv_no>. Always refer to this as
284C<&PL_sv_yes>.
285
286=cut
287*/
288
0672f40e 289PERLVAR(Isv_undef, SV)
290PERLVAR(Isv_no, SV)
291PERLVAR(Isv_yes, SV)
292
0672f40e 293/* What we know when we're in LEX_KNOWNEXT state. */
5db06880 294#ifdef PERL_MAD
295PERLVARA(Inexttoke,5, NEXTTOKE) /* value of next token, if any */
5336380d 296PERLVAR(Icurforce, I32)
f8565a66 297#else
51371543 298PERLVARA(Inextval,5, YYSTYPE) /* value of next token, if any */
299PERLVARA(Inexttype,5, I32) /* type of next token */
0672f40e 300PERLVAR(Inexttoke, I32)
5db06880 301#endif
0672f40e 302
0672f40e 303PERLVAR(Ibufptr, char *)
304PERLVAR(Ioldbufptr, char *)
305PERLVAR(Ioldoldbufptr, char *)
306PERLVAR(Ibufend, char *)
0672f40e 307
d95e864f 308PERLVARI(Iexpect, U8, XSTATE) /* how to interpret ambiguous tokens */
309PERLVAR(Ilex_state, U8) /* next token is determined */
310PERLVAR(Ierror_count, U8) /* how many errors so far, max 10 */
311PERLVARI(Icv_has_eval, bool, FALSE) /* PL_compcv includes an entereval or similar */
0672f40e 312PERLVAR(Imulti_end, I32) /* last line of multi-line string */
0672f40e 313
0672f40e 314PERLVAR(Isubname, SV *) /* name of current subroutine */
315
d95e864f 316PERLVAR(Isubline, I32) /* line this subroutine began on */
0672f40e 317PERLVAR(Imin_intro_pending, I32) /* start of vars to introduce */
d95e864f 318
0672f40e 319PERLVAR(Imax_intro_pending, I32) /* end of vars to introduce */
320PERLVAR(Ipadix, I32) /* max used index in current "register" pad */
d95e864f 321
0672f40e 322PERLVAR(Ipadix_floor, I32) /* how low may inner block reset padix */
323PERLVAR(Ipad_reset_pending, I32) /* reset pad on next attempted alloc */
324
0672f40e 325PERLVAR(Ilast_uni, char *) /* position of last named-unary op */
326PERLVAR(Ilast_lop, char *) /* position of last list operator */
0672f40e 327PERLVAR(Iin_my_stash, HV *) /* declared class of this "my" declaration */
0672f40e 328
1d7c1841 329PERLVAR(Ihints, U32) /* pragma-tic compile-time flags */
0672f40e 330
331PERLVAR(Idebug, VOL U32) /* flags given to -D switch */
332
bf9cdc68 333PERLVARI(Iamagic_generation, long, 0)
0672f40e 334
335#ifdef USE_LOCALE_COLLATE
0672f40e 336PERLVAR(Icollation_name,char *) /* Name of current collation */
0672f40e 337PERLVAR(Icollxfrm_base, Size_t) /* Basic overhead in *xfrm() */
338PERLVARI(Icollxfrm_mult,Size_t, 2) /* Expansion factor in *xfrm() */
9f7da6d5 339PERLVARI(Icollation_ix, U32, 0) /* Collation generation index */
340PERLVARI(Icollation_standard, bool, TRUE)
341 /* Assume simple collation */
0672f40e 342#endif /* USE_LOCALE_COLLATE */
343
9f7da6d5 344
345#ifdef PERL_UTF8_CACHE_ASSERT
346PERLVARI(Iutf8cache, I8, -1) /* Is the utf8 caching code enabled? */
347#else
348PERLVARI(Iutf8cache, I8, 1) /* Is the utf8 caching code enabled? */
349#endif
350
0672f40e 351#ifdef USE_LOCALE_NUMERIC
352
0672f40e 353PERLVARI(Inumeric_standard, bool, TRUE)
354 /* Assume simple numerics */
355PERLVARI(Inumeric_local, bool, TRUE)
356 /* Assume local numerics */
9f7da6d5 357PERLVAR(Inumeric_name, char *) /* Name of current numeric locale */
0672f40e 358#endif /* !USE_LOCALE_NUMERIC */
359
360/* utf8 character classes */
361PERLVAR(Iutf8_alnum, SV *)
b8c5462f 362PERLVAR(Iutf8_alnumc, SV *)
363PERLVAR(Iutf8_ascii, SV *)
0672f40e 364PERLVAR(Iutf8_alpha, SV *)
365PERLVAR(Iutf8_space, SV *)
b8c5462f 366PERLVAR(Iutf8_cntrl, SV *)
367PERLVAR(Iutf8_graph, SV *)
0672f40e 368PERLVAR(Iutf8_digit, SV *)
369PERLVAR(Iutf8_upper, SV *)
370PERLVAR(Iutf8_lower, SV *)
371PERLVAR(Iutf8_print, SV *)
b8c5462f 372PERLVAR(Iutf8_punct, SV *)
373PERLVAR(Iutf8_xdigit, SV *)
0672f40e 374PERLVAR(Iutf8_mark, SV *)
375PERLVAR(Iutf8_toupper, SV *)
376PERLVAR(Iutf8_totitle, SV *)
377PERLVAR(Iutf8_tolower, SV *)
b4e400f9 378PERLVAR(Iutf8_tofold, SV *)
0672f40e 379PERLVAR(Ilast_swash_hv, HV *)
0672f40e 380PERLVAR(Ilast_swash_tmps, U8 *)
381PERLVAR(Ilast_swash_slen, STRLEN)
9f7da6d5 382PERLVARA(Ilast_swash_key,10, U8)
d95e864f 383PERLVAR(Ilast_swash_klen, U8) /* Only needs to store 0-10 */
384
385#ifdef FCRYPT
386PERLVARI(Icryptseen, bool, FALSE) /* has fast crypt() been initialized? */
387#endif
388
389PERLVARI(Iglob_index, int, 0)
390
0672f40e 391
5912531f 392PERLVAR(Iparser, yy_parser *) /* current parser state */
12fbd33b 393
0672f40e 394PERLVAR(Ibitcount, char *)
0672f40e 395
1d7c1841 396PERLVAR(Ipsig_ptr, SV**)
397PERLVAR(Ipsig_name, SV**)
398
c5be433b 399#if defined(PERL_IMPLICIT_SYS)
32e30700 400PERLVAR(IMem, struct IPerlMem*)
1d7c1841 401PERLVAR(IMemShared, struct IPerlMem*)
402PERLVAR(IMemParse, struct IPerlMem*)
32e30700 403PERLVAR(IEnv, struct IPerlEnv*)
404PERLVAR(IStdIO, struct IPerlStdIO*)
405PERLVAR(ILIO, struct IPerlLIO*)
406PERLVAR(IDir, struct IPerlDir*)
407PERLVAR(ISock, struct IPerlSock*)
408PERLVAR(IProc, struct IPerlProc*)
76e3520e 409#endif
1d7c1841 410
1d7c1841 411PERLVAR(Iptr_table, PTR_TBL_t*)
7d49f689 412PERLVARI(Ibeginav_save, AV*, NULL) /* save BEGIN{}s when compiling */
f180df80 413
fdda85ca 414PERLVAR(Ibody_arenas, void*) /* pointer to list of body-arenas */
93e68bfb 415
ce08f86c 416PERLVAR(Ipsig_pend, int *) /* per-signal "count" of pending */
417PERLVARI(Isig_pending, int,0) /* Number if highest signal pending */
418
d95e864f 419
420PERLVAR(Itaint_warn, bool) /* taint warns instead of dying */
421PERLVAR(Iutf8locale, bool) /* utf8 locale detected */
422PERLVARI(Ihash_seed_set, bool, FALSE) /* Hash initialized? */
423PERLVARI(Irehash_seed_set, bool, FALSE) /* 582 hash initialized? */
424
a453c169 425#ifdef USE_LOCALE_NUMERIC
426
427PERLVAR(Inumeric_radix_sv, SV *) /* The radix separator if not '.' */
428
429#endif
ce08f86c 430
1fcf4c12 431#if defined(USE_ITHREADS)
aefff11f 432PERLVAR(Iregex_pad, SV**) /* All regex objects */
433PERLVAR(Iregex_padav, AV*) /* All regex objects */
e5dd39fc 434
1fcf4c12 435#endif
436
ea68fd67 437#ifdef USE_REENTRANT_API
438PERLVAR(Ireentrant_buffer, REENTR*) /* here we store the _r buffers */
f5a82810 439#endif
440
aefff11f 441
598921a7 442#ifdef PERL_MAD
443PERLVARI(Imadskills, bool, FALSE) /* preserve all syntactic info */
444 /* (MAD = Misc Attribute Decoration) */
445PERLVARI(Ixmlfp, PerlIO *,NULL)
446#endif
447
53e06cf0 448PERLVAR(Icustom_op_names, HV*) /* Names of user defined ops */
449PERLVAR(Icustom_op_descs, HV*) /* Descriptions of user defined ops */
19e8ce8e 450
a1ea730d 451#ifdef PERLIO_LAYERS
452PERLVARI(Iperlio, PerlIO *,NULL)
3a1ee7e8 453PERLVARI(Iknown_layers, PerlIO_list_t *,NULL)
454PERLVARI(Idef_layerlist, PerlIO_list_t *,NULL)
a1ea730d 455#endif
456
a0714e2c 457PERLVARI(Iencoding, SV*, NULL) /* character encoding */
0a378802 458
128e8167 459PERLVAR(Idebug_pad, struct perl_debug_pad) /* always needed because of the re extension */
ce333219 460
238a4c30 461#ifdef PL_OP_SLAB_ALLOC
5a8e194f 462PERLVAR(IOpPtr,I32 **)
463PERLVARI(IOpSpace,I32,0)
464PERLVAR(IOpSlab,I32 *)
238a4c30 465#endif
466
82686b01 467PERLVAR(Iutf8_idstart, SV *)
468PERLVAR(Iutf8_idcont, SV *)
469
147f47de 470PERLVAR(Isort_RealCmp, SVCOMPARE_t)
471
7d49f689 472PERLVARI(Icheckav_save, AV*, NULL) /* save CHECK{}s when compiling */
3c10abe3 473PERLVARI(Iunitcheckav_save, AV*, NULL) /* save UNITCHECK{}s when compiling */
ece599bd 474
5311654c 475PERLVARI(Iclocktick, long, 0) /* this many times() ticks in a second */
476
edab1aa3 477PERLVARI(Iin_load_module, int, 0) /* to prevent recursions in PerlIO_find_layer */
478
a05d7ebb 479PERLVAR(Iunicode, U32) /* Unicode features: $ENV{PERL_UNICODE} or -C */
480
4ffa73a3 481PERLVAR(Isignals, U32) /* Using which pre-5.8 signals */
482
57c6e6d2 483PERLVAR(Ireentrant_retint, int) /* Integer return value from reentrant functions */
484
9f7da6d5 485PERLVAR(Istashcache, HV *) /* Cache to speed up S_method_common */
486
15a5279a 487/* Hooks to shared SVs and locks. */
488PERLVARI(Isharehook, share_proc_t, MEMBER_TO_FPTR(Perl_sv_nosharing))
d5b2b27b 489PERLVARI(Ilockhook, share_proc_t, MEMBER_TO_FPTR(Perl_sv_nosharing))
d0647d4e 490#ifdef NO_MATHOMS
491# define PERL_UNLOCK_HOOK Perl_sv_nosharing
492#else
493/* This reference ensures that the mathoms are linked with perl */
494# define PERL_UNLOCK_HOOK Perl_sv_nounlocking
495#endif
496PERLVARI(Iunlockhook, share_proc_t, MEMBER_TO_FPTR(PERL_UNLOCK_HOOK))
497
15a5279a 498PERLVARI(Ithreadhook, thrhook_proc_t, MEMBER_TO_FPTR(Perl_nothreadhook))
499
bce260cd 500/* Force inclusion of both runops options */
501PERLVARI(Irunops_std, runops_proc_t, MEMBER_TO_FPTR(Perl_runops_standard))
502PERLVARI(Irunops_dbg, runops_proc_t, MEMBER_TO_FPTR(Perl_runops_debug))
503
504/* Stores the PPID */
505#ifdef THREADS_HAVE_PIDS
506PERLVARI(Ippid, IV, 0)
507#endif
508
504f80c1 509PERLVARI(Ihash_seed, UV, 0) /* Hash initializer */
510
8b5c2100 511PERLVAR(IDBassertion, SV *)
512
008fb0c0 513PERLVARI(Irehash_seed, UV, 0) /* 582 hash initializer */
4b5190b5 514
41e4abd8 515#ifdef DEBUG_LEAKING_SCALARS_FORK_DUMP
516/* File descriptor to talk to the child which dumps scalars. */
517PERLVARI(Idumper_fd, int, -1)
518#endif
f16dd614 519
520#ifdef PERL_IMPLICIT_CONTEXT
4c901e72 521PERLVARI(Imy_cxt_size, int, 0) /* size of PL_my_cxt_list */
f16dd614 522PERLVARI(Imy_cxt_list, void **, NULL) /* per-module array of MY_CXT pointers */
53d44271 523#ifdef PERL_GLOBAL_STRUCT_PRIVATE
524PERLVARI(Imy_cxt_keys, const char **, NULL) /* per-module array of pointers to MY_CXT_KEY constants */
525#endif
f16dd614 526#endif
527
7cb608b5 528#ifdef PERL_TRACK_MEMPOOL
529/* For use with the memory debugging code in util.c */
530PERLVAR(Imemory_debug_header, struct perl_memory_debug_header)
531#endif
532
f1fac472 533#ifdef PERL_DEBUG_READONLY_OPS
534PERLVARI(Islabs, I32**, NULL) /* Array of slabs that have been allocated */
535PERLVARI(Islab_count, U32, 0) /* Size of the array */
536#endif
537
d95e864f 538/* If you are adding a U16, see the comment above on where there are 2 bytes
539 of gap which currently will be structure padding. */
540
541/* Within a stable branch, new variables must be added to the very end, before
542 * this comment, for binary compatibility (the offsets of the old members must
543 * not change).
b83cd129 544 * (Don't forget to add your variable also to perl_clone()!)
e3acbfda 545 * XSUB.h provides wrapper functions via perlapi.h that make this
b83cd129 546 * irrelevant, but not all code may be expected to #include XSUB.h.
547 */