aboutsummaryrefslogtreecommitdiffstats
path: root/README (follow)
AgeCommit message (Collapse)AuthorFilesLines
2005-01-09[lcd4linux @ 2005-01-09 10:53:22 by reinelt]reinelt1-2/+2
small type in plugin_uname fixed new homepage lcd4linux.bulix.org
2003-08-01[lcd4linux @ 2003-08-01 05:15:42 by reinelt]reinelt1-284/+3
last cleanups for 0.9.9
2002-04-29[lcd4linux @ 2002-04-29 11:00:25 by reinelt]reinelt1-1/+8
added Toshiba T6963 driver added ndelay() with nanosecond resolution
2001-09-05[lcd4linux @ 2001-09-05 09:38:52 by reinelt]reinelt1-1/+12
2001-05-27[lcd4linux @ 2001-05-27 17:32:35 by reinelt]reinelt1-47/+50
updated README with the seti@home client stuff
2001-03-16[lcd4linux @ 2001-03-16 16:40:17 by ltoetsch]ltoetsch1-1/+6
implemented time bar
2001-03-15[lcd4linux @ 2001-03-15 14:25:05 by ltoetsch]ltoetsch1-2/+12
added unread/total news
2001-03-14[lcd4linux @ 2001-03-14 13:19:29 by ltoetsch]ltoetsch1-5/+20
Added pop3/imap4 mail support
2001-03-13[lcd4linux @ 2001-03-13 07:41:22 by reinelt]reinelt1-1/+3
added NEWS file
2001-03-09[lcd4linux @ 2001-03-09 14:24:49 by ltoetsch]ltoetsch1-2/+3
exec: Scale_x ->Min/Max_x
2001-03-09[lcd4linux @ 2001-03-09 13:08:11 by ltoetsch]ltoetsch1-2/+13
Added Text driver
2001-03-08[lcd4linux @ 2001-03-08 15:25:38 by ltoetsch]ltoetsch1-43/+62
improved exec
2001-03-07[lcd4linux @ 2001-03-07 18:10:21 by ltoetsch]ltoetsch1-3/+23
added e(x)ec commands
2001-03-02[lcd4linux @ 2001-03-02 10:18:03 by ltoetsch]ltoetsch1-1/+4
added /proc/apm battery stat
2001-02-16[lcd4linux @ 2001-02-16 08:23:09 by reinelt]reinelt1-1/+2
new token 'ic' (ISDN connected) by Carsten Nau <info@cnau.de>
2000-11-28[lcd4linux @ 2000-11-28 16:46:11 by reinelt]reinelt1-5/+5
first try to support display of SIN router
2000-08-10[lcd4linux @ 2000-08-10 09:44:09 by reinelt]reinelt1-2/+2
new debugging scheme: error(), info(), debug() uses syslog if in daemon mode
2000-08-09[lcd4linux @ 2000-08-09 14:14:11 by reinelt]reinelt1-4/+5
new switch -F (do not fork) added automatic forking if -F not specified
2000-08-09[lcd4linux @ 2000-08-09 09:50:29 by reinelt]reinelt1-11/+30
opened 0.98 development removed driver-specific signal-handlers added 'quit'-function to driver structure added global signal-handler
2000-04-15[lcd4linux @ 2000-04-15 16:56:52 by reinelt]reinelt1-3/+6
moved delay loops to udelay.c renamed -d (debugging) switch to -v (verbose) new switch -d to calibrate delay loop 'Delay' entry for HD44780 back again delay loops will not calibrate automatically, because this will fail with hich CPU load
2000-04-15[lcd4linux @ 2000-04-15 11:13:54 by reinelt]reinelt1-3/+4
added '-d' (debugging) switch added several debugging messages removed config entry 'Delay' for HD44780 driver delay loop for HD44780 will be calibrated automatically
2000-04-10[lcd4linux @ 2000-04-10 04:40:53 by reinelt]reinelt1-5/+13
minor changes and cleanups
2000-04-03[lcd4linux @ 2000-04-03 04:46:38 by reinelt]reinelt1-1/+16
added '-c key=val' option
2000-03-26[lcd4linux @ 2000-03-26 19:03:52 by reinelt]reinelt1-1/+3
more Pixmap renaming quoting of '#' in config file
2000-03-19[lcd4linux @ 2000-03-19 08:41:28 by reinelt]reinelt1-0/+130
documentation available! README, README.MatrixOrbital, README.Drivers added Skeleton.c as a starting point for new drivers
* * Revision 1.7 2005/01/18 06:30:23 reinelt * added (C) to all copyright statements * * Revision 1.6 2004/06/26 12:05:00 reinelt * * uh-oh... the last CVS log message messed up things a lot... * * 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). * The new Evaluator does a pre-compile of expressions, and * stores them in trees. Therefore it should be reasonable faster... * * Revision 1.3 2004/03/03 03:47:04 reinelt * big patch from Martin Hejl: * - use qprintf() where appropriate * - save CPU cycles on gettimeofday() * - add quit() functions to free allocated memory * - fixed lots of memory leaks * * Revision 1.2 2004/01/29 04:40:02 reinelt * every .c file includes "config.h" now * * Revision 1.1 2003/12/19 05:50:34 reinelt * added plugin_math.c and plugin_string.c * */ /* * exported functions: * * int plugin_init_math (void) * adds some handy constants and functions * */ #include "config.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include "debug.h" #include "plugin.h" static void my_sqrt(RESULT * result, RESULT * arg1) { double value = sqrt(R2N(arg1)); SetResult(&result, R_NUMBER, &value); } static void my_exp(RESULT * result, RESULT * arg1) { double value = exp(R2N(arg1)); SetResult(&result, R_NUMBER, &value); } static void my_ln(RESULT * result, RESULT * arg1) { double value = log(R2N(arg1)); SetResult(&result, R_NUMBER, &value); } static void my_log(RESULT * result, RESULT * arg1) { double value = log10(R2N(arg1)); SetResult(&result, R_NUMBER, &value); } static void my_sin(RESULT * result, RESULT * arg1) { double value = sin(R2N(arg1)); SetResult(&result, R_NUMBER, &value); } static void my_cos(RESULT * result, RESULT * arg1) { double value = cos(R2N(arg1)); SetResult(&result, R_NUMBER, &value); } static void my_tan(RESULT * result, RESULT * arg1) { double value = tan(R2N(arg1)); SetResult(&result, R_NUMBER, &value); } static void my_min(RESULT * result, RESULT * arg1, RESULT * arg2) { double a1 = R2N(arg1); double a2 = R2N(arg2); double value = a1 < a2 ? a1 : a2; SetResult(&result, R_NUMBER, &value); } static void my_max(RESULT * result, RESULT * arg1, RESULT * arg2) { double a1 = R2N(arg1); double a2 = R2N(arg2); double value = a1 > a2 ? a1 : a2; SetResult(&result, R_NUMBER, &value); } static void my_floor(RESULT * result, RESULT * arg) { double value = floor(R2N(arg)); SetResult(&result, R_NUMBER, &value); } static void my_ceil(RESULT * result, RESULT * arg) { double value = ceil(R2N(arg)); SetResult(&result, R_NUMBER, &value); } int plugin_init_math(void) { /* set some handy constants */ SetVariableNumeric("Pi", M_PI); SetVariableNumeric("e", M_E); /* register some basic math functions */ AddFunction("sqrt", 1, my_sqrt); AddFunction("exp", 1, my_exp); AddFunction("ln", 1, my_ln); AddFunction("log", 1, my_log); AddFunction("sin", 1, my_sin); AddFunction("cos", 1, my_cos); AddFunction("tan", 1, my_tan); /* min, max */ AddFunction("min", 2, my_min); AddFunction("max", 2, my_max); /* floor, ceil */ AddFunction("floor", 1, my_floor); AddFunction("ceil", 1, my_ceil); return 0; } void plugin_exit_math(void) { }