X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fnasal%2Fcode.h;h=e7cb3f39edc47f2331b0491a908271699c742443;hb=9aa5c3b2ae9442a9f777088cae982aef9034183c;hp=3db610773d95e84bd19ab2a2fc6c57017ed0ae20;hpb=dd1ea541ecc4403bcea2ca8c60c03971d1f4338f;p=simgear.git diff --git a/simgear/nasal/code.h b/simgear/nasal/code.h index 3db61077..e7cb3f39 100644 --- a/simgear/nasal/code.h +++ b/simgear/nasal/code.h @@ -26,7 +26,8 @@ enum { OP_MEMBER, OP_SETMEMBER, OP_LOCAL, OP_SETLOCAL, OP_NEWVEC, OP_VAPPEND, OP_NEWHASH, OP_HAPPEND, OP_MARK, OP_UNMARK, OP_BREAK, OP_SETSYM, OP_DUP2, OP_INDEX, OP_BREAK2, OP_PUSHEND, OP_JIFTRUE, OP_JIFNOT, OP_FCALLH, - OP_MCALLH, OP_XCHG2, OP_UNPACK, OP_SLICE, OP_SLICE2 + OP_MCALLH, OP_XCHG2, OP_UNPACK, OP_SLICE, OP_SLICE2, OP_BIT_AND, OP_BIT_OR, + OP_BIT_XOR, OP_BIT_NEG }; struct Frame { @@ -62,7 +63,11 @@ struct Globals { // A hash of symbol names naRef symbols; + // Vector/hash containing objects which should not be freed by the gc + // TODO do we need a separate vector and hash? naRef save; + naRef save_hash; + int next_gc_key; struct Context* freeContexts; struct Context* allContexts;