Tsukada
ttsuk****@users*****
2002年 5月 26日 (日) 01:31:21 JST
ttsukada 02/05/26 01:31:21 Modified: ext/mbstring/mbfl filter_8859.c Log: change the mode usage (added linefeed mode) Revision Changes Path 1.2 +2 -2 php4/ext/mbstring/mbfl/filter_8859.c Index: filter_8859.c =================================================================== RCS file: /cvsroot/php-i18n/php4/ext/mbstring/mbfl/filter_8859.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- filter_8859.c 20 May 2002 11:07:44 -0000 1.1 +++ filter_8859.c 25 May 2002 16:31:21 -0000 1.2 @@ -66,7 +66,7 @@ if (c >= 0 && c < 0x100) { CK((*filter->output_function)(c, filter->stream_resource)); } else { - if (filter->illegal_mode != MBFL_CONVFILTER_ILLEGAL_MODE_NONE) { + if ((filter->mode & MBFL_CONVFILTER_ILLEGAL_MODE_NONE) == 0) { CK(mbfl_filt_conv_illegal_output(c, filter)); } } @@ -166,7 +166,7 @@ if (code >= 0) { CK((*filter->output_function)(code, filter->stream_resource)); } else { - if (filter->illegal_mode != MBFL_CONVFILTER_ILLEGAL_MODE_NONE) { + if ((filter->mode & MBFL_CONVFILTER_ILLEGAL_MODE_NONE) == 0) { CK(mbfl_filt_conv_illegal_output(c, filter)); } }