From cab0135f57ca1c7e448e11f866b0adb8a1328d48 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 11 Oct 2026 01:26:41 +0200 Subject: WIP triplet --- src/prc1/sym.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/prc1/sym.c') diff --git a/src/prc1/sym.c b/src/prc1/sym.c index fb67f14..69d3bca 100644 --- a/src/prc1/sym.c +++ b/src/prc1/sym.c @@ -363,7 +363,8 @@ static int invalid(const struct tk *tk, const struct type *a, static const struct type *genlittype(struct prv *p) { const struct fn *fn = fn_cur(p); - const struct type *byte = type_find(fn, "char"); + const char *tr = triplet(p); + const struct type *byte = type_find(fn, tr, "char"); struct type *bytedup = NULL, *t = NULL; if (!byte) @@ -420,9 +421,10 @@ const struct type *sym_type(struct prv *p, const struct sym *s) case SYM_ID: { const struct stentry *e = fn_var(fn, tk); + const char *tr = triplet(p); const struct type *t; - if (!e && !(t = type_ufind(fn, tk->s))) + if (!e && !(t = type_ufind(fn, tr, tk->s))) return NULL; else if (e) t = e->t; -- cgit v1.2.3