aboutsummaryrefslogtreecommitdiffstats
path: root/evaluator.c (follow)
AgeCommit message (Expand)AuthorFilesLines
2008-12-31short circuit evaluation ported from volker_dev (r820,r822,r824)michael1-8/+52
2007-09-09email address changedmichael1-1/+1
2007-06-17strndup() replacementmichael1-0/+24
2007-01-21new function 'decode()'michael1-1/+1
2007-01-20minor fixes to evaluatormichael1-0/+8
2007-01-14removed all tagsmichael1-129/+0
2007-01-14svn properties fixedmichael1-1/+2
2006-09-29[lcd4linux @ 2006-09-29 04:48:21 by reinelt]reinelt1-4/+7
2006-09-14[lcd4linux @ 2006-09-14 04:08:54 by reinelt]reinelt1-32/+22
2006-02-25 ion */ #define E_SYNTAX 1 /* Syntax error */ #define E_UNBALAN 2 /* Unbalanced parenthesis */ #define E_DIVZERO 3 /* Attempted division by zero */ #define E_UNKNOWN 4 /* Reference to unknown variable */ #define E_BADFUNC 5 /* Unrecognised function */ #define E_NUMARGS 6 /* Wrong number of arguments to function */ #define E_NOARG 7 /* Missing an argument to a function */ #define E_EMPTY 8 /* Empty expression */ void DelResult (RESULT *result); int SetVariable (char *name, RESULT *value); int AddNumericVariable (char *name, double value); int AddStringVariable (char *name, char *value); int AddFunction (char *name, int args, void (*func)()); RESULT* SetResult (RESULT **result, int type, void *value); double R2N (RESULT *result); char* R2S (RESULT *result); int Eval (char* expression, RESULT *result); #endif