diff options
author | Ron Yorston <rmy@pobox.com> | 2024-08-16 11:19:01 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-08-16 11:19:01 +0100 |
commit | 2b00b4311ecf4c6f6331f8c969934fa792f7e15c (patch) | |
tree | 78450c22447a1e60cce970b98016ae8de7107336 /libbb/get_last_path_component.c | |
parent | 6481bb22b5e6d60909d09cf6179412c4f34b9b3c (diff) | |
download | busybox-w32-2b00b4311ecf4c6f6331f8c969934fa792f7e15c.tar.gz busybox-w32-2b00b4311ecf4c6f6331f8c969934fa792f7e15c.tar.bz2 busybox-w32-2b00b4311ecf4c6f6331f8c969934fa792f7e15c.zip |
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.
Diffstat (limited to 'libbb/get_last_path_component.c')
-rw-r--r-- | libbb/get_last_path_component.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
24 | } | 24 | } |
25 | 25 | ||
26 | #if ENABLE_PLATFORM_MINGW32 | 26 | #if ENABLE_PLATFORM_MINGW32 |
27 | char *get_last_slash(const char *path) | 27 | char * FAST_FUNC get_last_slash(const char *path) |
28 | { | 28 | { |
29 | const char *start = path + root_len(path); | 29 | const char *start = path + root_len(path); |
30 | char *slash = strrchr(start, '/'); | 30 | char *slash = strrchr(start, '/'); |