changeset 852:ff13d79c75e0

Rename a const.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 23 Oct 2014 02:09:52 +0300
parents 62ee4e590a15
children b2140d41785a
files src/dmeval.c src/dmeval.h
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/dmeval.c	Tue Oct 21 20:21:23 2014 +0300
+++ b/src/dmeval.c	Thu Oct 23 02:09:52 2014 +0300
@@ -218,7 +218,7 @@
         DMEvalNode *next = node->next;
         int i;
 
-        for (i = 0; i < DM_MAX_ARGS; i++)
+        for (i = 0; i < DM_EVAL_MAX_ARGS; i++)
         {
             dmEvalTreeFree(node->args[i]);
             node->args[i] = NULL;
--- a/src/dmeval.h	Tue Oct 21 20:21:23 2014 +0300
+++ b/src/dmeval.h	Thu Oct 23 02:09:52 2014 +0300
@@ -7,7 +7,7 @@
 
 typedef double DMValue;
 #define DMCONVTYPE       (int)
-#define DM_MAX_ARGS      8
+#define DM_EVAL_MAX_ARGS      4
 
 
 enum
@@ -78,7 +78,7 @@
     int type;       // Type (SYM_*)
     int nargs;      // Number of arguments, if SYM_FUNC
 
-    DMValue (*func)(DMValue arg[DM_MAX_ARGS]);
+    DMValue (*func)(DMValue arg[DM_EVAL_MAX_ARGS]);
 
     DMValue *var;   // Pointer to variable value if SYM_VAR
     DMValue cvalue; // Const value, if SYM_CVAR
@@ -91,7 +91,7 @@
     DMValue val;          // Value, if immediate constant 
     DMEvalSymbol *symbol; // Symbol pointer, if function/variable/constvar
 
-    struct DMEvalNode *args[DM_MAX_ARGS]; // Arguments, if function
+    struct DMEvalNode *args[DM_EVAL_MAX_ARGS]; // Arguments, if function
 
     struct DMEvalNode *subexpr, *left, *right, *next, *prev;
 } DMEvalNode;