1 |
/* used in state.h */ |
2 |
#ifndef VAR |
3 |
#define VAR(name,type) VARx(name, PL_ ## name, type) |
4 |
#endif |
5 |
|
6 |
/* list the interpreter variables that need to be saved/restored */ |
7 |
|
8 |
VARx(defsv, GvSV (PL_defgv), SV *) |
9 |
VARx(defav, GvAV (PL_defgv), AV *) |
10 |
VARx(errsv, GvSV (PL_errgv), SV *) |
11 |
VARx(irsgv, GvSV (irsgv), SV *) |
12 |
VARx(hinthv, GvHV (PL_hintgv), HV *) |
13 |
|
14 |
/* mostly copied from thrdvar.h */ |
15 |
|
16 |
VAR(stack_sp, SV **) /* the main stack */ |
17 |
#ifdef OP_IN_REGISTER |
18 |
VAR(opsave, OP *) /* probably not necessary */ |
19 |
#else |
20 |
VAR(op, OP *) /* currently executing op */ |
21 |
#endif |
22 |
VAR(curpad, SV **) /* active pad (lexicals+tmps) */ |
23 |
|
24 |
VAR(stack_base, SV **) |
25 |
VAR(stack_max, SV **) |
26 |
|
27 |
VAR(scopestack, I32 *) /* scopes we've ENTERed */ |
28 |
VAR(scopestack_ix, I32) |
29 |
VAR(scopestack_max,I32) |
30 |
#if HAS_SCOPESTACK_NAME |
31 |
VAR(scopestack_name,const char **) |
32 |
#endif |
33 |
|
34 |
VAR(savestack, ANY *) /* items that need to be restored |
35 |
when LEAVEing scopes we've ENTERed */ |
36 |
VAR(savestack_ix, I32) |
37 |
VAR(savestack_max, I32) |
38 |
|
39 |
VAR(tmps_stack, SV **) /* mortals we've made */ |
40 |
VAR(tmps_ix, SSize_t) |
41 |
VAR(tmps_floor, SSize_t) |
42 |
VAR(tmps_max, SSize_t) |
43 |
|
44 |
VAR(markstack, I32 *) /* stack_sp locations we're remembering */ |
45 |
VAR(markstack_ptr, I32 *) |
46 |
VAR(markstack_max, I32 *) |
47 |
|
48 |
#if !PERL_VERSION_ATLEAST (5,9,0) |
49 |
VAR(retstack, OP **) /* OPs we have postponed executing */ |
50 |
VAR(retstack_ix, I32) |
51 |
VAR(retstack_max, I32) |
52 |
#endif |
53 |
|
54 |
VAR(curpm, PMOP *) /* what to do \ interps in REs from */ |
55 |
VAR(rs, SV *) /* input record separator $/ */ |
56 |
VAR(defoutgv, GV *) /* default FH for output */ |
57 |
VAR(curcop, COP *) |
58 |
|
59 |
VAR(curstack, AV *) /* THE STACK */ |
60 |
VAR(curstackinfo, PERL_SI *) /* current stack + context */ |
61 |
|
62 |
VAR(sortcop, OP *) /* user defined sort routine */ |
63 |
VAR(sortstash, HV *) /* which is in some package or other */ |
64 |
#if !PERL_VERSION_ATLEAST (5,9,0) |
65 |
VAR(sortcxix, I32) /* from pp_ctl.c */ |
66 |
#endif |
67 |
|
68 |
#if PERL_VERSION_ATLEAST (5,9,0) |
69 |
VAR(localizing, U8) /* are we processing a local() list? */ |
70 |
VAR(in_eval, U8) /* trap "fatal" errors? */ |
71 |
#else |
72 |
VAR(localizing, U32) /* are we processing a local() list? */ |
73 |
VAR(in_eval, U32) /* trap "fatal" errors? */ |
74 |
#endif |
75 |
VAR(tainted, bool) /* using variables controlled by $< */ |
76 |
|
77 |
VAR(diehook, SV *) |
78 |
VAR(warnhook, SV *) |
79 |
|
80 |
/* compcv is intrpvar, but seems to be thread-specific to me */ |
81 |
/* but, well, I thoroughly misunderstand what thrdvar and intrpvar is. still. */ |
82 |
VAR(compcv, CV *) /* currently compiling subroutine */ |
83 |
|
84 |
VAR(comppad, AV *) /* storage for lexically scoped temporaries */ |
85 |
VAR(comppad_name, PADNAMELIST *) /* variable names for "my" variables */ |
86 |
VAR(comppad_name_fill, PADOFFSET) /* last "introduced" variable offset */ |
87 |
VAR(comppad_name_floor, PADOFFSET) /* start of vars in innermost block */ |
88 |
|
89 |
VAR(runops, runops_proc_t) /* for tracing support */ |
90 |
|
91 |
VAR(hints, U32) /* pragma-tic compile-time flags */ |
92 |
|
93 |
#if PERL_VERSION_ATLEAST (5,10,0) |
94 |
VAR(parser, yy_parser *) |
95 |
#endif |
96 |
|
97 |
#undef VAR |
98 |
#undef VARx |
99 |
|