diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-06-26 09:27:21 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-06-26 09:27:21 +0000 |
commit | 1338a264d57ad5f74ce6f8283966020a8e978d2e (patch) | |
tree | b14a2a596dd615ae17880b7007d6b2b78191af94 /plugin_math.c | |
parent | 55abb63f11967a147d26e4654cbbd7ab3f01a558 (diff) | |
download | lcd4linux-1338a264d57ad5f74ce6f8283966020a8e978d2e.tar.gz |
[lcd4linux @ 2004-06-26 09:27:20 by reinelt]
added '-W' to CFLAGS
changed all C++ comments to C ones ('//' => '/* */')
cleaned up a lot of signed/unsigned mistakes
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@480 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugin_math.c')
-rw-r--r-- | plugin_math.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/plugin_math.c b/plugin_math.c index 6988a2b..e93c859 100644 --- a/plugin_math.c +++ b/plugin_math.c @@ -1,4 +1,4 @@ -/* $Id: plugin_math.c,v 1.4 2004/03/06 20:31:16 reinelt Exp $ +/* $Id: plugin_math.c,v 1.5 2004/06/26 09:27:21 reinelt Exp $ * * math plugin * @@ -22,6 +22,12 @@ * * * $Log: plugin_math.c,v $ + * Revision 1.5 2004/06/26 09:27:21 reinelt + * + * added '-W' to CFLAGS + * changed all C++ comments to C ones ('//' => '/* */') + * cleaned up a lot of signed/unsigned mistakes + * * Revision 1.4 2004/03/06 20:31:16 reinelt * Complete rewrite of the evaluator to get rid of the code * from mark Morley (because of license issues). @@ -124,11 +130,11 @@ static void my_max (RESULT *result, RESULT *arg1, RESULT *arg2) int plugin_init_math (void) { - // set some handy constants + /* set some handy constants */ SetVariableNumeric ("Pi", M_PI); SetVariableNumeric ("e", M_E); - // register some basic math functions + /* register some basic math functions */ AddFunction ("sqrt", 1, my_sqrt); AddFunction ("exp", 1, my_exp); AddFunction ("ln", 1, my_ln); @@ -137,7 +143,7 @@ int plugin_init_math (void) AddFunction ("cos", 1, my_cos); AddFunction ("tan", 1, my_tan); - // min, max + /* min, max */ AddFunction ("min", 2, my_min); AddFunction ("max", 2, my_max); |