shuffle fields of struct tbl around for better padding results
This commit is contained in:
parent
aec424e631
commit
8f937ec71b
20
sh.h
20
sh.h
@ -134,7 +134,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef EXTERN
|
#ifdef EXTERN
|
||||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.322 2009/08/08 13:08:52 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.323 2009/08/28 18:33:05 tg Exp $");
|
||||||
#endif
|
#endif
|
||||||
#define MKSH_VERSION "R39 2009/08/08"
|
#define MKSH_VERSION "R39 2009/08/08"
|
||||||
|
|
||||||
@ -852,9 +852,6 @@ struct table {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct tbl { /* table item */
|
struct tbl { /* table item */
|
||||||
Tflag flag; /* flags */
|
|
||||||
int type; /* command type (see below), base (if INTEGER),
|
|
||||||
* or offset from val.s of value (if EXPORT) */
|
|
||||||
Area *areap; /* area to allocate from */
|
Area *areap; /* area to allocate from */
|
||||||
union {
|
union {
|
||||||
char *s; /* string */
|
char *s; /* string */
|
||||||
@ -863,15 +860,18 @@ struct tbl { /* table item */
|
|||||||
int (*f)(const char **);/* int function */
|
int (*f)(const char **);/* int function */
|
||||||
struct op *t; /* "function" tree */
|
struct op *t; /* "function" tree */
|
||||||
} val; /* value */
|
} val; /* value */
|
||||||
uint32_t index; /* index for an array */
|
|
||||||
union {
|
|
||||||
int field; /* field with for -L/-R/-Z */
|
|
||||||
int errno_; /* CEXEC/CTALIAS */
|
|
||||||
} u2;
|
|
||||||
union {
|
union {
|
||||||
struct tbl *array; /* array values */
|
struct tbl *array; /* array values */
|
||||||
const char *fpath; /* temporary path to undef function */
|
const char *fpath; /* temporary path to undef function */
|
||||||
} u;
|
} u;
|
||||||
|
union {
|
||||||
|
int field; /* field with for -L/-R/-Z */
|
||||||
|
int errno_; /* CEXEC/CTALIAS */
|
||||||
|
} u2;
|
||||||
|
int type; /* command type (see below), base (if INTEGER),
|
||||||
|
* or offset from val.s of value (if EXPORT) */
|
||||||
|
Tflag flag; /* flags */
|
||||||
|
uint32_t index; /* index for an array */
|
||||||
char name[4]; /* name -- variable length */
|
char name[4]; /* name -- variable length */
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -892,7 +892,7 @@ struct tbl { /* table item */
|
|||||||
#define RJUST BIT(15) /* right justify */
|
#define RJUST BIT(15) /* right justify */
|
||||||
#define ZEROFIL BIT(16) /* 0 filled if RJUSTIFY, strip 0s if LJUSTIFY */
|
#define ZEROFIL BIT(16) /* 0 filled if RJUSTIFY, strip 0s if LJUSTIFY */
|
||||||
#define LCASEV BIT(17) /* convert to lower case */
|
#define LCASEV BIT(17) /* convert to lower case */
|
||||||
#define UCASEV_AL BIT(18)/* convert to upper case / autoload function */
|
#define UCASEV_AL BIT(18) /* convert to upper case / autoload function */
|
||||||
#define INT_U BIT(19) /* unsigned integer */
|
#define INT_U BIT(19) /* unsigned integer */
|
||||||
#define INT_L BIT(20) /* long integer (no-op) */
|
#define INT_L BIT(20) /* long integer (no-op) */
|
||||||
#define IMPORT BIT(21) /* flag to typeset(): no arrays, must have = */
|
#define IMPORT BIT(21) /* flag to typeset(): no arrays, must have = */
|
||||||
|
Loading…
Reference in New Issue
Block a user