diff options
| author | 2026-04-03 21:45:17 +0100 | |
|---|---|---|
| committer | 2026-04-04 01:37:54 +0100 | |
| commit | 2ee93c3f46f8e948d2331eab46c95322a88874ee (patch) | |
| tree | b3a39f8e79ef725579b569748ac4be28b82b1266 /src/build/gluegen.c | |
| parent | e174011b5e7390dc8714910185aaa40d0a44702f (diff) | |
| download | sst-2ee93c3f46f8e948d2331eab46c95322a88874ee.tar.gz sst-2ee93c3f46f8e948d2331eab46c95322a88874ee.zip | |
Size-optimise cvar value cleanup
Put all the cvars together contiguously; then we don't need to generate
lots of individual calls to extfree() and can instead simply iterate a
fixed-sized array.
Diffstat (limited to 'src/build/gluegen.c')
| -rw-r--r-- | src/build/gluegen.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/build/gluegen.c b/src/build/gluegen.c index b2887a9..3e04db8 100644 --- a/src/build/gluegen.c +++ b/src/build/gluegen.c @@ -867,22 +867,6 @@ F( " if (has_%.*s) _feat_end_%.*s();", } _( "}") _( "") -_( "static inline void freevars() {") - for (int i = 1; i < ncvars; ++i) { -F( " extfree(con_getvarcommon(%.*s)->strval);", - cvar_names[i].len, cvar_names[i].s) - } -_( "}") -_( "") -_( "static inline void shuntvars() {") -_( "#ifdef _WIN32") - for (int i = 1; i < ncvars; ++i) { -F( " __builtin_memmove(&%.*s->v1, &%.*s->v2, ", - cvar_names[i].len, cvar_names[i].s, cvar_names[i].len, cvar_names[i].s) -_( " sizeof(struct con_var_common));") - } -_( "#endif") -_( "}") for (int i = 1; i < nevents; ++i) { const char *prefix = event_predicateflags[i] ? "bool CHECK_" : "void EMIT_"; |
