cvs: php4 /ext/ircg ircg_scanner.re

From: Date: Sat, 26 Apr 2003 20:43:16 +0000
Subject: cvs: php4 /ext/ircg ircg_scanner.re
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20517@lists.php.net to get a copy of this message
sas Sat Apr 26 16:43:16 2003 EDT Modified files: /php4/ext/ircg ircg_scanner.re Log: Add support for "SI" code 15/017 Index: php4/ext/ircg/ircg_scanner.re diff -u php4/ext/ircg/ircg_scanner.re:1.22 php4/ext/ircg/ircg_scanner.re:1.23 --- php4/ext/ircg/ircg_scanner.re:1.22 Sat Apr 19 14:03:47 2003 +++ php4/ext/ircg/ircg_scanner.re Sat Apr 26 16:43:16 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ircg_scanner.re,v 1.22 2003/04/19 18:03:47 sas Exp $ */ +/* $Id: ircg_scanner.re,v 1.23 2003/04/26 20:43:16 sas Exp $ */ #include "php_ircg_alloc.h" @@ -77,6 +77,7 @@ underline = "\037"; italic = ""; ircnl = "\036"; +rst = "\017"; winquotes = [\204\223\224]; */ @@ -200,6 +201,14 @@ smart_str_appends_ex(result, entity, 1); \ } while (0) +static void do_reset(STD_PARA) +{ + finish_color_stuff(STD_ARGS); + handle_bold(STD_ARGS, 1); + handle_underline(STD_ARGS, 1); + handle_italic(STD_ARGS, 1); +} + void ircg_mirc_color(const char *msg, smart_str *result, size_t msg_len, int auto_links, int gen_br) { const char *end, *xp, *q, *start; @@ -229,6 +238,7 @@ bold { handle_bold(STD_ARGS, 0); goto state_plain; } underline { handle_underline(STD_ARGS, 0); goto state_plain; } italic { handle_italic(STD_ARGS, 0); goto state_plain; } + rst { do_reset(STD_ARGS); goto state_plain; } anynoneof { PASSTHRU(); goto state_plain; } */ @@ -266,8 +276,5 @@ stop: smart_str_free_ex(&mctx.scheme, 1); - finish_color_stuff(STD_ARGS); - handle_bold(STD_ARGS, 1); - handle_underline(STD_ARGS, 1); - handle_italic(STD_ARGS, 1); + do_reset(STD_ARGS); }

« previous php.cvs (#20517) next »