aboutsummaryrefslogtreecommitdiffstats
path: root/evaluator.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-01-07 10:15:41 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2004-01-07 10:15:41 +0000
commitcb467898be6270f34892aab862db49cc3bb169cb (patch)
tree45b71714f019bc4e375501faa00ced22625ddf83 /evaluator.c
parent654ac10fea60f352a7f79955f93ea8da75517638 (diff)
downloadlcd4linux-cb467898be6270f34892aab862db49cc3bb169cb.tar.gz
[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
Diffstat (limited to 'evaluator.c')
-rw-r--r--evaluator.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/evaluator.c b/evaluator.c
index c7d4248..2b84dd6 100644
--- a/evaluator.c
+++ b/evaluator.c
@@ -1,4 +1,4 @@
-/* $Id: evaluator.c,v 1.6 2004/01/06 23:01:37 reinelt Exp $
+/* $Id: evaluator.c,v 1.7 2004/01/07 10:15:41 reinelt Exp $
*
* expression evaluation
*
@@ -10,6 +10,11 @@
* FIXME: GPL or not GPL????
*
* $Log: evaluator.c,v $
+ * Revision 1.7 2004/01/07 10:15:41 reinelt
+ * small glitch in evaluator fixed
+ * made config table sorted and access with bsearch(),
+ * which should be much faster
+ *
* Revision 1.6 2004/01/06 23:01:37 reinelt
* more copyright issues
*
@@ -302,7 +307,7 @@ static int v_lookup (const void *a, const void *b)
// qsort compare function for variables
static int v_sort (const void *a, const void *b)
{
- VARIABLE *va=(VARIABLE*)b;
+ VARIABLE *va=(VARIABLE*)a;
VARIABLE *vb=(VARIABLE*)b;
return strcmp(va->name, vb->name);