harec

[hare] Hare compiler, written in C11 for POSIX OSs
Log | Files | Refs | README | LICENSE

commit d1d7763eaed76ed7a0b0aef24ea88def741559ed
parent 32dafdfae464e8bfa8d205e9962c29dc32e25ec9
Author: Bor Grošelj Simić <bgs@turminal.net>
Date:   Sat,  4 Jun 2022 14:36:01 +0200

fix error location reporting in typedef files

check errors were reported with wrong filenames

Signed-off-by: Bor Grošelj Simić <bgs@turminal.net>

Diffstat:
Msrc/mod.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mod.c b/src/mod.c @@ -93,13 +93,13 @@ module_resolve(struct modcache *cache[], lex_init(&lexer, f, 0); parse(&lexer, &aunit.subunits); lex_finish(&lexer); - sources[0] = old; // TODO: Free unused bits struct unit u = {0}; struct scope *scope = check_internal(store, cache, NULL, defines, &aunit, &u, true); + sources[0] = old; bucket = &cache[hash % MODCACHE_BUCKETS]; struct modcache *item = xcalloc(1, sizeof(struct modcache)); identifier_dup(&item->ident, ident);