diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2005-05-08 04:32:45 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2005-05-08 04:32:45 +0000 |
commit | dbf5d92605a9db10e3e3cb154d03a515c5d5c5af (patch) | |
tree | 501d5dda3ce90fe924b893e487d9ef9f0683382b /evaluator.h | |
parent | a1c471e9fb7cadb68bb182ab2e9715a0aa092386 (diff) | |
download | lcd4linux-dbf5d92605a9db10e3e3cb154d03a515c5d5c5af.tar.gz |
[lcd4linux @ 2005-05-08 04:32:43 by reinelt]
CodingStyle added and applied
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@547 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'evaluator.h')
-rw-r--r-- | evaluator.h | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/evaluator.h b/evaluator.h index fa6eab0..6c3016c 100644 --- a/evaluator.h +++ b/evaluator.h @@ -1,4 +1,4 @@ -/* $Id: evaluator.h,v 1.10 2005/01/18 06:30:23 reinelt Exp $ +/* $Id: evaluator.h,v 1.11 2005/05/08 04:32:44 reinelt Exp $ * * expression evaluation * @@ -23,6 +23,9 @@ * * * $Log: evaluator.h,v $ + * Revision 1.11 2005/05/08 04:32:44 reinelt + * CodingStyle added and applied + * * Revision 1.10 2005/01/18 06:30:23 reinelt * added (C) to all copyright statements * @@ -86,30 +89,30 @@ #define R_STRING 2 typedef struct { - int type; - double number; - int length; - char *string; + int type; + double number; + int length; + char *string; } RESULT; -int SetVariable (const char *name, RESULT *value); -int SetVariableNumeric (const char *name, const double value); -int SetVariableString (const char *name, const char *value); +int SetVariable(const char *name, RESULT * value); +int SetVariableNumeric(const char *name, const double value); +int SetVariableString(const char *name, const char *value); -int AddFunction (const char *name, const int argc, void (*func)()); +int AddFunction(const char *name, const int argc, void (*func) ()); -void DeleteVariables (void); -void DeleteFunctions (void); +void DeleteVariables(void); +void DeleteFunctions(void); -void DelResult (RESULT *result); -RESULT* SetResult (RESULT **result, const int type, const void *value); +void DelResult(RESULT * result); +RESULT *SetResult(RESULT ** result, const int type, const void *value); -double R2N (RESULT *result); -char* R2S (RESULT *result); +double R2N(RESULT * result); +char *R2S(RESULT * result); -int Compile (const char *expression, void **tree); -int Eval (void *tree, RESULT *result); -void DelTree (void *tree); +int Compile(const char *expression, void **tree); +int Eval(void *tree, RESULT * result); +void DelTree(void *tree); #endif |