From 1338a264d57ad5f74ce6f8283966020a8e978d2e Mon Sep 17 00:00:00 2001 From: reinelt Date: Sat, 26 Jun 2004 09:27:21 +0000 Subject: [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 --- plugin_math.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'plugin_math.c') 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); -- cgit v1.2.3