From f38fc784ffab00c11b9818d18f55be34cc8aa130 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 21 Jun 2025 14:46:10 +0100 Subject: Abstract over con_var layout changes from OE to NE This doesn't allow us to support OE in and of itself but is part of the groundwork necessary to do so in the future. --- src/build/gluegen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/build/gluegen.c') diff --git a/src/build/gluegen.c b/src/build/gluegen.c index bc973fb..e2bc2f3 100644 --- a/src/build/gluegen.c +++ b/src/build/gluegen.c @@ -869,7 +869,8 @@ _( "}") _( "") _( "static inline void freevars() {") for (int i = 1; i < ncvars; ++i) { -F( " extfree(%.*s->strval);", cvar_names[i].len, cvar_names[i].s) +F( " extfree(con_getvarcommon(%.*s)->strval);", + cvar_names[i].len, cvar_names[i].s) } _( "}") for (int i = 1; i < nevents; ++i) { -- cgit v1.2.3-54-g00ecf