diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-01-18 10:32:09 +0000 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-01-18 10:32:09 +0000 |
| commit | c966ba46a9fb1bf3b3f697f4c838c284ce8ac040 (patch) | |
| tree | 061c6758930f183d32b3182dbb1a403b5755b260 /include | |
| parent | f8384fa50c78bd3a03985aa24e67e09696965eda (diff) | |
| download | busybox-w32-c966ba46a9fb1bf3b3f697f4c838c284ce8ac040.tar.gz busybox-w32-c966ba46a9fb1bf3b3f697f4c838c284ce8ac040.tar.bz2 busybox-w32-c966ba46a9fb1bf3b3f697f4c838c284ce8ac040.zip | |
- move the smallint that is platform dependant to it's proper place
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 11 | ||||
| -rw-r--r-- | include/platform.h | 11 |
2 files changed, 11 insertions, 11 deletions
diff --git a/include/libbb.h b/include/libbb.h index 2d49289e4..2089d2322 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -223,17 +223,6 @@ struct sysinfo { | |||
| 223 | extern int sysinfo(struct sysinfo* info); | 223 | extern int sysinfo(struct sysinfo* info); |
| 224 | 224 | ||
| 225 | 225 | ||
| 226 | /* Size-saving "small" ints (arch-dependent) */ | ||
| 227 | #if defined(i386) || defined(__x86_64__) || defined(__mips__) || defined(__cris__) | ||
| 228 | /* add other arches which benefit from this... */ | ||
| 229 | typedef signed char smallint; | ||
| 230 | typedef unsigned char smalluint; | ||
| 231 | #else | ||
| 232 | /* for arches where byte accesses generate larger code: */ | ||
| 233 | typedef int smallint; | ||
| 234 | typedef unsigned smalluint; | ||
| 235 | #endif | ||
| 236 | |||
| 237 | 226 | ||
| 238 | extern void chomp(char *s); | 227 | extern void chomp(char *s); |
| 239 | extern void trim(char *s); | 228 | extern void trim(char *s); |
diff --git a/include/platform.h b/include/platform.h index 91d5f476d..b927c54e7 100644 --- a/include/platform.h +++ b/include/platform.h | |||
| @@ -172,6 +172,17 @@ typedef unsigned long long int uintmax_t; | |||
| 172 | #endif | 172 | #endif |
| 173 | #endif | 173 | #endif |
| 174 | 174 | ||
| 175 | /* Size-saving "small" ints (arch-dependent) */ | ||
| 176 | #if defined(i386) || defined(__x86_64__) || defined(__mips__) || defined(__cris__) | ||
| 177 | /* add other arches which benefit from this... */ | ||
| 178 | typedef signed char smallint; | ||
| 179 | typedef unsigned char smalluint; | ||
| 180 | #else | ||
| 181 | /* for arches where byte accesses generate larger code: */ | ||
| 182 | typedef int smallint; | ||
| 183 | typedef unsigned smalluint; | ||
| 184 | #endif | ||
| 185 | |||
| 175 | /* uclibc does not implement daemon() for no-mmu systems. | 186 | /* uclibc does not implement daemon() for no-mmu systems. |
| 176 | * For 0.9.29 and svn, __ARCH_USE_MMU__ indicates no-mmu reliably. | 187 | * For 0.9.29 and svn, __ARCH_USE_MMU__ indicates no-mmu reliably. |
| 177 | * For earlier versions there is no reliable way to check if we are building | 188 | * For earlier versions there is no reliable way to check if we are building |
