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/storage.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/prc1/storage.c') diff --git a/src/prc1/storage.c b/src/prc1/storage.c index 62f3c1f..828ca1b 100644 --- a/src/prc1/storage.c +++ b/src/prc1/storage.c @@ -1,4 +1,5 @@ #include "storage.h" +#include "dbg.h" #include "errloc.h" #include "fn.h" #include "lex.h" @@ -140,8 +141,8 @@ static int stpush(const struct lex *l, struct prv *p, const struct tk *name, if (p->proto) fputc('\t', stderr); - fprintf(stderr, "\tadding %s (%d:%d) to %s, type %s, offset %zu, " - "size %zu\n", name->s, loc->line, loc->col, st->name, tname, + dbg("\tadding %s (%d:%d) to %s, type %s, offset %zu, size %zu\n", + name->s, loc->line, loc->col, st->name, tname, entries[st->nentries - 1].offset, t->sz); ret = 1; end: -- cgit v1.2.3