nooc

nooc programming language compiler
git clone git://git.nihaljere.xyz/nooc
Log | Files | Refs | LICENSE

commit 9f5fbfe436b13274e3ec042d27cdcbb715da243d
parent 853042c6acd2835ac7b16bc527fe33372ecab78f
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Fri, 24 Dec 2021 23:19:52 -0600

remove unused 'curproc'

Diffstat:
Mmain.c | 4----
Mparse.c | 1-
2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/main.c b/main.c @@ -24,7 +24,6 @@ extern struct block *blockstack[BLOCKSTACKSIZE]; extern size_t blocki; -struct proc *curproc; const char *const tokenstr[] = { [TOK_NONE] = "TOK_NONE", @@ -576,10 +575,7 @@ genblock(char *buf, struct block *block, bool toplevel) if (toplevel) { if (expr->class == C_PROC) { block->decls.data[item->idx].loc.addr = total + TEXT_OFFSET; - // FIXME: won't work for nested functions - curproc = &expr->d.proc; total += genproc(buf ? buf + total : NULL, &(expr->d.proc)); - curproc = NULL; } else { evalexpr(decl); } diff --git a/parse.c b/parse.c @@ -14,7 +14,6 @@ extern struct block *blockstack[BLOCKSTACKSIZE]; extern size_t blocki; -extern struct proc *curproc; extern const char *const tokenstr[];