aboutsummaryrefslogtreecommitdiffstats
path: root/widget_bar.h
diff options
context:
space:
mode:
authorreinelt <>2004-03-06 20:31:16 +0000
committerreinelt <>2004-03-06 20:31:16 +0000
commit2f5e70edeffe4eb649d3a0577e3913cc5fcda6d7 (patch)
treee8d53c15a9184b19109453e56cf4fc8f8cfac6b0 /widget_bar.h
parentf2539b94c0c65abd21168a509a27228696b7f4ee (diff)
downloadlcd4linux-2f5e70edeffe4eb649d3a0577e3913cc5fcda6d7.tar.gz
[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...
Diffstat (limited to 'widget_bar.h')
-rw-r--r--widget_bar.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/widget_bar.h b/widget_bar.h
index 977df98..f2e51e1 100644
--- a/widget_bar.h
+++ b/widget_bar.h
@@ -1,4 +1,4 @@
-/* $Id: widget_bar.h,v 1.2 2004/01/20 04:51:39 reinelt Exp $
+/* $Id: widget_bar.h,v 1.3 2004/03/06 20:31:16 reinelt Exp $
*
* bar widget handling
*
@@ -23,6 +23,12 @@
*
*
* $Log: widget_bar.h,v $
+ * Revision 1.3 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.2 2004/01/20 04:51:39 reinelt
* moved generic stuff from drv_MatrixOrbital to drv_generic
* implemented new-stylish bars which are nearly finished
@@ -43,6 +49,10 @@ typedef struct WIDGET_BAR {
char *expression2; // expression that delivers the value
char *expr_min; // expression that delivers the minimum value
char *expr_max; // expression that delivers the maximum value
+ void *tree1; // pre-compiled expression that delivers the value
+ void *tree2; // pre-compiled expression that delivers the value
+ void *tree_min; // pre-compiled expression that delivers the minimum value
+ void *tree_max; // pre-compiled expression that delivers the maximum value
DIRECTION direction; // bar direction
int length; // bar length
int update; // update interval (msec)