Added a named parameter to the calc_var_name_to_utf8() in core/vat.c
This fixes issue Variables that start with r show up as Ans in the Variable Viewer #466 by making the conversion to Ans dependent on whether the variable is parsed as having a true calc_var_t.named attribute. The calc_var_t.named attribute for Ans is false, so the conversion does not take place.
The solution does rely on a switch-case fall-through, raising a compiler warning, which will be fixed pending review.
Made the following changes:
named
parameter to thecalc_var_name_to_utf8()
incore/vat.c
This fixes issue
Variables that start with r show up as Ans in the Variable Viewer #466
by making the conversion to Ans dependent on whether the variable is parsed as having a truecalc_var_t.named
attribute. Thecalc_var_t.named
attribute for Ans is false, so the conversion does not take place.The solution does rely on a switch-case fall-through, raising a compiler warning, which will be fixed pending review.