diff options
author | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-03-11 06:39:59 +0000 |
---|---|---|
committer | reinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2004-03-11 06:39:59 +0000 |
commit | 7d5c275cb8df79637212dc89ab980dabfc39a6df (patch) | |
tree | e3f51842280e06133de00726fa987765d4464f10 /lcd4linux.c | |
parent | a3501369a917c15bdba91811a32c271bbc5dc5b0 (diff) | |
download | lcd4linux-7d5c275cb8df79637212dc89ab980dabfc39a6df.tar.gz |
[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
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@393 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'lcd4linux.c')
-rw-r--r-- | lcd4linux.c | 15 |
1 files changed, 12 insertions, 3 deletions
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> "); } |