From 94664d6d0cc8042e98c7256ec28a751d3e5b687c Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 16 Jul 2009 00:01:06 +0000 Subject: * node.h, vm_core.h, variable.c: rename global_entry to rb_global_entry. * compile.c, insns.def, iseq.c, vm_insnhelper.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- node.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'node.h') diff --git a/node.h b/node.h index 8b77873b1a..4ad695ca60 100644 --- a/node.h +++ b/node.h @@ -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 */ -- cgit v1.2.3