aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/all.h
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/all.h')
-rw-r--r--bootstrap/all.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootstrap/all.h b/bootstrap/all.h
index 5302a07..fb6bfe6 100644
--- a/bootstrap/all.h
+++ b/bootstrap/all.h
@@ -134,6 +134,8 @@ struct parser {
const struct type *targty;
bool used_targty;
bool is_header;
+ bool save_envage;
+ int envage;
};
enum typetype {
@@ -262,8 +264,10 @@ struct decl {
const struct type *ty;
} *cache;
struct toktree toks;
+ int envage;
} tepl;
};
+ int age;
};
struct teplparam {
@@ -528,7 +532,7 @@ bool isnumtype(const struct type *a);
const struct type *typeof2(const struct type *a, const struct type *b);
/** env.c **/
-struct decl *envfind(const struct env *, const char *name);
+struct decl *envfind(const struct env *, int age, const char *name);
struct decl *envput(struct env *, const struct decl *decl);
struct env *mkenv(const struct env *parent);