From d5f154ed760d0929530fdce5409d5772a708ea05 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 23 Oct 2025 17:48:22 +0200 Subject: c: make builtin va_list an opaque struct --- targ.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'targ.c') diff --git a/targ.c b/targ.c index c30886d..b394a9a 100644 --- a/targ.c +++ b/targ.c @@ -15,6 +15,7 @@ static const struct targ { uchar targ_primsizes[TYPTR+1]; uchar targ_primalign[TYPTR+1]; +uint targ_valistsize; enum typetag targ_sizetype, targ_ptrdifftype, targ_wchartype; bool targ_charsigned, targ_bigendian, targ_64bit; const struct mctarg *mctarg; @@ -35,12 +36,12 @@ targ_init(const char *starg) sizes[TYULONG] = sizes[TYLONG] = t->longsize; sizes[TYUVLONG] = sizes[TYVLONG] = t->vlongsize; sizes[TYPTR] = t->ptrsize; - sizes[TYVALIST] = t->valistsize; align[TYULONG] = align[TYLONG] = t->longalign; align[TYUVLONG] = align[TYVLONG] = t->vlongalign; align[TYDOUBLE] = t->doublealign; align[TYLDOUBLE] = t->doublealign; - align[TYVALIST] = align[TYPTR] = t->ptralign; + align[TYPTR] = t->ptralign; + targ_valistsize = t->valistsize; targ_sizetype = t->sizetype; targ_ptrdifftype = t->ptrdifftype; targ_wchartype = t->wchartype; -- cgit v1.2.3