From f386f2a1fcae885967278710fe997c56e2183476 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Thu, 18 Dec 2025 23:33:26 +0000 Subject: Size-optimise a few things Saves multiple kilobytes, somehow. Unlikely to make much of a performance difference since it's mostly init/shutdown stuff. --- src/build/gluegen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/build/gluegen.c') diff --git a/src/build/gluegen.c b/src/build/gluegen.c index 574aa92..a055241 100644 --- a/src/build/gluegen.c +++ b/src/build/gluegen.c @@ -748,7 +748,7 @@ F( " feats.preinit_%.*s = _feat_preinit_%.*s();", } _( "}") _( "") -_( "static inline void initfeatures() {") +_( "static inline opt_small void initfeatures() {") // note: hidden flag could be 0 on OE but it's useful to know which things // *would* be hidden. in particular, GetHelpText currently checks for both // CON_INIT_HIDDEN and _CON_NE_HIDDEN when deciding whether to prepend @@ -856,7 +856,7 @@ _( "#else") _( "#endif") _( "}") _( "") -_( "static inline void endfeatures() {") +_( "static inline opt_small void endfeatures() {") for (int i = nfeatures - 1; i >= 0; --i) { s16 mod = feat_initorder[i]; if (mod_flags[mod] & HAS_END) { -- cgit v1.2.3-54-g00ecf