diff options
author | james <> | 2008-03-06 16:49:05 +0000 |
---|---|---|
committer | james <> | 2008-03-06 16:49:05 +0000 |
commit | d7565f9da9ada7a0aa90abdb6d8d1ba192075791 (patch) | |
tree | 5a77a1803fc3ab97fb02e0dc6ee748e09deba03d /src/tty.c | |
parent | d32c10b1eb919c4b82f882bcf29b06b287e2b50a (diff) | |
download | sympathy-d7565f9da9ada7a0aa90abdb6d8d1ba192075791.tar.gz sympathy-d7565f9da9ada7a0aa90abdb6d8d1ba192075791.tar.bz2 sympathy-d7565f9da9ada7a0aa90abdb6d8d1ba192075791.zip |
*** empty log message ***
Diffstat (limited to 'src/tty.c')
-rw-r--r-- | src/tty.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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; } |