From b241d736825d0469b7716847ee4ef5de269d2423 Mon Sep 17 00:00:00 2001 From: reinelt <> Date: Thu, 11 Mar 2004 06:39:59 +0000 Subject: [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 --- lcd4linux.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'lcd4linux.c') diff --git a/lcd4linux.c b/lcd4linux.c index ab71fdb..cd48c99 100644 --- a/lcd4linux.c +++ b/lcd4linux.c @@ -1,4 +1,4 @@ -/* $Id: lcd4linux.c,v 1.67 2004/03/06 20:31:16 reinelt Exp $ +/* $Id: lcd4linux.c,v 1.68 2004/03/11 06:39:59 reinelt Exp $ * * LCD4Linux * @@ -22,6 +22,14 @@ * * * $Log: lcd4linux.c,v $ + * Revision 1.68 2004/03/11 06:39:59 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 + * * Revision 1.67 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). @@ -576,7 +584,7 @@ int main (int argc, char *argv[]) if (interactive) { char line[1024]; void *tree; - RESULT result = {0, 0.0, NULL}; + RESULT result = {0, 0, 0, NULL}; printf("\neval> "); for(fgets(line, 1024, stdin); !feof(stdin); fgets(line, 1024, stdin)) { @@ -590,7 +598,8 @@ int main (int argc, char *argv[]) printf ("'%s'\n", R2S(&result)); } DelResult (&result); - } + } + DelTree(tree); } printf("eval> "); } -- cgit v1.2.3