ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/state.h
Revision: 1.6
Committed: Thu Oct 4 13:45:56 2007 UTC (16 years, 8 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-4_0, rel-4_01, rel-4_03, rel-4_02
Changes since 1.5: +4 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 /* list the interpreter variables that need to be saved/restored */
2 /* mostly copied from thrdvar.h */
3
4 VAR(defoutgv, GV *) /* default FH for output */
5 VAR(stack_sp, SV **) /* top of the stack */
6 #ifdef OP_IN_REGISTER
7 VAR(opsave, OP *) /* probably not necessary */
8 #else
9 VAR(op, OP *) /* currently executing op */
10 #endif
11 VAR(curpad, SV **) /* active pad (lexicals+tmps) */
12
13 VAR(stack_base, SV **)
14 VAR(stack_max, SV **)
15
16 VAR(scopestack, I32 *) /* scopes we've ENTERed */
17 VAR(scopestack_ix, I32)
18 VAR(scopestack_max,I32)
19
20 VAR(savestack, ANY *) /* items that need to be restored
21 when LEAVEing scopes we've ENTERed */
22 VAR(savestack_ix, I32)
23 VAR(savestack_max, I32)
24
25 VAR(tmps_stack, SV **) /* mortals we've made */
26 VAR(tmps_ix, I32)
27 VAR(tmps_floor, I32)
28 VAR(tmps_max, I32)
29
30 VAR(markstack, I32 *) /* stack_sp locations we're remembering */
31 VAR(markstack_ptr, I32 *)
32 VAR(markstack_max, I32 *)
33
34 #if !PERL_VERSION_ATLEAST (5,9,0)
35 VAR(retstack, OP **) /* OPs we have postponed executing */
36 VAR(retstack_ix, I32)
37 VAR(retstack_max, I32)
38 #endif
39
40 VAR(tainted, bool) /* using variables controlled by $< */
41 VAR(curpm, PMOP *) /* what to do \ interps in REs from */
42 VAR(rs, SV *) /* input record separator $/ */
43 VAR(curcop, COP *)
44
45 VAR(in_eval, int) /* trap "fatal" errors? */
46 VAR(localizing, int) /* are we processing a local() list? */
47
48 VAR(curstack, AV *) /* THE STACK */
49 VAR(curstackinfo, PERL_SI *) /* current stack + context */
50 VAR(mainstack, AV *) /* the stack when nothing funny is happening */
51
52 VAR(sortcop, OP *) /* user defined sort routine */
53 VAR(sortstash, HV *) /* which is in some package or other */
54 #if !PERL_VERSION_ATLEAST (5,9,0)
55 VAR(sortcxix, I32) /* from pp_ctl.c */
56 #endif
57
58 VAR(comppad, AV *) /* storage for lexically scoped temporaries */
59
60 /* compcv is intrpvar, but seems to be thread-specific to me */
61 /* but, well, I thoroughly misunderstand what thrdvar and intrpvar is. still. */
62 VAR(compcv, CV *) /* currently compiling subroutine */
63
64 VAR(runops, runops_proc_t) /* for tracing support */
65