diff options
author | Ron Yorston <rmy@pobox.com> | 2023-03-16 10:47:09 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-03-16 10:47:09 +0000 |
commit | 184edf9bd672bc93856157098d528eab48948ba9 (patch) | |
tree | 183531c00207b293de9a609384e0ef9ff7dbfac5 /docs | |
parent | 385decd6bf62c116565ece1e0992ff7a79d48474 (diff) | |
download | busybox-w32-184edf9bd672bc93856157098d528eab48948ba9.tar.gz busybox-w32-184edf9bd672bc93856157098d528eab48948ba9.tar.bz2 busybox-w32-184edf9bd672bc93856157098d528eab48948ba9.zip |
win32: code shrink detection of executables
Add a function, file_is_win32_exe(), to detect if a path refers
to an executable. It tries adding extensions if necessary.
Use this in a number of places to replace common code of the form
path = alloc_ext_space(cmd);
if (add_win32_extension(path) || file_is_executable(path))
Saves 32-48 bytes.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions