ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/state.h
Revision: 1.14
Committed: Wed Jun 29 16:08:31 2011 UTC (12 years, 11 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-6_0, rel-6_07, rel-6_06, rel-6_05, rel-6_04, rel-6_03, rel-6_02, rel-6_01
Changes since 1.13: +3 -0 lines
Log Message:
*** empty log message ***

File Contents

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