ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Coro/state.h
Revision: 1.7
Committed: Sun Oct 7 03:58:37 2007 UTC (16 years, 8 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-4_22, rel-4_21, rel-4_3, rel-4_13, rel-4_11, rel-4_4, rel-4_45, rel-4_1, rel-4_2, rel-4_47, rel-4_46, rel-4_31, rel-4_32, rel-4_33, rel-4_34, rel-4_35, rel-4_36, rel-4_37
Changes since 1.6: +3 -2 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.6 VAR(defoutgv, GV *) /* default FH for output */
5 root 1.7 VAR(stack_sp, SV **) /* the main stack */
6 root 1.3 #ifdef OP_IN_REGISTER
7     VAR(opsave, OP *) /* probably not necessary */
8     #else
9 root 1.1 VAR(op, OP *) /* currently executing op */
10 root 1.3 #endif
11 root 1.1 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 root 1.2 when LEAVEing scopes we've ENTERed */
22 root 1.1 VAR(savestack_ix, I32)
23     VAR(savestack_max, I32)
24    
25     VAR(tmps_stack, SV **) /* mortals we've made */
26 root 1.2 VAR(tmps_ix, I32)
27     VAR(tmps_floor, I32)
28 root 1.1 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 root 1.3 VAR(tainted, bool) /* using variables controlled by $< */
41 root 1.1 VAR(curpm, PMOP *) /* what to do \ interps in REs from */
42 root 1.6 VAR(rs, SV *) /* input record separator $/ */
43 root 1.1 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 root 1.3
51 root 1.1 VAR(sortcop, OP *) /* user defined sort routine */
52     VAR(sortstash, HV *) /* which is in some package or other */
53 root 1.3 #if !PERL_VERSION_ATLEAST (5,9,0)
54 root 1.1 VAR(sortcxix, I32) /* from pp_ctl.c */
55 root 1.3 #endif
56 root 1.1
57     VAR(comppad, AV *) /* storage for lexically scoped temporaries */
58 root 1.2
59 root 1.5 /* compcv is intrpvar, but seems to be thread-specific to me */
60     /* but, well, I thoroughly misunderstand what thrdvar and intrpvar is. still. */
61     VAR(compcv, CV *) /* currently compiling subroutine */
62    
63 root 1.7 VAR(diehook, SV *)
64     VAR(warnhook, SV *)
65 root 1.6 VAR(runops, runops_proc_t) /* for tracing support */
66