ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/state.h
Revision: 1.10
Committed: Mon Nov 24 06:07:16 2008 UTC (15 years, 6 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-5_151, rel-5_1, rel-6_13, rel-5_161, rel-5_371, rel-5_372, rel-5_22, rel-5_23, rel-5_24, rel-5_25, rel-5_162, rel-5_2, rel-5_37, rel-5_36, rel-5_11, rel-5_12, rel-5_15, rel-5_14, rel-5_17, rel-5_16, rel-5_132, rel-5_131
Changes since 1.9: +5 -0 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 **) /* the main 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
51 VAR(sortcop, OP *) /* user defined sort routine */
52 VAR(sortstash, HV *) /* which is in some package or other */
53 #if !PERL_VERSION_ATLEAST (5,9,0)
54 VAR(sortcxix, I32) /* from pp_ctl.c */
55 #endif
56
57 VAR(comppad, AV *) /* storage for lexically scoped temporaries */
58 VAR(comppad_name, AV *) /* variable names for "my" variables */
59 VAR(comppad_name_fill, I32) /* last "introduced" variable offset */
60 VAR(comppad_name_floor, I32) /* start of vars in innermost block */
61
62 /* compcv is intrpvar, but seems to be thread-specific to me */
63 /* but, well, I thoroughly misunderstand what thrdvar and intrpvar is. still. */
64 VAR(compcv, CV *) /* currently compiling subroutine */
65
66 VAR(diehook, SV *)
67 VAR(warnhook, SV *)
68 VAR(runops, runops_proc_t) /* for tracing support */
69
70 #if PERL_VERSION_ATLEAST (5,10,0)
71 VAR(parser, yy_parser *)
72 #endif
73
74 VAR(hints, U32) /* pragma-tic compile-time flags */
75