From 204f6f332318056a9b950e71e4a958da0c10ea72 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 26 Sep 2026 23:30:40 +0200 Subject: prc1: Rework arg handling + dbg --- src/prc1/lit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/prc1/lit.c') diff --git a/src/prc1/lit.c b/src/prc1/lit.c index 09528a2..1faf247 100644 --- a/src/prc1/lit.c +++ b/src/prc1/lit.c @@ -1,3 +1,4 @@ +#include "dbg.h" #include "lit.h" #include "fn.h" #include "lex.h" @@ -92,8 +93,8 @@ const struct lit *lit_push(const struct tk *tk, struct prv *p) else if (ast->lastlit) ast->lastlit->next = l; + dbg("adding literal \"%s\"\n", name); ast->lastlit = l; - fprintf(stderr, "adding literal \"%s\"\n", name); return l; failure: -- cgit v1.2.3