From a8569cd218d3d9aa7c690ad71a6ee9467fa0e1d4 Mon Sep 17 00:00:00 2001 From: hinder Date: Fri, 30 Nov 2012 17:36:20 +0000 Subject: Make data parameter of expression evaluation functions 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. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4922 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/include/util_Expression.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/util_Expression.h b/src/include/util_Expression.h index c8b524c4..f16b2d91 100644 --- a/src/include/util_Expression.h +++ b/src/include/util_Expression.h @@ -37,8 +37,8 @@ uExpression Util_ExpressionParse(const char *expression); int Util_ExpressionEvaluate(const uExpression buffer, uExpressionValue *retval, - int (*eval)(int, const char * const *, uExpressionValue *, void *), - void *data); + int (*eval)(int, const char * const *, uExpressionValue *, const void *), + const void *data); void Util_ExpressionFree(uExpression buffer); -- cgit v1.2.3