diff src/dmeval.h @ 852:ff13d79c75e0

Rename a const.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 23 Oct 2014 02:09:52 +0300
parents 1e5cf1144f36
children e06abfde6c39
line wrap: on
line diff
--- 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;