From 2b00b4311ecf4c6f6331f8c969934fa792f7e15c Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Fri, 16 Aug 2024 11:19:01 +0100 Subject: win32: code shrink Add the FAST_FUNC qualifier to several Windows-specific functions. This has no effect in 64-bit builds but saves 336 bytes for 32-bit. --- libbb/get_last_path_component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb/get_last_path_component.c') diff --git a/libbb/get_last_path_component.c b/libbb/get_last_path_component.c index 9d017ab7f..46a87d7fc 100644 --- a/libbb/get_last_path_component.c +++ b/libbb/get_last_path_component.c @@ -24,7 +24,7 @@ const char* FAST_FUNC bb_basename(const char *name) } #if ENABLE_PLATFORM_MINGW32 -char *get_last_slash(const char *path) +char * FAST_FUNC get_last_slash(const char *path) { const char *start = path + root_len(path); char *slash = strrchr(start, '/'); -- cgit v1.2.3-55-g6feb