Make data parameter of expression evaluation functions const

Issue #1189 closed
Ian Hinder created an issue

The data argument of Util_ExpressionEvaluate, and of the evaluator functions it uses, should be const. data is a pointer to user-supplied data used for evaluating the expression. It should not be modified by the evaluation. Note that this modifies the flesh API to the (undocumented) thorn-visible function Util_ExpressionEvaluate. The attached patch makes this modification as well as modifying the evaluators in the flesh.

OK to apply?

Keyword:

Comments (4)

  1. Log in to comment