From cb467898be6270f34892aab862db49cc3bb169cb Mon Sep 17 00:00:00 2001 From: reinelt Date: Wed, 7 Jan 2004 10:15:41 +0000 Subject: [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 --- evaluator.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'evaluator.c') 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); -- cgit v1.2.3