summaryrefslogtreecommitdiff
path: root/env.h
diff options
context:
space:
mode:
Diffstat (limited to 'env.h')
-rw-r--r--env.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/env.h b/env.h
new file mode 100644
index 0000000000..09ff31d13f
--- /dev/null
+++ b/env.h
@@ -0,0 +1,40 @@
+/************************************************
+
+ env.h -
+
+ $Author$
+ $Revision$
+ $Date$
+ created at: Mon Jul 11 11:53:03 JST 1994
+
+************************************************/
+#ifndef ENV_H
+#define ENV_H
+
+extern struct ENVIRON {
+ VALUE self;
+ int argc;
+ VALUE *argv;
+ struct RClass *current_module;
+ struct RClass *last_class;
+ char *file;
+ int line;
+ ID last_func;
+ ID *local_tbl;
+ VALUE *local_vars;
+ int in_eval;
+ struct BLOCK *block;
+ int iterator;
+ int flags;
+ struct ENVIRON *prev;
+} *the_env;
+
+#define ITERATOR_P() (the_env->iterator > 0 && the_env->iterator < 3)
+#define Qself the_env->self
+#define the_class the_env->current_module
+
+#define DURING_ITERATE 1
+#define DURING_RESQUE 2
+#define DURING_CALL 4
+
+#endif /* ENV_H */