summaryrefslogtreecommitdiff
path: root/src/build
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-12-18 23:33:26 +0000
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2026-02-16 19:11:24 +0000
commitf386f2a1fcae885967278710fe997c56e2183476 (patch)
treea00d8854a055640952c48890b452ac5ae1bf9ced /src/build
parent7a07c08abe46f97f2412f06c77204e9015f97a47 (diff)
downloadsst-f386f2a1fcae885967278710fe997c56e2183476.tar.gz
sst-f386f2a1fcae885967278710fe997c56e2183476.zip
Size-optimise a few things
Saves multiple kilobytes, somehow. Unlikely to make much of a performance difference since it's mostly init/shutdown stuff.
Diffstat (limited to 'src/build')
-rw-r--r--src/build/gluegen.c4
1 files changed, 2 insertions, 2 deletions
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) {