diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-12-19 18:09:41 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-12-19 18:09:41 -0800 |
commit | 6aa2cbe8070e9d7f0385a57bbc0cce1045fd1725 (patch) | |
tree | d7c3cfcc8cf5988f359674b2820b016f112f5a15 /src/parse_tree.cpp | |
parent | ad72421b2c738e93ed8d99823974b5a823a02e03 (diff) |
Shave 4 bytes from parse_node_t
Bitfields ftw
Diffstat (limited to 'src/parse_tree.cpp')
-rw-r--r-- | src/parse_tree.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parse_tree.cpp b/src/parse_tree.cpp index c1f1f80f..ead78a6e 100644 --- a/src/parse_tree.cpp +++ b/src/parse_tree.cpp @@ -1149,7 +1149,9 @@ void parse_ll_t::accept_tokens(parse_token_t token1, parse_token_t token2) // Get the production for the top of the stack parse_stack_element_t &stack_elem = symbol_stack.back(); parse_node_t &node = nodes.at(stack_elem.node_idx); - const production_t *production = production_for_token(stack_elem.type, token1, token2, &node.tag); + parse_node_tag_t tag = 0; + const production_t *production = production_for_token(stack_elem.type, token1, token2, &tag); + node.tag = tag; if (production == NULL) { parse_error_failed_production(stack_elem, token1); |