Commit Graph

46 Commits

Author SHA1 Message Date
michael
e3dbb3fc1d evaluator bug fixed (thanks to lleo19)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1038 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-08-21 03:33:16 +00:00
michael
b66426fa00 add octal escape sequences to evaluator
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@981 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-29 06:21:40 +00:00
michael
2b538e055a evaluator: escape sequences in strings (fix for ticket #145)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@979 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-26 05:18:07 +00:00
michael
dbd9eb8769 unused array 'tokenNames' removed
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@946 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-06 06:55:32 +00:00
michael
78a41e60d3 new string operators eq ne gt ge lt le
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@940 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2009-01-04 14:16:01 +00:00
michael
10ec19da9f ported r839 from volker_dev
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@927 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-12-31 06:34:15 +00:00
michael
503d5e3b7f short circuit evaluation ported from volker_dev (r820,r822,r824)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@917 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2008-12-31 06:05:08 +00:00
michael
6d5d1055ea email address changed
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@840 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-09-09 12:17:42 +00:00
michael
2fcc2950e4 strndup() replacement
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@805 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-06-17 06:06:19 +00:00
michael
4be3c7e95f new function 'decode()'
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@754 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-01-21 06:19:40 +00:00
michael
38b070776b minor fixes to evaluator
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@750 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-01-20 06:58:56 +00:00
michael
a9d650fb4d removed all tags
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@727 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-01-14 08:21:55 +00:00
michael
eff1e17fc3 svn properties fixed
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@726 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2007-01-14 07:58:10 +00:00
reinelt
4a791ebe74 [lcd4linux @ 2006-09-29 04:48:21 by reinelt]
image widget uses properties now; new property 'reload'

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@722 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2006-09-29 04:48:22 +00:00
reinelt
0bcf2d3cb8 [lcd4linux @ 2006-09-14 04:08:54 by reinelt]
variables use a static list, no realloc, linear search

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@714 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2006-09-14 04:08:54 +00:00
geronet
f5ca093650 [lcd4linux @ 2006-02-25 13:36:33 by geronet]
updated indent.sh, applied coding style

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@647 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2006-02-25 13:36:33 +00:00
reinelt
de2e1d3b69 [lcd4linux @ 2006-01-30 12:53:07 by reinelt]
replaced strncpy with strcpy where possible

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@631 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2006-01-30 12:53:08 +00:00
reinelt
f521492608 [lcd4linux @ 2006-01-30 06:11:36 by reinelt]
changed Result->length to Result->size

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@627 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2006-01-30 06:11:36 +00:00
reinelt
2523e50fbb [lcd4linux @ 2006-01-30 05:47:34 by reinelt]
graphic subsystem changed to full-color RGBA

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@626 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2006-01-30 05:47:38 +00:00
harbaum
5eca256613 [lcd4linux @ 2006-01-28 15:36:17 by harbaum]
Fix: string termination bug in eval()

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@625 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2006-01-28 15:36:18 +00:00
reinelt
ab1f95d24f [lcd4linux @ 2006-01-21 09:40:20 by reinelt]
Big Memory Leak in Evaluator fixed (thanks to Oliver Gehrke)

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@617 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2006-01-21 09:40:20 +00:00
reinelt
dbf5d92605 [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
2005-05-08 04:32:45 +00:00
reinelt
f650bc134e [lcd4linux @ 2005-03-30 04:57:50 by reinelt]
Evaluator speedup: use bsearch for finding functions and variables

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@521 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2005-03-30 04:57:50 +00:00
reinelt
ae6d2a0a26 [lcd4linux @ 2005-01-18 06:30:21 by reinelt]
added (C) to all copyright statements

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@509 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2005-01-18 06:30:24 +00:00
reinelt
d7461c4f0e [lcd4linux @ 2004-06-26 12:04:59 by reinelt]
uh-oh... the last CVS log message messed up things a lot...

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@481 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-06-26 12:05:00 +00:00
reinelt
1338a264d5 [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
2004-06-26 09:27:21 +00:00
reinelt
7ac3e2a7d2 [lcd4linux @ 2004-06-20 10:09:52 by reinelt]
'const'ified the whole source

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@476 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-06-20 10:09:56 +00:00
reinelt
bbfa7a3b4f [lcd4linux @ 2004-04-12 11:12:24 by reinelt]
added plugin_isdn, removed old ISDN client
fixed some real bad bugs in the evaluator

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@418 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-04-12 11:12:26 +00:00
reinelt
7d5c275cb8 [lcd4linux @ 2004-03-11 06:39:58 by reinelt]
big patch from Martin:
- reuse filehandles
- memory leaks fixed
- earlier busy-flag checking with HD44780
- reuse memory for strings in RESULT and hash
- netdev_fast to wavid time-consuming regex

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@393 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-03-11 06:39:59 +00:00
hejl
f54facba61 [lcd4linux @ 2004-03-08 18:45:52 by hejl]
fixed segfault when using string concatenation

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@390 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-03-08 18:45:52 +00:00
reinelt
82c5b76636 [lcd4linux @ 2004-03-08 04:33:08 by reinelt]
string concatenation fixed

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@388 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-03-08 04:33:08 +00:00
reinelt
c008748638 [lcd4linux @ 2004-03-06 20:31:16 by 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...

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@387 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-03-06 20:31:16 +00:00
reinelt
9ef4282e9e [lcd4linux @ 2004-03-03 03:47:04 by 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

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@384 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-03-03 03:47:04 +00:00
reinelt
3037be8a1e [lcd4linux @ 2004-02-26 21:42:45 by reinelt]
memory leak fixes from Martin

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@377 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-02-26 21:42:45 +00:00
reinelt
2e458ba41b [lcd4linux @ 2004-02-05 07:10:23 by reinelt]
evaluator function names are no longer case-sensitive
Crystalfontz Fan PWM control, Fan RPM monitoring, temperature monitoring

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@356 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-02-05 07:10:23 +00:00
reinelt
f040b60270 [lcd4linux @ 2004-01-30 20:57:55 by reinelt]
HD44780 patch from Martin Hejl
dmalloc integrated

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@348 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-30 20:57:56 +00:00
reinelt
c55aed7370 [lcd4linux @ 2004-01-29 04:40:02 by reinelt]
every .c file includes "config.h" now

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@344 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-29 04:40:03 +00:00
reinelt
8bd25913d4 [lcd4linux @ 2004-01-15 07:47:02 by reinelt]
debian/ postinst and watch added (did CVS forget about them?)
evaluator: conditional expressions (a?b:c) added
text widget nearly finished

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@313 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-15 07:47:03 +00:00
reinelt
14bc006ada [lcd4linux @ 2004-01-12 03:51:01 by reinelt]
evaluating the 'Variables' section in the config file

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@307 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-12 03:51:01 +00:00
reinelt
cb467898be [lcd4linux @ 2004-01-07 10:15:41 by reinelt]
small glitch in evaluator fixed
made config table sorted and access with bsearch(),
which should be much faster

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@295 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-07 10:15:41 +00:00
reinelt
654ac10fea [lcd4linux @ 2004-01-06 23:01:37 by reinelt]
more copyright issues

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@294 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-06 23:01:37 +00:00
reinelt
89942b18b7 [lcd4linux @ 2004-01-06 17:33:45 by reinelt]
Evaluator: functions with variable argument lists
Evaluator: plugin_sample.c and README.Plugins added

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@288 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-06 17:33:45 +00:00
reinelt
5b3068696a [lcd4linux @ 2004-01-06 15:19:12 by reinelt]
Evaluator rearrangements...

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@287 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2004-01-06 15:19:16 +00:00
reinelt
3f0c098296 [lcd4linux @ 2003-10-11 06:01:52 by reinelt]
renamed expression.{c,h} to client.{c,h}
added config file client
new functions 'AddNumericVariable()' and 'AddStringVariable()'
new parameter '-i' for interactive mode

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@264 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2003-10-11 06:01:53 +00:00
reinelt
f6b9e43347 [lcd4linux @ 2003-10-06 05:47:27 by reinelt]
operators: ==, \!=, <=, >=

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@257 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2003-10-06 05:47:27 +00:00
reinelt
9cda8378d1 [lcd4linux @ 2003-10-06 04:34:06 by reinelt]
expression evaluator added

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@256 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
2003-10-06 04:34:06 +00:00