env.h
DEFINITIONS
This source file includes following functions.
1
2
3
4
5
6
7
8
9
10
11
12
13 #ifndef ENV_H
14 #define ENV_H
15
16 extern struct FRAME {
17 VALUE self;
18 int argc;
19 VALUE *argv;
20 ID last_func;
21 ID orig_func;
22 VALUE last_class;
23 VALUE cbase;
24 struct FRAME *prev;
25 struct FRAME *tmp;
26 struct RNode *node;
27 int iter;
28 int flags;
29 } *ruby_frame;
30
31 void rb_gc_mark_frame _((struct FRAME *));
32
33 #define FRAME_ALLOCA 0
34 #define FRAME_MALLOC 1
35
36 extern struct SCOPE {
37 struct RBasic super;
38 ID *local_tbl;
39 VALUE *local_vars;
40 int flags;
41 } *ruby_scope;
42
43 #define SCOPE_ALLOCA 0
44 #define SCOPE_MALLOC 1
45 #define SCOPE_NOSTACK 2
46 #define SCOPE_DONT_RECYCLE 4
47
48 extern int ruby_in_eval;
49
50 extern VALUE ruby_class;
51
52 struct RVarmap {
53 struct RBasic super;
54 ID id;
55 VALUE val;
56 struct RVarmap *next;
57 };
58 extern struct RVarmap *ruby_dyna_vars;
59
60 #endif