diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-04-23 16:01:05 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-04-23 16:01:05 +1000 |
commit | d8014392bc291504997c65b3b44a7f21a60b0e07 (patch) | |
tree | 03fd6cb8f8590ca8b54b7f40387ec02d6edb4b03 /src/parser.h | |
parent | [PARSER] Use alloca to get rid of setjmp (diff) | |
download | dash-d8014392bc291504997c65b3b44a7f21a60b0e07.tar.gz dash-d8014392bc291504997c65b3b44a7f21a60b0e07.zip |
[PARSER] Only use signed char for syntax arrays
The existing scheme of using the native char for syntax array indicies makes cross-compiling difficult. Therefore it makes sense to choose one specific sign for everyone. Since signed chars are native to most platforms and i386, it makes more sense to use that if we are to choose one type for everyone.
Diffstat (limited to '')
-rw-r--r-- | src/parser.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/parser.h b/src/parser.h index fa58ed7..d0cf440 100644 --- a/src/parser.h +++ b/src/parser.h @@ -35,17 +35,17 @@ */ /* control characters in argument strings */ -#define CTL_FIRST '\201' /* first 'special' character */ -#define CTLESC '\201' /* escape next character */ -#define CTLVAR '\202' /* variable defn */ -#define CTLENDVAR '\203' -#define CTLBACKQ '\204' +#define CTL_FIRST -127 /* first 'special' character */ +#define CTLESC -127 /* escape next character */ +#define CTLVAR -126 /* variable defn */ +#define CTLENDVAR -125 +#define CTLBACKQ -124 #define CTLQUOTE 01 /* ored with CTLBACKQ code if in quotes */ -/* CTLBACKQ | CTLQUOTE == '\205' */ -#define CTLARI '\206' /* arithmetic expression */ -#define CTLENDARI '\207' -#define CTLQUOTEMARK '\210' -#define CTL_LAST '\210' /* last 'special' character */ +/* CTLBACKQ | CTLQUOTE == 133 */ +#define CTLARI -122 /* arithmetic expression */ +#define CTLENDARI -121 +#define CTLQUOTEMARK -120 +#define CTL_LAST -120 /* last 'special' character */ /* variable substitution byte (follows CTLVAR) */ #define VSTYPE 0x0f /* type of variable substitution */ |