diff options
Diffstat (limited to 'src/tty.c')
-rw-r--r-- | src/tty.c | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.23 2008/03/06 16:49:39 james + * *** empty log message *** + * * Revision 1.22 2008/03/06 16:49:05 james * *** empty log message *** * @@ -528,11 +531,11 @@ tty_parser_new (void) return p; } -int +int tty_parse (Context * c, uint8_t * buf, int len) { TTY_Parser *p; - int err=0; + int err = 0; p = c->tp; @@ -546,7 +549,7 @@ tty_parse (Context * c, uint8_t * buf, int len) { case DLE: tty_bit_analyse (c, 0, *buf); - err+=utf8_parse (c, *buf); + err += utf8_parse (c, *buf); break; case 0: p->in_errmark = 1; @@ -567,9 +570,9 @@ tty_parse (Context * c, uint8_t * buf, int len) tty_analyse (c); - err+=utf8_parse (c, *buf); + err += utf8_parse (c, *buf); - err+=utf8_parse (c, SYM_CHAR_RESET); + err += utf8_parse (c, SYM_CHAR_RESET); } else if (*buf == DLE) @@ -583,10 +586,10 @@ tty_parse (Context * c, uint8_t * buf, int len) tty_analyse (c); - err+=utf8_parse (c, *buf); + err += utf8_parse (c, *buf); } buf++; } -return err; + return err; } |