This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Minor perlreapi.pod cleanup
[perl5.git] / intrpvar.h
CommitLineData
49f531da
NIS
1/***********************************************/
2/* Global only to current interpreter instance */
3/***********************************************/
4
cb68f92d
GS
5/* Don't forget to re-run embed.pl to propagate changes! */
6
6537fe72
MS
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
JH
11/* Don't forget to add your variable also to perl_clone()! */
12
cb68f92d
GS
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
NC
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
GS
32PERLVAR(Iorigargv, char **)
33PERLVAR(Ienvgv, GV *)
cb68f92d 34PERLVAR(Iincgv, GV *)
b3ac6de7 35PERLVAR(Ihintgv, GV *)
cb68f92d
GS
36PERLVAR(Iorigfilename, char *)
37PERLVAR(Idiehook, SV *)
38PERLVAR(Iwarnhook, SV *)
1d7c1841
GS
39
40/* switches */
a7cb1f99 41PERLVAR(Ipatchlevel, SV *)
27da23d5 42PERLVAR(Ilocalpatches, const char * const *)
dd374669 43PERLVARI(Isplitstr, const char *, " ")
9f7da6d5
NC
44
45PERLVAR(Iminus_c, bool)
cb68f92d
GS
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
GS
55
56/*
ccfc67b7
JH
57=head1 Global Variables
58
2eb25c99 59=for apidoc mn|bool|PL_dowarn
954c1994
GS
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
NC
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
GS
74PERLVAR(Iinplace, char *)
75PERLVAR(Ie_script, SV *)
49f531da
NIS
76
77/* magical thingies */
78PERLVAR(Ibasetime, Time_t) /* $^T */
79PERLVAR(Iformfeed, SV *) /* $^L */
d4cce5f1
NIS
80
81
cb68f92d
GS
82PERLVARI(Imaxsysfd, I32, MAXSYSFD)
83 /* top fd to pass to subprocesses */
49f531da
NIS
84PERLVAR(Istatusvalue, I32) /* $? */
85#ifdef VMS
cb68f92d 86PERLVAR(Istatusvalue_vms,U32)
e5218da5
GA
87#else
88PERLVAR(Istatusvalue_posix,I32)
49f531da
NIS
89#endif
90
d95e864f
NC
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
GS
99PERLVAR(Idefgv, GV *)
100PERLVAR(Iargvgv, GV *)
101PERLVAR(Iargvoutgv, GV *)
1d7c1841 102PERLVAR(Iargvout_stack, AV *)
49f531da
NIS
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
NIS
108
109/* shortcuts to misc objects */
cb68f92d 110PERLVAR(Ierrgv, GV *)
49f531da
NIS
111
112/* shortcuts to debugging objects */
cb68f92d
GS
113PERLVAR(IDBgv, GV *)
114PERLVAR(IDBline, GV *)
954c1994
GS
115
116/*
2eb25c99 117=for apidoc mn|GV *|PL_DBsub
954c1994
GS
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
GS
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
GS
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
GS
138PERLVAR(IDBsub, GV *)
139PERLVAR(IDBsingle, SV *)
140PERLVAR(IDBtrace, SV *)
141PERLVAR(IDBsignal, SV *)
49f531da
NIS
142PERLVAR(Ilineary, AV *) /* lines of script for debugger */
143PERLVAR(Idbargs, AV *) /* args to call listed by caller function */
144
145/* symbol tables */
49f531da
NIS
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
NIS
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
NC
157/* funky return mechanisms */
158PERLVAR(Iforkprocess, int) /* so do_open |- can return proc# */
159
49f531da 160/* memory management */
49f531da
NIS
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
NIS
168
169/* internal state */
49f531da
NIS
170PERLVARI(Iop_mask, char *, NULL) /* masked operations for safe evals */
171
49f531da 172/* current interpreter roots */
cb68f92d
GS
173PERLVAR(Imain_cv, CV *)
174PERLVAR(Imain_root, OP *)
175PERLVAR(Imain_start, OP *)
176PERLVAR(Ieval_root, OP *)
177PERLVAR(Ieval_start, OP *)
49f531da
NIS
178
179/* runtime control stuff */
cb68f92d 180PERLVARI(Icurcopdb, COP *, NULL)
49f531da 181
49f531da
NIS
182PERLVAR(Ifilemode, int) /* so nextargv() can preserve mode */
183PERLVAR(Ilastfd, int) /* what to preserve mode on */
184PERLVAR(Ioldname, char *) /* what to preserve mode on */
d4cce5f1
NIS
185PERLVAR(IArgv, char **) /* stuff to free from do_aexec, vfork safe */
186PERLVAR(ICmd, char *) /* stuff to free from do_aexec, vfork safe */
cb68f92d 187PERLVAR(Ipreambleav, AV *)
cb68f92d 188PERLVAR(Imess_sv, SV *)
7889fe52 189PERLVAR(Iors_sv, SV *) /* output record separator $\ */
71eebe1e
NC
190/* statics moved here for shared library purposes */
191PERLVARI(Igensym, I32, 0) /* next symbol for getsym() to define */
a4021b77
NC
192PERLVAR(Ierror_count, U8) /* how many errors so far, max 10 */
193PERLVARI(Icv_has_eval, bool, FALSE) /* PL_compcv includes an entereval or similar */
d95e864f
NC
194PERLVARI(Ilaststype, U16, OP_STAT)
195PERLVARI(Ilaststatval, int, -1)
d4cce5f1 196
4b556e6c 197/* interpreter atexit processing */
d95e864f 198PERLVARI(Iexitlistlen, I32, 0) /* length of same */
cb68f92d
GS
199PERLVARI(Iexitlist, PerlExitListEntry *, NULL)
200 /* list of exit functions */
954c1994
GS
201
202/*
203=for apidoc Amn|HV*|PL_modglobal
204
7889fe52 205C<PL_modglobal> is a general purpose, interpreter global HV for use by
954c1994 206extensions that need to keep information on a per-interpreter basis.
7889fe52
NIS
207In a pinch, it can also be used as a symbol table for extensions
208to share data among each other. It is a good idea to use keys
954c1994
GS
209prefixed by the package name of the extension that owns the data.
210
211=cut
212*/
213
cb68f92d
GS
214PERLVAR(Imodglobal, HV *) /* per-interp module data */
215
216/* these used to be in global before 5.004_68 */
217PERLVARI(Iprofiledata, U32 *, NULL) /* table of ops, counts */
cb68f92d
GS
218
219PERLVAR(Icompiling, COP) /* compiling/done executing marker */
220
221PERLVAR(Icompcv, CV *) /* currently compiling subroutine */
222PERLVAR(Icomppad, AV *) /* storage for lexically scoped temporaries */
223PERLVAR(Icomppad_name, AV *) /* variable names for "my" variables */
224PERLVAR(Icomppad_name_fill, I32) /* last "introduced" variable offset */
225PERLVAR(Icomppad_name_floor, I32) /* start of vars in innermost block */
4b556e6c
JD
226
227#ifdef HAVE_INTERP_INTERN
cb68f92d
GS
228PERLVAR(Isys_intern, struct interp_intern)
229 /* platform internals */
4b556e6c
JD
230#endif
231
7fae4e64 232/* more statics moved here */
7fae4e64 233PERLVAR(IDBcv, CV *) /* from perl.c */
9f7da6d5 234PERLVARI(Igeneration, int, 100) /* from op.c */
56953603 235
cb68f92d
GS
236PERLVARI(Iin_clean_objs,bool, FALSE) /* from sv.c */
237PERLVARI(Iin_clean_all, bool, FALSE) /* from sv.c */
9f7da6d5
NC
238PERLVAR(Inomemok, bool) /* let malloc context handle nomem */
239PERLVARI(Isavebegin, bool, FALSE) /* save BEGINs for compiler */
7fae4e64 240
d8eceb89
JH
241PERLVAR(Iuid, Uid_t) /* current real user id */
242PERLVAR(Ieuid, Uid_t) /* current effective user id */
243PERLVAR(Igid, Gid_t) /* current real group id */
244PERLVAR(Iegid, Gid_t) /* current effective group id */
bf9cdc68
RG
245PERLVARI(Ian, U32, 0) /* malloc sequence number */
246PERLVARI(Icop_seqmax, U32, 0) /* statement sequence number */
bf9cdc68 247PERLVARI(Ievalseq, U32, 0) /* eval sequence number */
0672f40e 248PERLVAR(Iorigalen, U32)
9f7da6d5 249PERLVAR(Iorigenviron, char **)
ca0c25f6 250#ifdef PERL_USES_PL_PIDSTATUS
0672f40e 251PERLVAR(Ipidstatus, HV *) /* pid-to-status mappings for waitpid */
ca0c25f6 252#endif
0672f40e 253PERLVAR(Iosname, char *) /* operating system */
5c728af0 254
0672f40e
GS
255PERLVAR(Isighandlerp, Sighandler_t)
256
232d1c15 257PERLVARA(Ibody_roots, PERL_ARENA_ROOTS_SIZE, void*) /* array of body roots */
93e68bfb 258
0672f40e
GS
259PERLVAR(Inice_chunk, char *) /* a nice chunk of memory to reuse */
260PERLVAR(Inice_chunk_size, U32) /* how nice the chunk of memory is */
261
9f7da6d5
NC
262PERLVARI(Imaxo, int, MAXO) /* maximum number of ops */
263
0b94c7bb 264PERLVARI(Irunops, runops_proc_t, MEMBER_TO_FPTR(RUNOPS_DEFAULT))
0672f40e 265
51371543 266PERLVARA(Itokenbuf,256, char)
0672f40e 267
954c1994
GS
268/*
269=for apidoc Amn|SV|PL_sv_undef
270This is the C<undef> SV. Always refer to this as C<&PL_sv_undef>.
271
272=for apidoc Amn|SV|PL_sv_no
273This is the C<false> SV. See C<PL_sv_yes>. Always refer to this as
274C<&PL_sv_no>.
275
276=for apidoc Amn|SV|PL_sv_yes
277This is the C<true> SV. See C<PL_sv_no>. Always refer to this as
278C<&PL_sv_yes>.
279
280=cut
281*/
282
0672f40e
GS
283PERLVAR(Isv_undef, SV)
284PERLVAR(Isv_no, SV)
285PERLVAR(Isv_yes, SV)
286
0672f40e
GS
287PERLVAR(Isubname, SV *) /* name of current subroutine */
288
d95e864f 289PERLVAR(Isubline, I32) /* line this subroutine began on */
0672f40e 290PERLVAR(Imin_intro_pending, I32) /* start of vars to introduce */
d95e864f 291
0672f40e
GS
292PERLVAR(Imax_intro_pending, I32) /* end of vars to introduce */
293PERLVAR(Ipadix, I32) /* max used index in current "register" pad */
d95e864f 294
0672f40e
GS
295PERLVAR(Ipadix_floor, I32) /* how low may inner block reset padix */
296PERLVAR(Ipad_reset_pending, I32) /* reset pad on next attempted alloc */
297
1d7c1841 298PERLVAR(Ihints, U32) /* pragma-tic compile-time flags */
0672f40e
GS
299
300PERLVAR(Idebug, VOL U32) /* flags given to -D switch */
301
bf9cdc68 302PERLVARI(Iamagic_generation, long, 0)
0672f40e
GS
303
304#ifdef USE_LOCALE_COLLATE
0672f40e 305PERLVAR(Icollation_name,char *) /* Name of current collation */
0672f40e
GS
306PERLVAR(Icollxfrm_base, Size_t) /* Basic overhead in *xfrm() */
307PERLVARI(Icollxfrm_mult,Size_t, 2) /* Expansion factor in *xfrm() */
9f7da6d5
NC
308PERLVARI(Icollation_ix, U32, 0) /* Collation generation index */
309PERLVARI(Icollation_standard, bool, TRUE)
310 /* Assume simple collation */
0672f40e
GS
311#endif /* USE_LOCALE_COLLATE */
312
9f7da6d5
NC
313
314#ifdef PERL_UTF8_CACHE_ASSERT
315PERLVARI(Iutf8cache, I8, -1) /* Is the utf8 caching code enabled? */
316#else
317PERLVARI(Iutf8cache, I8, 1) /* Is the utf8 caching code enabled? */
318#endif
319
0672f40e
GS
320#ifdef USE_LOCALE_NUMERIC
321
0672f40e
GS
322PERLVARI(Inumeric_standard, bool, TRUE)
323 /* Assume simple numerics */
324PERLVARI(Inumeric_local, bool, TRUE)
325 /* Assume local numerics */
9f7da6d5 326PERLVAR(Inumeric_name, char *) /* Name of current numeric locale */
0672f40e
GS
327#endif /* !USE_LOCALE_NUMERIC */
328
329/* utf8 character classes */
330PERLVAR(Iutf8_alnum, SV *)
b8c5462f
JH
331PERLVAR(Iutf8_alnumc, SV *)
332PERLVAR(Iutf8_ascii, SV *)
0672f40e
GS
333PERLVAR(Iutf8_alpha, SV *)
334PERLVAR(Iutf8_space, SV *)
b8c5462f
JH
335PERLVAR(Iutf8_cntrl, SV *)
336PERLVAR(Iutf8_graph, SV *)
0672f40e
GS
337PERLVAR(Iutf8_digit, SV *)
338PERLVAR(Iutf8_upper, SV *)
339PERLVAR(Iutf8_lower, SV *)
340PERLVAR(Iutf8_print, SV *)
b8c5462f
JH
341PERLVAR(Iutf8_punct, SV *)
342PERLVAR(Iutf8_xdigit, SV *)
0672f40e
GS
343PERLVAR(Iutf8_mark, SV *)
344PERLVAR(Iutf8_toupper, SV *)
345PERLVAR(Iutf8_totitle, SV *)
346PERLVAR(Iutf8_tolower, SV *)
b4e400f9 347PERLVAR(Iutf8_tofold, SV *)
0672f40e 348PERLVAR(Ilast_swash_hv, HV *)
0672f40e
GS
349PERLVAR(Ilast_swash_tmps, U8 *)
350PERLVAR(Ilast_swash_slen, STRLEN)
9f7da6d5 351PERLVARA(Ilast_swash_key,10, U8)
d95e864f
NC
352PERLVAR(Ilast_swash_klen, U8) /* Only needs to store 0-10 */
353
354#ifdef FCRYPT
355PERLVARI(Icryptseen, bool, FALSE) /* has fast crypt() been initialized? */
356#endif
357
358PERLVARI(Iglob_index, int, 0)
359
0672f40e 360
5912531f 361PERLVAR(Iparser, yy_parser *) /* current parser state */
12fbd33b 362
0672f40e 363PERLVAR(Ibitcount, char *)
0672f40e 364
1d7c1841
GS
365PERLVAR(Ipsig_ptr, SV**)
366PERLVAR(Ipsig_name, SV**)
367
c5be433b 368#if defined(PERL_IMPLICIT_SYS)
32e30700 369PERLVAR(IMem, struct IPerlMem*)
1d7c1841
GS
370PERLVAR(IMemShared, struct IPerlMem*)
371PERLVAR(IMemParse, struct IPerlMem*)
32e30700
GS
372PERLVAR(IEnv, struct IPerlEnv*)
373PERLVAR(IStdIO, struct IPerlStdIO*)
374PERLVAR(ILIO, struct IPerlLIO*)
375PERLVAR(IDir, struct IPerlDir*)
376PERLVAR(ISock, struct IPerlSock*)
377PERLVAR(IProc, struct IPerlProc*)
76e3520e 378#endif
1d7c1841 379
1d7c1841 380PERLVAR(Iptr_table, PTR_TBL_t*)
7d49f689 381PERLVARI(Ibeginav_save, AV*, NULL) /* save BEGIN{}s when compiling */
f180df80 382
fdda85ca 383PERLVAR(Ibody_arenas, void*) /* pointer to list of body-arenas */
93e68bfb 384
ce08f86c
NIS
385PERLVAR(Ipsig_pend, int *) /* per-signal "count" of pending */
386PERLVARI(Isig_pending, int,0) /* Number if highest signal pending */
387
d95e864f
NC
388
389PERLVAR(Itaint_warn, bool) /* taint warns instead of dying */
390PERLVAR(Iutf8locale, bool) /* utf8 locale detected */
391PERLVARI(Ihash_seed_set, bool, FALSE) /* Hash initialized? */
392PERLVARI(Irehash_seed_set, bool, FALSE) /* 582 hash initialized? */
393
a453c169
JH
394#ifdef USE_LOCALE_NUMERIC
395
396PERLVAR(Inumeric_radix_sv, SV *) /* The radix separator if not '.' */
397
398#endif
ce08f86c 399
1fcf4c12 400#if defined(USE_ITHREADS)
aefff11f
JD
401PERLVAR(Iregex_pad, SV**) /* All regex objects */
402PERLVAR(Iregex_padav, AV*) /* All regex objects */
e5dd39fc 403
1fcf4c12
AB
404#endif
405
ea68fd67
NC
406#ifdef USE_REENTRANT_API
407PERLVAR(Ireentrant_buffer, REENTR*) /* here we store the _r buffers */
f5a82810
JH
408#endif
409
aefff11f 410
598921a7
NC
411#ifdef PERL_MAD
412PERLVARI(Imadskills, bool, FALSE) /* preserve all syntactic info */
413 /* (MAD = Misc Attribute Decoration) */
414PERLVARI(Ixmlfp, PerlIO *,NULL)
415#endif
416
53e06cf0
SC
417PERLVAR(Icustom_op_names, HV*) /* Names of user defined ops */
418PERLVAR(Icustom_op_descs, HV*) /* Descriptions of user defined ops */
19e8ce8e 419
a1ea730d
NIS
420#ifdef PERLIO_LAYERS
421PERLVARI(Iperlio, PerlIO *,NULL)
3a1ee7e8
NIS
422PERLVARI(Iknown_layers, PerlIO_list_t *,NULL)
423PERLVARI(Idef_layerlist, PerlIO_list_t *,NULL)
a1ea730d
NIS
424#endif
425
a0714e2c 426PERLVARI(Iencoding, SV*, NULL) /* character encoding */
0a378802 427
128e8167 428PERLVAR(Idebug_pad, struct perl_debug_pad) /* always needed because of the re extension */
ce333219 429
238a4c30 430#ifdef PL_OP_SLAB_ALLOC
5a8e194f
NIS
431PERLVAR(IOpPtr,I32 **)
432PERLVARI(IOpSpace,I32,0)
433PERLVAR(IOpSlab,I32 *)
238a4c30
NIS
434#endif
435
82686b01
JH
436PERLVAR(Iutf8_idstart, SV *)
437PERLVAR(Iutf8_idcont, SV *)
438
147f47de
AB
439PERLVAR(Isort_RealCmp, SVCOMPARE_t)
440
7d49f689 441PERLVARI(Icheckav_save, AV*, NULL) /* save CHECK{}s when compiling */
3c10abe3 442PERLVARI(Iunitcheckav_save, AV*, NULL) /* save UNITCHECK{}s when compiling */
ece599bd 443
5311654c
JH
444PERLVARI(Iclocktick, long, 0) /* this many times() ticks in a second */
445
edab1aa3
JH
446PERLVARI(Iin_load_module, int, 0) /* to prevent recursions in PerlIO_find_layer */
447
a05d7ebb
JH
448PERLVAR(Iunicode, U32) /* Unicode features: $ENV{PERL_UNICODE} or -C */
449
4ffa73a3
JH
450PERLVAR(Isignals, U32) /* Using which pre-5.8 signals */
451
57c6e6d2
JH
452PERLVAR(Ireentrant_retint, int) /* Integer return value from reentrant functions */
453
9f7da6d5
NC
454PERLVAR(Istashcache, HV *) /* Cache to speed up S_method_common */
455
15a5279a
JH
456/* Hooks to shared SVs and locks. */
457PERLVARI(Isharehook, share_proc_t, MEMBER_TO_FPTR(Perl_sv_nosharing))
d5b2b27b 458PERLVARI(Ilockhook, share_proc_t, MEMBER_TO_FPTR(Perl_sv_nosharing))
d0647d4e
NC
459#ifdef NO_MATHOMS
460# define PERL_UNLOCK_HOOK Perl_sv_nosharing
461#else
462/* This reference ensures that the mathoms are linked with perl */
463# define PERL_UNLOCK_HOOK Perl_sv_nounlocking
464#endif
465PERLVARI(Iunlockhook, share_proc_t, MEMBER_TO_FPTR(PERL_UNLOCK_HOOK))
466
15a5279a
JH
467PERLVARI(Ithreadhook, thrhook_proc_t, MEMBER_TO_FPTR(Perl_nothreadhook))
468
bce260cd
JH
469/* Force inclusion of both runops options */
470PERLVARI(Irunops_std, runops_proc_t, MEMBER_TO_FPTR(Perl_runops_standard))
471PERLVARI(Irunops_dbg, runops_proc_t, MEMBER_TO_FPTR(Perl_runops_debug))
472
473/* Stores the PPID */
474#ifdef THREADS_HAVE_PIDS
475PERLVARI(Ippid, IV, 0)
476#endif
477
504f80c1
JH
478PERLVARI(Ihash_seed, UV, 0) /* Hash initializer */
479
8b5c2100
JH
480PERLVAR(IDBassertion, SV *)
481
008fb0c0 482PERLVARI(Irehash_seed, UV, 0) /* 582 hash initializer */
4b5190b5 483
41e4abd8
NC
484#ifdef DEBUG_LEAKING_SCALARS_FORK_DUMP
485/* File descriptor to talk to the child which dumps scalars. */
486PERLVARI(Idumper_fd, int, -1)
487#endif
f16dd614 488
a4021b77
NC
489PERLVAR(Imulti_end, I32) /* last line of multi-line string */
490
f16dd614 491#ifdef PERL_IMPLICIT_CONTEXT
4c901e72 492PERLVARI(Imy_cxt_size, int, 0) /* size of PL_my_cxt_list */
f16dd614 493PERLVARI(Imy_cxt_list, void **, NULL) /* per-module array of MY_CXT pointers */
53d44271
JH
494#ifdef PERL_GLOBAL_STRUCT_PRIVATE
495PERLVARI(Imy_cxt_keys, const char **, NULL) /* per-module array of pointers to MY_CXT_KEY constants */
496#endif
f16dd614
DM
497#endif
498
7cb608b5
NC
499#ifdef PERL_TRACK_MEMPOOL
500/* For use with the memory debugging code in util.c */
501PERLVAR(Imemory_debug_header, struct perl_memory_debug_header)
502#endif
503
f1fac472
NC
504#ifdef PERL_DEBUG_READONLY_OPS
505PERLVARI(Islabs, I32**, NULL) /* Array of slabs that have been allocated */
506PERLVARI(Islab_count, U32, 0) /* Size of the array */
507#endif
508
dd69841b
BB
509PERLVARI(Iisarev, HV*, NULL) /* Reverse map of @ISA dependencies */
510
53a7735b
DM
511/* If you are adding a U8 or U16, see the 'Space' comments above on where
512 * there are gaps which currently will be structure padding. */
d95e864f
NC
513
514/* Within a stable branch, new variables must be added to the very end, before
515 * this comment, for binary compatibility (the offsets of the old members must
516 * not change).
b83cd129 517 * (Don't forget to add your variable also to perl_clone()!)
e3acbfda 518 * XSUB.h provides wrapper functions via perlapi.h that make this
b83cd129
JH
519 * irrelevant, but not all code may be expected to #include XSUB.h.
520 */