diff options
author | Ron Yorston <rmy@pobox.com> | 2018-03-02 13:18:18 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-03-02 13:18:18 +0000 |
commit | 99daecdac917d149f4643e090cb705df135e2ed1 (patch) | |
tree | 22b1e8d57d97d36b2c46f6c93983fc06a1cd5ba7 /include | |
parent | 5b726f8a78c33e117c2a968739b1b4a6964905f8 (diff) | |
download | busybox-w32-99daecdac917d149f4643e090cb705df135e2ed1.tar.gz busybox-w32-99daecdac917d149f4643e090cb705df135e2ed1.tar.bz2 busybox-w32-99daecdac917d149f4643e090cb705df135e2ed1.zip |
Minor improvements to build
Exclude source files in libbb that aren't used by busybox-w32. This
speeds up the build marginally. They can always be reinstated if
necessary.
Provide fake routines for everything in inode_hash.c so that it
can be excluded. inode_hash.c is now unchanged from upstream.
Use last_char_is in has_exe_suffix_or_dot. It doesn't save any
bytes but it makes the code neater.
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 8 | ||||
-rw-r--r-- | include/mingw.h | 1 |
2 files changed, 6 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index f8e54de54..e816a2726 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1662,11 +1662,15 @@ int bb_xioctl(int fd, unsigned request, void *argp) FAST_FUNC; | |||
1662 | #define xioctl(fd,request,argp) bb_xioctl(fd,request,argp) | 1662 | #define xioctl(fd,request,argp) bb_xioctl(fd,request,argp) |
1663 | #endif | 1663 | #endif |
1664 | 1664 | ||
1665 | char *is_in_ino_dev_hashtable(const struct stat *statbuf) FAST_FUNC; | ||
1666 | #if !ENABLE_PLATFORM_MINGW32 | 1665 | #if !ENABLE_PLATFORM_MINGW32 |
1666 | char *is_in_ino_dev_hashtable(const struct stat *statbuf) FAST_FUNC; | ||
1667 | void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) FAST_FUNC; | 1667 | void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name) FAST_FUNC; |
1668 | #endif | ||
1669 | void reset_ino_dev_hashtable(void) FAST_FUNC; | 1668 | void reset_ino_dev_hashtable(void) FAST_FUNC; |
1669 | #else | ||
1670 | #define add_to_ino_dev_hashtable(s, n) (void)0 | ||
1671 | #define is_in_ino_dev_hashtable(s) NULL | ||
1672 | #define reset_ino_dev_hashtable() | ||
1673 | #endif | ||
1670 | #ifdef __GLIBC__ | 1674 | #ifdef __GLIBC__ |
1671 | /* At least glibc has horrendously large inline for this, so wrap it */ | 1675 | /* At least glibc has horrendously large inline for this, so wrap it */ |
1672 | unsigned long long bb_makedev(unsigned major, unsigned minor) FAST_FUNC; | 1676 | unsigned long long bb_makedev(unsigned major, unsigned minor) FAST_FUNC; |
diff --git a/include/mingw.h b/include/mingw.h index 1bb2032cd..09903d582 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -435,7 +435,6 @@ const char * next_path_sep(const char *path); | |||
435 | #define is_absolute_path(path) ((path)[0] == '/' || (path)[0] == '\\' || has_dos_drive_prefix(path)) | 435 | #define is_absolute_path(path) ((path)[0] == '/' || (path)[0] == '\\' || has_dos_drive_prefix(path)) |
436 | 436 | ||
437 | #define find_mount_point(n, s) find_mount_point(n) | 437 | #define find_mount_point(n, s) find_mount_point(n) |
438 | #define add_to_ino_dev_hashtable(s, n) (void)0 | ||
439 | 438 | ||
440 | /* | 439 | /* |
441 | * helpers | 440 | * helpers |