diff options
author | Ron Yorston <rmy@pobox.com> | 2023-04-28 14:05:59 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-04-28 14:05:59 +0100 |
commit | 5d417695bcd5af331acf69690312deff61b233d0 (patch) | |
tree | 71f632f40cc05e9ac1f3dea798c34c887b6a8bba /include | |
parent | e790046619f539356b950a5b07cba2f477401b4b (diff) | |
download | busybox-w32-5d417695bcd5af331acf69690312deff61b233d0.tar.gz busybox-w32-5d417695bcd5af331acf69690312deff61b233d0.tar.bz2 busybox-w32-5d417695bcd5af331acf69690312deff61b233d0.zip |
win32: code shrink copying of argv
There are two places where a copy of an argv array is made with
extra space at the start. Move this code into a function.
Saves 56-64 bytes.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h index c2c37ba48..6204ded6d 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -526,6 +526,7 @@ int utimes(const char *file_name, const struct timeval times[2]); | |||
526 | #define is_unc_path(x) (strlen(x) > 4 && is_dir_sep(x[0]) && \ | 526 | #define is_unc_path(x) (strlen(x) > 4 && is_dir_sep(x[0]) && \ |
527 | is_dir_sep(x[1]) && !is_dir_sep(x[2])) | 527 | is_dir_sep(x[1]) && !is_dir_sep(x[2])) |
528 | 528 | ||
529 | char ** FAST_FUNC grow_argv(char **argv, int n); | ||
529 | pid_t FAST_FUNC mingw_spawn(char **argv); | 530 | pid_t FAST_FUNC mingw_spawn(char **argv); |
530 | pid_t FAST_FUNC mingw_spawn_detach(char **argv); | 531 | pid_t FAST_FUNC mingw_spawn_detach(char **argv); |
531 | intptr_t FAST_FUNC mingw_spawn_proc(const char **argv); | 532 | intptr_t FAST_FUNC mingw_spawn_proc(const char **argv); |