introduce small[u]int

fsck_minix: use it for flag variables. 140 bytes saved
This commit is contained in:
Denis Vlasenko
2007-01-03 00:39:15 +00:00
parent 2a85676fa5
commit 24cfe8fe0c
2 changed files with 81 additions and 64 deletions

View File

@ -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 *);