From d7565f9da9ada7a0aa90abdb6d8d1ba192075791 Mon Sep 17 00:00:00 2001 From: james <> Date: Thu, 6 Mar 2008 16:49:05 +0000 Subject: *** empty log message *** --- src/tty.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/tty.c') diff --git a/src/tty.c b/src/tty.c index 366223e..43b5e86 100644 --- a/src/tty.c +++ b/src/tty.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.22 2008/03/06 16:49:05 james + * *** empty log message *** + * * Revision 1.21 2008/03/03 06:04:42 james * *** empty log message *** * @@ -525,10 +528,11 @@ tty_parser_new (void) return p; } -void +int tty_parse (Context * c, uint8_t * buf, int len) { TTY_Parser *p; + int err=0; p = c->tp; @@ -542,7 +546,7 @@ tty_parse (Context * c, uint8_t * buf, int len) { case DLE: tty_bit_analyse (c, 0, *buf); - utf8_parse (c, *buf); + err+=utf8_parse (c, *buf); break; case 0: p->in_errmark = 1; @@ -563,9 +567,9 @@ tty_parse (Context * c, uint8_t * buf, int len) tty_analyse (c); - utf8_parse (c, *buf); + err+=utf8_parse (c, *buf); - utf8_parse (c, SYM_CHAR_RESET); + err+=utf8_parse (c, SYM_CHAR_RESET); } else if (*buf == DLE) @@ -579,9 +583,10 @@ tty_parse (Context * c, uint8_t * buf, int len) tty_analyse (c); - utf8_parse (c, *buf); + err+=utf8_parse (c, *buf); } buf++; } +return err; } -- cgit v1.2.3