aboutsummaryrefslogtreecommitdiff
path: root/sloth.h
diff options
context:
space:
mode:
Diffstat (limited to 'sloth.h')
-rw-r--r--sloth.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sloth.h b/sloth.h
index 53d7c24..d3bb00c 100644
--- a/sloth.h
+++ b/sloth.h
@@ -15,12 +15,15 @@ typedef struct SlothInstr SlothInstr;
struct SlothDict {
SlothHash hash;
int c_func;
+ int immediate;
SlothError (*func)(Sloth *ctx);
SlothInstr *instrs;
SlothDict *next;
};
#define SLOTH_DICT_C(word, func) \
- (SlothDict){XXH32(word, strlen(word), 0), 1, func, NULL, NULL}
+ (SlothDict){XXH32(word, strlen(word), 0), 1, 0, func, NULL, NULL}
+#define SLOTH_DICT_I(word, func) \
+ (SlothDict){XXH32(word, strlen(word), 0), 1, 1, func, NULL, NULL}
struct Sloth {
SlothByte *stack;