Renamed immediate flag to operator
Fabio Cevasco h3rald@h3rald.com
Sun, 22 Dec 2024 23:52:25 +0100
3 files changed,
3 insertions(+),
3 deletions(-)
M
src/hex.h
→
src/hex.h
@@ -78,7 +78,7 @@ char *str_value;
int (*fn_value)(hex_context_t *); struct hex_item_t **quotation_value; } data; - int immediate; + int operator; hex_token_t *token; // Token containing stack information (valid for HEX_TYPE_NATIVE_SYMBOL and HEX_TYPE_USER_SYMBOL) size_t quotation_size; // Size of the quotation (valid for HEX_TYPE_QUOTATION) } hex_item_t;
M
src/stack.c
→
src/stack.c
@@ -33,7 +33,7 @@ hex_item_t value;
if (hex_get_symbol(ctx, item.token->value, &value)) { add_to_stack_trace(ctx, item.token); - if (value.type == HEX_TYPE_QUOTATION && value.immediate) + if (value.type == HEX_TYPE_QUOTATION && value.operator) { for (size_t i = 0; i < value.quotation_size; i++) {
M
src/symbols.c
→
src/symbols.c
@@ -66,7 +66,7 @@ return 1;
} if (value.type == HEX_TYPE_QUOTATION) { - value.immediate = 1; + value.operator = 1; } if (hex_set_symbol(ctx, name.data.str_value, value, 0) != 0) {