Commit | Line | Data |
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 | |
7 | /* The 'I' prefix is only needed for vars that need appropriate #defines |
8 | * generated when built with or without MULTIPLICITY. It is also used |
9 | * to generate the appropriate export list for win32. |
10 | * |
11 | * When building without MULTIPLICITY, these variables will be truly global. |
12 | * |
13 | * Avoid build-specific #ifdefs here, like DEBUGGING. That way, |
14 | * we can keep binary compatibility of the curinterp structure */ |
15 | |
49f531da |
16 | /* pseudo environmental stuff */ |
cb68f92d |
17 | PERLVAR(Iorigargc, int) |
18 | PERLVAR(Iorigargv, char **) |
19 | PERLVAR(Ienvgv, GV *) |
20 | PERLVAR(Isiggv, GV *) |
21 | PERLVAR(Iincgv, GV *) |
b3ac6de7 |
22 | PERLVAR(Ihintgv, GV *) |
cb68f92d |
23 | PERLVAR(Iorigfilename, char *) |
24 | PERLVAR(Idiehook, SV *) |
25 | PERLVAR(Iwarnhook, SV *) |
26 | PERLVAR(Iparsehook, SV *) |
d4cce5f1 |
27 | PERLVAR(Icddir, char *) /* switches */ |
cb68f92d |
28 | PERLVAR(Iminus_c, bool) |
51371543 |
29 | PERLVARA(Ipatchlevel,10,char) |
cb68f92d |
30 | PERLVAR(Ilocalpatches, char **) |
31 | PERLVARI(Isplitstr, char *, " ") |
32 | PERLVAR(Ipreprocess, bool) |
33 | PERLVAR(Iminus_n, bool) |
34 | PERLVAR(Iminus_p, bool) |
35 | PERLVAR(Iminus_l, bool) |
36 | PERLVAR(Iminus_a, bool) |
37 | PERLVAR(Iminus_F, bool) |
38 | PERLVAR(Idoswitches, bool) |
39 | PERLVAR(Idowarn, bool) |
40 | PERLVAR(Idoextract, bool) |
49f531da |
41 | PERLVAR(Isawampersand, bool) /* must save all match strings */ |
42 | PERLVAR(Isawstudy, bool) /* do fbm_instr on all strings */ |
cb68f92d |
43 | PERLVAR(Isawvec, bool) |
44 | PERLVAR(Iunsafe, bool) |
45 | PERLVAR(Iinplace, char *) |
46 | PERLVAR(Ie_script, SV *) |
47 | PERLVAR(Iperldb, U32) |
d4cce5f1 |
48 | |
49 | /* This value may be raised by extensions for testing purposes */ |
50 | /* 0=none, 1=full, 2=full with checks */ |
cb68f92d |
51 | PERLVARI(Iperl_destruct_level, int, 0) |
49f531da |
52 | |
53 | /* magical thingies */ |
54 | PERLVAR(Ibasetime, Time_t) /* $^T */ |
55 | PERLVAR(Iformfeed, SV *) /* $^L */ |
d4cce5f1 |
56 | |
57 | |
cb68f92d |
58 | PERLVARI(Imaxsysfd, I32, MAXSYSFD) |
59 | /* top fd to pass to subprocesses */ |
49f531da |
60 | PERLVAR(Imultiline, int) /* $*--do strings hold >1 line? */ |
61 | PERLVAR(Istatusvalue, I32) /* $? */ |
62 | #ifdef VMS |
cb68f92d |
63 | PERLVAR(Istatusvalue_vms,U32) |
49f531da |
64 | #endif |
65 | |
49f531da |
66 | /* shortcuts to various I/O objects */ |
cb68f92d |
67 | PERLVAR(Istdingv, GV *) |
68 | PERLVAR(Idefgv, GV *) |
69 | PERLVAR(Iargvgv, GV *) |
70 | PERLVAR(Iargvoutgv, GV *) |
49f531da |
71 | |
72 | /* shortcuts to regexp stuff */ |
5c0ca799 |
73 | /* XXX these three aren't used anywhere */ |
cb68f92d |
74 | PERLVAR(Ileftgv, GV *) |
75 | PERLVAR(Iampergv, GV *) |
76 | PERLVAR(Irightgv, GV *) |
5c0ca799 |
77 | |
78 | /* this one needs to be moved to thrdvar.h and accessed via |
79 | * find_threadsv() when USE_THREADS */ |
cb68f92d |
80 | PERLVAR(Ireplgv, GV *) |
49f531da |
81 | |
82 | /* shortcuts to misc objects */ |
cb68f92d |
83 | PERLVAR(Ierrgv, GV *) |
49f531da |
84 | |
85 | /* shortcuts to debugging objects */ |
cb68f92d |
86 | PERLVAR(IDBgv, GV *) |
87 | PERLVAR(IDBline, GV *) |
88 | PERLVAR(IDBsub, GV *) |
89 | PERLVAR(IDBsingle, SV *) |
90 | PERLVAR(IDBtrace, SV *) |
91 | PERLVAR(IDBsignal, SV *) |
49f531da |
92 | PERLVAR(Ilineary, AV *) /* lines of script for debugger */ |
93 | PERLVAR(Idbargs, AV *) /* args to call listed by caller function */ |
94 | |
95 | /* symbol tables */ |
49f531da |
96 | PERLVAR(Idebstash, HV *) /* symbol table for perldb package */ |
97 | PERLVAR(Iglobalstash, HV *) /* global keyword overrides imported here */ |
98 | PERLVAR(Icurstname, SV *) /* name of current package */ |
99 | PERLVAR(Ibeginav, AV *) /* names of BEGIN subroutines */ |
d4cce5f1 |
100 | PERLVAR(Iendav, AV *) /* names of END subroutines */ |
49f531da |
101 | PERLVAR(Iinitav, AV *) /* names of INIT subroutines */ |
102 | PERLVAR(Istrtab, HV *) /* shared string table */ |
005a453c |
103 | PERLVARI(Isub_generation,U32,1) /* incr to invalidate method cache */ |
49f531da |
104 | |
105 | /* memory management */ |
49f531da |
106 | PERLVAR(Isv_count, I32) /* how many SV* are currently allocated */ |
107 | PERLVAR(Isv_objcount, I32) /* how many objects are currently allocated */ |
108 | PERLVAR(Isv_root, SV*) /* storage for SVs belonging to interp */ |
109 | PERLVAR(Isv_arenaroot, SV*) /* list of areas for garbage collection */ |
110 | |
111 | /* funky return mechanisms */ |
cb68f92d |
112 | PERLVAR(Ilastspbase, I32) |
113 | PERLVAR(Ilastsize, I32) |
49f531da |
114 | PERLVAR(Iforkprocess, int) /* so do_open |- can return proc# */ |
115 | |
116 | /* subprocess state */ |
d4cce5f1 |
117 | PERLVAR(Ifdpid, AV *) /* keep fd-to-pid mappings for my_popen */ |
49f531da |
118 | |
119 | /* internal state */ |
49f531da |
120 | PERLVAR(Itainting, bool) /* doing taint checks */ |
121 | PERLVARI(Iop_mask, char *, NULL) /* masked operations for safe evals */ |
122 | |
123 | /* trace state */ |
cb68f92d |
124 | PERLVAR(Idlevel, I32) |
125 | PERLVARI(Idlmax, I32, 128) |
126 | PERLVAR(Idebname, char *) |
127 | PERLVAR(Idebdelim, char *) |
49f531da |
128 | |
129 | /* current interpreter roots */ |
cb68f92d |
130 | PERLVAR(Imain_cv, CV *) |
131 | PERLVAR(Imain_root, OP *) |
132 | PERLVAR(Imain_start, OP *) |
133 | PERLVAR(Ieval_root, OP *) |
134 | PERLVAR(Ieval_start, OP *) |
49f531da |
135 | |
136 | /* runtime control stuff */ |
cb68f92d |
137 | PERLVARI(Icurcopdb, COP *, NULL) |
138 | PERLVARI(Icopline, line_t, NOLINE) |
49f531da |
139 | |
140 | /* statics moved here for shared library purposes */ |
141 | PERLVAR(Istrchop, SV) /* return value from chop */ |
142 | PERLVAR(Ifilemode, int) /* so nextargv() can preserve mode */ |
143 | PERLVAR(Ilastfd, int) /* what to preserve mode on */ |
144 | PERLVAR(Ioldname, char *) /* what to preserve mode on */ |
d4cce5f1 |
145 | PERLVAR(IArgv, char **) /* stuff to free from do_aexec, vfork safe */ |
146 | PERLVAR(ICmd, char *) /* stuff to free from do_aexec, vfork safe */ |
49f531da |
147 | PERLVAR(Imystrk, SV *) /* temp key string for do_each() */ |
cb68f92d |
148 | PERLVAR(Ioldlastpm, PMOP *) /* for saving regexp context in debugger */ |
49f531da |
149 | PERLVAR(Igensym, I32) /* next symbol for getsym() to define */ |
cb68f92d |
150 | PERLVAR(Ipreambled, bool) |
151 | PERLVAR(Ipreambleav, AV *) |
152 | PERLVARI(Ilaststatval, int, -1) |
153 | PERLVARI(Ilaststype, I32, OP_STAT) |
154 | PERLVAR(Imess_sv, SV *) |
49f531da |
155 | |
cb68f92d |
156 | /* XXX shouldn't these be per-thread? --GSAR */ |
157 | PERLVAR(Iors, char *) /* output record separator $\ */ |
158 | PERLVAR(Iorslen, STRLEN) |
159 | PERLVAR(Iofmt, char *) /* output format for numbers $# */ |
d4cce5f1 |
160 | |
4b556e6c |
161 | /* interpreter atexit processing */ |
cb68f92d |
162 | PERLVARI(Iexitlist, PerlExitListEntry *, NULL) |
163 | /* list of exit functions */ |
164 | PERLVARI(Iexitlistlen, I32, 0) /* length of same */ |
165 | PERLVAR(Imodglobal, HV *) /* per-interp module data */ |
166 | |
167 | /* these used to be in global before 5.004_68 */ |
168 | PERLVARI(Iprofiledata, U32 *, NULL) /* table of ops, counts */ |
169 | PERLVARI(Irsfp, PerlIO * VOL, Nullfp) /* current source file pointer */ |
170 | PERLVARI(Irsfp_filters, AV *, Nullav) /* keeps active source filters */ |
171 | |
172 | PERLVAR(Icompiling, COP) /* compiling/done executing marker */ |
173 | |
174 | PERLVAR(Icompcv, CV *) /* currently compiling subroutine */ |
175 | PERLVAR(Icomppad, AV *) /* storage for lexically scoped temporaries */ |
176 | PERLVAR(Icomppad_name, AV *) /* variable names for "my" variables */ |
177 | PERLVAR(Icomppad_name_fill, I32) /* last "introduced" variable offset */ |
178 | PERLVAR(Icomppad_name_floor, I32) /* start of vars in innermost block */ |
4b556e6c |
179 | |
180 | #ifdef HAVE_INTERP_INTERN |
cb68f92d |
181 | PERLVAR(Isys_intern, struct interp_intern) |
182 | /* platform internals */ |
4b556e6c |
183 | #endif |
184 | |
7fae4e64 |
185 | /* more statics moved here */ |
7fae4e64 |
186 | PERLVARI(Igeneration, int, 100) /* from op.c */ |
187 | PERLVAR(IDBcv, CV *) /* from perl.c */ |
188 | PERLVAR(Iarchpat_auto, char*) /* from perl.c */ |
56953603 |
189 | |
cb68f92d |
190 | PERLVARI(Iin_clean_objs,bool, FALSE) /* from sv.c */ |
191 | PERLVARI(Iin_clean_all, bool, FALSE) /* from sv.c */ |
7fae4e64 |
192 | |
193 | PERLVAR(Ilinestart, char *) /* beg. of most recently read line */ |
194 | PERLVAR(Ipending_ident, char) /* pending identifier lookup */ |
195 | PERLVAR(Isublex_info, SUBLEXINFO) /* from toke.c */ |
196 | |
49f531da |
197 | #ifdef USE_THREADS |
cb68f92d |
198 | PERLVAR(Ithrsv, SV *) /* struct perl_thread for main thread */ |
940cb80d |
199 | PERLVARI(Ithreadnum, U32, 0) /* incremented each thread creation */ |
5f08fbcd |
200 | PERLVAR(Istrtab_mutex, perl_mutex) /* Mutex for string table access */ |
49f531da |
201 | #endif /* USE_THREADS */ |
76e3520e |
202 | |
d8eceb89 |
203 | PERLVAR(Iuid, Uid_t) /* current real user id */ |
204 | PERLVAR(Ieuid, Uid_t) /* current effective user id */ |
205 | PERLVAR(Igid, Gid_t) /* current real group id */ |
206 | PERLVAR(Iegid, Gid_t) /* current effective group id */ |
0672f40e |
207 | PERLVAR(Inomemok, bool) /* let malloc context handle nomem */ |
208 | PERLVAR(Ian, U32) /* malloc sequence number */ |
209 | PERLVAR(Icop_seqmax, U32) /* statement sequence number */ |
210 | PERLVAR(Iop_seqmax, U16) /* op sequence number */ |
211 | PERLVAR(Ievalseq, U32) /* eval sequence number */ |
212 | PERLVAR(Iorigenviron, char **) |
213 | PERLVAR(Iorigalen, U32) |
214 | PERLVAR(Ipidstatus, HV *) /* pid-to-status mappings for waitpid */ |
215 | PERLVARI(Imaxo, int, MAXO) /* maximum number of ops */ |
216 | PERLVAR(Iosname, char *) /* operating system */ |
217 | PERLVARI(Ish_path, char *, SH_PATH)/* full path of shell */ |
218 | PERLVAR(Isighandlerp, Sighandler_t) |
219 | |
220 | PERLVAR(Ixiv_arenaroot, XPV*) /* list of allocated xiv areas */ |
221 | PERLVAR(Ixiv_root, IV *) /* free xiv list--shared by interpreters */ |
cad2e5aa |
222 | PERLVAR(Ixnv_root, NV *) /* free xnv list--shared by interpreters */ |
0672f40e |
223 | PERLVAR(Ixrv_root, XRV *) /* free xrv list--shared by interpreters */ |
224 | PERLVAR(Ixpv_root, XPV *) /* free xpv list--shared by interpreters */ |
932e9ff9 |
225 | PERLVAR(Ixpviv_root, XPVIV *) /* free xpviv list--shared by interpreters */ |
226 | PERLVAR(Ixpvnv_root, XPVNV *) /* free xpvnv list--shared by interpreters */ |
227 | PERLVAR(Ixpvcv_root, XPVCV *) /* free xpvcv list--shared by interpreters */ |
228 | PERLVAR(Ixpvav_root, XPVAV *) /* free xpvav list--shared by interpreters */ |
229 | PERLVAR(Ixpvhv_root, XPVHV *) /* free xpvhv list--shared by interpreters */ |
230 | PERLVAR(Ixpvmg_root, XPVMG *) /* free xpvmg list--shared by interpreters */ |
231 | PERLVAR(Ixpvlv_root, XPVLV *) /* free xpvlv list--shared by interpreters */ |
232 | PERLVAR(Ixpvbm_root, XPVBM *) /* free xpvbm list--shared by interpreters */ |
0672f40e |
233 | PERLVAR(Ihe_root, HE *) /* free he list--shared by interpreters */ |
234 | PERLVAR(Inice_chunk, char *) /* a nice chunk of memory to reuse */ |
235 | PERLVAR(Inice_chunk_size, U32) /* how nice the chunk of memory is */ |
236 | |
0b94c7bb |
237 | PERLVARI(Irunops, runops_proc_t, MEMBER_TO_FPTR(RUNOPS_DEFAULT)) |
0672f40e |
238 | |
51371543 |
239 | PERLVARA(Itokenbuf,256, char) |
0672f40e |
240 | |
241 | PERLVAR(Isv_undef, SV) |
242 | PERLVAR(Isv_no, SV) |
243 | PERLVAR(Isv_yes, SV) |
244 | |
245 | #ifdef CSH |
246 | PERLVARI(Icshname, char *, CSH) |
247 | PERLVAR(Icshlen, I32) |
248 | #endif |
249 | |
250 | PERLVAR(Ilex_state, U32) /* next token is determined */ |
251 | PERLVAR(Ilex_defer, U32) /* state after determined token */ |
252 | PERLVAR(Ilex_expect, expectation) /* expect after determined token */ |
253 | PERLVAR(Ilex_brackets, I32) /* bracket count */ |
254 | PERLVAR(Ilex_formbrack, I32) /* bracket count at outer format level */ |
255 | PERLVAR(Ilex_fakebrack, I32) /* outer bracket is mere delimiter */ |
256 | PERLVAR(Ilex_casemods, I32) /* casemod count */ |
257 | PERLVAR(Ilex_dojoin, I32) /* doing an array interpolation */ |
258 | PERLVAR(Ilex_starts, I32) /* how many interps done on level */ |
259 | PERLVAR(Ilex_stuff, SV *) /* runtime pattern from m// or s/// */ |
260 | PERLVAR(Ilex_repl, SV *) /* runtime replacement from s/// */ |
261 | PERLVAR(Ilex_op, OP *) /* extra info to pass back on op */ |
262 | PERLVAR(Ilex_inpat, OP *) /* in pattern $) and $| are special */ |
263 | PERLVAR(Ilex_inwhat, I32) /* what kind of quoting are we in */ |
264 | PERLVAR(Ilex_brackstack,char *) /* what kind of brackets to pop */ |
265 | PERLVAR(Ilex_casestack, char *) /* what kind of case mods in effect */ |
266 | |
267 | /* What we know when we're in LEX_KNOWNEXT state. */ |
51371543 |
268 | PERLVARA(Inextval,5, YYSTYPE) /* value of next token, if any */ |
269 | PERLVARA(Inexttype,5, I32) /* type of next token */ |
0672f40e |
270 | PERLVAR(Inexttoke, I32) |
271 | |
272 | PERLVAR(Ilinestr, SV *) |
273 | PERLVAR(Ibufptr, char *) |
274 | PERLVAR(Ioldbufptr, char *) |
275 | PERLVAR(Ioldoldbufptr, char *) |
276 | PERLVAR(Ibufend, char *) |
277 | PERLVARI(Iexpect,expectation, XSTATE) /* how to interpret ambiguous tokens */ |
278 | |
279 | PERLVAR(Imulti_start, I32) /* 1st line of multi-line string */ |
280 | PERLVAR(Imulti_end, I32) /* last line of multi-line string */ |
281 | PERLVAR(Imulti_open, I32) /* delimiter of said string */ |
282 | PERLVAR(Imulti_close, I32) /* delimiter of said string */ |
283 | |
284 | PERLVAR(Ierror_count, I32) /* how many errors so far, max 10 */ |
285 | PERLVAR(Isubline, I32) /* line this subroutine began on */ |
286 | PERLVAR(Isubname, SV *) /* name of current subroutine */ |
287 | |
288 | PERLVAR(Imin_intro_pending, I32) /* start of vars to introduce */ |
289 | PERLVAR(Imax_intro_pending, I32) /* end of vars to introduce */ |
290 | PERLVAR(Ipadix, I32) /* max used index in current "register" pad */ |
291 | PERLVAR(Ipadix_floor, I32) /* how low may inner block reset padix */ |
292 | PERLVAR(Ipad_reset_pending, I32) /* reset pad on next attempted alloc */ |
293 | |
294 | PERLVAR(Ithisexpr, I32) /* name id for nothing_in_common() */ |
295 | PERLVAR(Ilast_uni, char *) /* position of last named-unary op */ |
296 | PERLVAR(Ilast_lop, char *) /* position of last list operator */ |
297 | PERLVAR(Ilast_lop_op, OPCODE) /* last list operator */ |
298 | PERLVAR(Iin_my, bool) /* we're compiling a "my" declaration */ |
299 | PERLVAR(Iin_my_stash, HV *) /* declared class of this "my" declaration */ |
300 | #ifdef FCRYPT |
301 | PERLVAR(Icryptseen, I32) /* has fast crypt() been initialized? */ |
302 | #endif |
303 | |
304 | PERLVAR(Ihints, U32) /* pragma-tic compile-time flags */ |
305 | |
306 | PERLVAR(Idebug, VOL U32) /* flags given to -D switch */ |
307 | |
308 | PERLVAR(Iamagic_generation, long) |
309 | |
310 | #ifdef USE_LOCALE_COLLATE |
311 | PERLVAR(Icollation_ix, U32) /* Collation generation index */ |
312 | PERLVAR(Icollation_name,char *) /* Name of current collation */ |
313 | PERLVARI(Icollation_standard, bool, TRUE) |
314 | /* Assume simple collation */ |
315 | PERLVAR(Icollxfrm_base, Size_t) /* Basic overhead in *xfrm() */ |
316 | PERLVARI(Icollxfrm_mult,Size_t, 2) /* Expansion factor in *xfrm() */ |
317 | #endif /* USE_LOCALE_COLLATE */ |
318 | |
319 | #ifdef USE_LOCALE_NUMERIC |
320 | |
321 | PERLVAR(Inumeric_name, char *) /* Name of current numeric locale */ |
322 | PERLVARI(Inumeric_standard, bool, TRUE) |
323 | /* Assume simple numerics */ |
324 | PERLVARI(Inumeric_local, bool, TRUE) |
325 | /* Assume local numerics */ |
097ee67d |
326 | PERLVAR(Inumeric_radix, char) |
327 | /* The radix character if not '.' */ |
0672f40e |
328 | |
329 | #endif /* !USE_LOCALE_NUMERIC */ |
330 | |
331 | /* utf8 character classes */ |
332 | PERLVAR(Iutf8_alnum, SV *) |
b8c5462f |
333 | PERLVAR(Iutf8_alnumc, SV *) |
334 | PERLVAR(Iutf8_ascii, SV *) |
0672f40e |
335 | PERLVAR(Iutf8_alpha, SV *) |
336 | PERLVAR(Iutf8_space, SV *) |
b8c5462f |
337 | PERLVAR(Iutf8_cntrl, SV *) |
338 | PERLVAR(Iutf8_graph, SV *) |
0672f40e |
339 | PERLVAR(Iutf8_digit, SV *) |
340 | PERLVAR(Iutf8_upper, SV *) |
341 | PERLVAR(Iutf8_lower, SV *) |
342 | PERLVAR(Iutf8_print, SV *) |
b8c5462f |
343 | PERLVAR(Iutf8_punct, SV *) |
344 | PERLVAR(Iutf8_xdigit, SV *) |
0672f40e |
345 | PERLVAR(Iutf8_mark, SV *) |
346 | PERLVAR(Iutf8_toupper, SV *) |
347 | PERLVAR(Iutf8_totitle, SV *) |
348 | PERLVAR(Iutf8_tolower, SV *) |
349 | PERLVAR(Ilast_swash_hv, HV *) |
350 | PERLVAR(Ilast_swash_klen, U32) |
51371543 |
351 | PERLVARA(Ilast_swash_key,10, U8) |
0672f40e |
352 | PERLVAR(Ilast_swash_tmps, U8 *) |
353 | PERLVAR(Ilast_swash_slen, STRLEN) |
354 | |
355 | /* perly.c globals */ |
356 | PERLVAR(Iyydebug, int) |
357 | PERLVAR(Iyynerrs, int) |
358 | PERLVAR(Iyyerrflag, int) |
359 | PERLVAR(Iyychar, int) |
360 | PERLVAR(Iyyval, YYSTYPE) |
361 | PERLVAR(Iyylval, YYSTYPE) |
362 | |
363 | PERLVAR(Iglob_index, int) |
0672f40e |
364 | PERLVAR(Isrand_called, bool) |
51371543 |
365 | PERLVARA(Iuudmap,256, char) |
0672f40e |
366 | PERLVAR(Ibitcount, char *) |
367 | PERLVAR(Ifilter_debug, int) |
368 | |
43165c05 |
369 | #ifdef USE_THREADS |
370 | PERLVAR(Ithr_key, perl_key) /* For per-thread struct perl_thread* */ |
371 | PERLVAR(Isv_mutex, perl_mutex) /* Mutex for allocating SVs in sv.c */ |
372 | PERLVAR(Imalloc_mutex, perl_mutex) /* Mutex for malloc */ |
373 | PERLVAR(Ieval_mutex, perl_mutex) /* Mutex for doeval */ |
374 | PERLVAR(Ieval_cond, perl_cond) /* Condition variable for doeval */ |
375 | PERLVAR(Ieval_owner, struct perl_thread *) |
376 | /* Owner thread for doeval */ |
377 | PERLVAR(Inthreads, int) /* Number of threads currently */ |
378 | PERLVAR(Ithreads_mutex, perl_mutex) /* Mutex for nthreads and thread list */ |
379 | PERLVAR(Inthreads_cond, perl_cond) /* Condition variable for nthreads */ |
380 | PERLVAR(Isvref_mutex, perl_mutex) /* Mutex for SvREFCNT_{inc,dec} */ |
381 | PERLVARI(Ithreadsv_names,char *, THREADSV_NAMES) |
382 | #ifdef FAKE_THREADS |
383 | PERLVAR(Icurthr, struct perl_thread *) |
384 | /* Currently executing (fake) thread */ |
385 | #endif |
386 | |
387 | PERLVAR(Icred_mutex, perl_mutex) /* altered credentials in effect */ |
388 | |
389 | #endif /* USE_THREADS */ |
390 | |
c5be433b |
391 | #if defined(PERL_IMPLICIT_SYS) |
392 | PERLVARI(IMem, struct IPerlMem*, NULL) |
393 | PERLVARI(IEnv, struct IPerlEnv*, NULL) |
394 | PERLVARI(IStdIO, struct IPerlStdIO*, NULL) |
395 | PERLVARI(ILIO, struct IPerlLIO*, NULL) |
396 | PERLVARI(IDir, struct IPerlDir*, NULL) |
397 | PERLVARI(ISock, struct IPerlSock*, NULL) |
398 | PERLVARI(IProc, struct IPerlProc*, NULL) |
76e3520e |
399 | #endif |