aboutsummaryrefslogtreecommitdiffstats
path: root/evaluator.c
diff options
context:
space:
mode:
authorreinelt <>2004-01-07 10:15:41 +0000
committerreinelt <>2004-01-07 10:15:41 +0000
commit895982032e2b237e9810dd11b7c70a66e1a9c34c (patch)
tree45b71714f019bc4e375501faa00ced22625ddf83 /evaluator.c
parenta52cd7cec845dcb9e7a069b6ff4a2a0e88679ea7 (diff)
downloadlcd4linux-895982032e2b237e9810dd11b7c70a66e1a9c34c.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
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);