diff options
| author | 2022-08-11 20:27:48 +0200 | |
|---|---|---|
| committer | 2022-08-11 20:27:48 +0200 | |
| commit | 19f1093f0929b989a06cdee2e7d175e6db15559c (patch) | |
| tree | acf82e3cb1b8e81ff132978b7656c178249c5f15 /bootstrap/env.c | |
| parent | c7961d732e5d67e8ea1b0be05e979bf24361f794 (diff) | |
things
Diffstat (limited to 'bootstrap/env.c')
| -rw-r--r-- | bootstrap/env.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bootstrap/env.c b/bootstrap/env.c index 773550a..ff2929f 100644 --- a/bootstrap/env.c +++ b/bootstrap/env.c @@ -35,6 +35,8 @@ envput(struct env *env, const struct decl *decl) { // modify existing forward declarations? if (decl == d0 || !memcmp(d0, decl, sizeof *d0)) return d0; + if (d0->t == Ddef && decl->t == Ddef && !memcmp(&d0->var, &decl->var, sizeof d0->var)) + return d0; if (d0->t == Dmacro && !memcmp(&decl->macro, &d0->macro, sizeof decl->macro)) return d0; if (d0->t == Dtepl && !memcmp(&decl->tepl, &d0->tepl, sizeof decl->tepl)) |