* 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
This commit is contained in:
ko1 2009-07-16 00:01:06 +00:00
parent d4628c0bcd
commit 94664d6d0c
8 changed files with 26 additions and 24 deletions

12
node.h
View file

@ -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 */