diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-09-26 23:30:40 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-09-27 23:57:29 +0200 |
| commit | 204f6f332318056a9b950e71e4a958da0c10ea72 (patch) | |
| tree | 5d7938d9ed44dbe9455d2a88b2ef93a4beef4397 /src/prc1/storage.c | |
| parent | 88d1bca43a8412b285ea2dd54dfa98d08ecc7849 (diff) | |
| download | prc-204f6f332318056a9b950e71e4a958da0c10ea72.tar.gz | |
prc1: Rework arg handling + dbg
Diffstat (limited to 'src/prc1/storage.c')
| -rw-r--r-- | src/prc1/storage.c | 5 |
1 files changed, 3 insertions, 2 deletions
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: |
