ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/state.h
Revision: 1.11
Committed: Sun May 22 20:13:33 2011 UTC (13 years ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.10: +14 -13 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.2 /* list the interpreter variables that need to be saved/restored */
2 root 1.1 /* mostly copied from thrdvar.h */
3    
4 root 1.7 VAR(stack_sp, SV **) /* the main stack */
5 root 1.3 #ifdef OP_IN_REGISTER
6     VAR(opsave, OP *) /* probably not necessary */
7     #else
8 root 1.1 VAR(op, OP *) /* currently executing op */
9 root 1.3 #endif
10 root 1.1 VAR(curpad, SV **) /* active pad (lexicals+tmps) */
11    
12     VAR(stack_base, SV **)
13     VAR(stack_max, SV **)
14    
15     VAR(scopestack, I32 *) /* scopes we've ENTERed */
16     VAR(scopestack_ix, I32)
17     VAR(scopestack_max,I32)
18    
19     VAR(savestack, ANY *) /* items that need to be restored
20 root 1.2 when LEAVEing scopes we've ENTERed */
21 root 1.1 VAR(savestack_ix, I32)
22     VAR(savestack_max, I32)
23    
24     VAR(tmps_stack, SV **) /* mortals we've made */
25 root 1.2 VAR(tmps_ix, I32)
26     VAR(tmps_floor, I32)
27 root 1.1 VAR(tmps_max, I32)
28    
29     VAR(markstack, I32 *) /* stack_sp locations we're remembering */
30     VAR(markstack_ptr, I32 *)
31     VAR(markstack_max, I32 *)
32    
33     #if !PERL_VERSION_ATLEAST (5,9,0)
34     VAR(retstack, OP **) /* OPs we have postponed executing */
35     VAR(retstack_ix, I32)
36     VAR(retstack_max, I32)
37     #endif
38    
39     VAR(curpm, PMOP *) /* what to do \ interps in REs from */
40 root 1.6 VAR(rs, SV *) /* input record separator $/ */
41 root 1.11 VAR(defoutgv, GV *) /* default FH for output */
42 root 1.1 VAR(curcop, COP *)
43    
44     VAR(curstack, AV *) /* THE STACK */
45     VAR(curstackinfo, PERL_SI *) /* current stack + context */
46 root 1.3
47 root 1.1 VAR(sortcop, OP *) /* user defined sort routine */
48     VAR(sortstash, HV *) /* which is in some package or other */
49 root 1.3 #if !PERL_VERSION_ATLEAST (5,9,0)
50 root 1.1 VAR(sortcxix, I32) /* from pp_ctl.c */
51 root 1.3 #endif
52 root 1.1
53 root 1.11 VAR(localizing, U8) /* are we processing a local() list? */
54     VAR(in_eval, U8) /* trap "fatal" errors? */
55     VAR(tainted, bool) /* using variables controlled by $< */
56    
57     VAR(diehook, SV *)
58     VAR(warnhook, SV *)
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 root 1.1 VAR(comppad, AV *) /* storage for lexically scoped temporaries */
65 root 1.10 VAR(comppad_name, AV *) /* variable names for "my" variables */
66     VAR(comppad_name_fill, I32) /* last "introduced" variable offset */
67     VAR(comppad_name_floor, I32) /* start of vars in innermost block */
68 root 1.2
69 root 1.11 VAR(runops, runops_proc_t) /* for tracing support */
70 root 1.5
71 root 1.11 VAR(hints, U32) /* pragma-tic compile-time flags */
72 root 1.6
73 root 1.9 #if PERL_VERSION_ATLEAST (5,10,0)
74 root 1.8 VAR(parser, yy_parser *)
75     #endif
76