diff options
author | hinder <hinder@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-11-30 17:36:20 +0000 |
---|---|---|
committer | hinder <hinder@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-11-30 17:36:20 +0000 |
commit | a8569cd218d3d9aa7c690ad71a6ee9467fa0e1d4 (patch) | |
tree | 665d8403fce5d2cdfc7e5daa82b22ee6589cb34b /src/include | |
parent | a0bd060db561a961ae72700cdc4bea5fa28b15a4 (diff) |
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
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/util_Expression.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |