(NSC_OPMASK, NSC_ISNUM1, NSC_ISNUM2, nscstr, nstr_comp, nstr_exec):

Simplify encoding of struct ncstr member oper.
This commit is contained in:
Markus Armbruster 2004-02-28 08:49:39 +00:00
parent bd54488715
commit 3d0178b994
2 changed files with 12 additions and 10 deletions

View file

@ -39,6 +39,12 @@
#define NS_LSIZE 128
#define NS_NCOND 16
enum { /* masks for struct nscstr member oper */
NSC_OPMASK = 0x0ff, /* operator */
NSC_ISNUM1 = 0x100, /* is left operand a number? */
NSC_ISNUM2 = 0x200 /* is right operand a number? */
};
struct nscstr {
long fld1; /* first commodity or number */
long fld2; /* second commodity or number */