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/main/Groups.c | |
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/main/Groups.c')
-rw-r--r-- | src/main/Groups.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/Groups.c b/src/main/Groups.c index 6716692f..f8125787 100644 --- a/src/main/Groups.c +++ b/src/main/Groups.c @@ -2810,7 +2810,7 @@ const int *CCTKi_GroupLengthAsPointer(const char *fullgroupname) @endvar @var data @vdesc Data passed from expression evaluator - @vtype void * + @vtype const void * @vio in @vcomment Should be a char * with the thorn name. @@ -2824,7 +2824,7 @@ const int *CCTKi_GroupLengthAsPointer(const char *fullgroupname) static int IntParameterEvaluator(int nvars, const char * const *vars, uExpressionValue *vals, - void *data) + const void *data) { int i; |