Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ParseXS: generate_output(): change ST(0)= logic
Remove the $do_copy_tmp lex var and add a $ST0_already_assigned_to lex var. When deciding whether to emit ST(0) = ... that decision should be based on whether the expanded typemap already includes such an assignment. (Often it doesn't, because various optimisations change it to 'RETVALSV = ' etc.) This commit sets a variable which directly states whether this is true, instead of relying on indirect state. This commit should provide no change in functionality, but it makes the code more robust against future changes, by not having to rely on all branches knowing to set all the correct indirect variable values.
- Loading branch information