diff options
author | Denis Vlasenko | 2007-01-03 00:39:15 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-01-03 00:39:15 +0000 |
commit | 24cfe8fe0c6a7b8b393a898ce5ec6195af17f7cd (patch) | |
tree | 5dafc81bc7744f7482c3d214b76dc3850cc9aef4 /include | |
parent | 2a85676fa5b7884400d7c2cc2170e14f995cf73d (diff) | |
download | busybox-24cfe8fe0c6a7b8b393a898ce5ec6195af17f7cd.zip busybox-24cfe8fe0c6a7b8b393a898ce5ec6195af17f7cd.tar.gz |
introduce small[u]int
fsck_minix: use it for flag variables. 140 bytes saved
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index 5d72481..1330307 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -191,6 +191,18 @@ struct sysinfo { extern int sysinfo(struct sysinfo* info); +/* Size-saving "small" ints (arch-dependent) */ +#if defined(i386) || defined (__mips__) +/* add other arches which benefit from this... */ +typedef signed char smallint; +typedef unsigned char smalluint; +#else +/* for arches where byte accesses generate larger code: */ +typedef int smallint; +typedef unsigned smalluint; +#endif + + extern void chomp(char *s); extern void trim(char *s); extern char *skip_whitespace(const char *); |