aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-04-28 14:05:59 +0100
committerRon Yorston <rmy@pobox.com>2023-04-28 14:05:59 +0100
commit5d417695bcd5af331acf69690312deff61b233d0 (patch)
tree71f632f40cc05e9ac1f3dea798c34c887b6a8bba /include
parente790046619f539356b950a5b07cba2f477401b4b (diff)
downloadbusybox-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.h1
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
529char ** FAST_FUNC grow_argv(char **argv, int n);
529pid_t FAST_FUNC mingw_spawn(char **argv); 530pid_t FAST_FUNC mingw_spawn(char **argv);
530pid_t FAST_FUNC mingw_spawn_detach(char **argv); 531pid_t FAST_FUNC mingw_spawn_detach(char **argv);
531intptr_t FAST_FUNC mingw_spawn_proc(const char **argv); 532intptr_t FAST_FUNC mingw_spawn_proc(const char **argv);