summaryrefslogtreecommitdiff
path: root/env.h
diff options
context:
space:
mode:
authorYukihiro Matsumoto <matz@ruby-lang.org>1994-10-14 06:19:03 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-17 22:09:30 +0900
commit29f237a8b1df650089b54447f070726c75706b6f (patch)
treee6ee836a39a5f2f1d433d6532de32471b655fb6d /env.h
parent173976c97c9426aa8d96e53aef6c0e570c5fdfda (diff)
version 0.54v0_54
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-0.54.tar.gz
Diffstat (limited to 'env.h')
-rw-r--r--env.h33
1 files changed, 13 insertions, 20 deletions
diff --git a/env.h b/env.h
index fbb7ebd..34c411d 100644
--- a/env.h
+++ b/env.h
@@ -15,31 +15,24 @@ extern struct ENVIRON {
VALUE self;
int argc;
VALUE *argv;
- struct RClass *current_module;
- struct RClass *last_class;
-#ifdef USE_CALLER
- char *file;
- int line;
-#endif
ID last_func;
- ID *local_tbl;
- VALUE *local_vars;
- int in_eval;
- struct BLOCK *block;
- int iterator;
- int flags;
+ struct RClass *last_class;
struct ENVIRON *prev;
} *the_env;
-#define ITERATOR_P() (the_env->iterator == 1 || the_env->iterator == 2)
-
-#undef Qself
+#undef Qself
#define Qself the_env->self
-#define the_class the_env->current_module
-#define DURING_ITERATE 1
-#define DURING_RESQUE 2
-#define DURING_CALL 4
-#define VARS_MALLOCED 8
+extern struct SCOPE {
+ ID *local_tbl;
+ VALUE *local_vars;
+ VALUE block;
+ int flags;
+ struct SCOPE *prev;
+} *the_scope;
+
+#define VARS_MALLOCED (1<<2)
+
+extern int rb_in_eval;
#endif /* ENV_H */