diff options
Diffstat (limited to 'node.h')
-rw-r--r-- | node.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -252,7 +252,7 @@ typedef struct RNode { struct RNode *node; ID id; long state; - struct global_entry *entry; + struct rb_global_entry *entry; long cnt; VALUE value; } u3; @@ -463,6 +463,16 @@ NODE *rb_compile_file(const char*, VALUE, int); NODE *rb_node_newnode(enum node_type,VALUE,VALUE,VALUE); NODE *rb_node_newnode_longlife(enum node_type,VALUE,VALUE,VALUE); +struct rb_global_entry { + struct rb_global_variable *var; + ID id; +}; + +struct rb_global_entry *rb_global_entry(ID); +VALUE rb_gvar_get(struct rb_global_entry *); +VALUE rb_gvar_set(struct rb_global_entry *, VALUE); +VALUE rb_gvar_defined(struct rb_global_entry *); + #if defined(__cplusplus) #if 0 { /* satisfy cc-mode */ |