summaryrefslogtreecommitdiff
path: root/node.h
diff options
context:
space:
mode:
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 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 */