diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | interp.c | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -9,7 +9,7 @@ ifeq ($(mode), debug) -g \ -fsanitize=address else - cflags = $(includes) -O2 + cflags = $(includes) -g -O2 endif src = $(shell find ./ -maxdepth 1 -name '*.c' -not -name 'main.c') @@ -93,6 +93,9 @@ void Interp_init(Interp *self) { SExpVector_push_back(&self->objs, sexp); self->nil = (SExpRef){i}; i++; + self->filename.idx = 0; + self->linenum = 1; + sexp.type = kEnvSExp; sexp.env.parent= self->nil; sexp.env.bindings = self->nil; |
