summaryrefslogtreecommitdiff
path: root/node.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-16 00:01:06 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-16 00:01:06 (GMT)
commit94664d6d0cc8042e98c7256ec28a751d3e5b687c (patch)
tree7ddf4d986bccffe75a4afb1620fc58015d46fecb /node.h
parentd4628c0bcd0479b15593cfa4ed0907b4360857e0 (diff)
* 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
Diffstat (limited to 'node.h')
-rw-r--r--node.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/node.h b/node.h
index 8b77873..4ad695c 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 */