Tsukada
ttsuk****@users*****
2002年 5月 26日 (日) 01:34:22 JST
ttsukada 02/05/26 01:34:22 Modified: ext/mbstring/mbfl filter_ucs.c Log: change the mode usage (added linefeed mode) Revision Changes Path 1.2 +8 -8 php4/ext/mbstring/mbfl/filter_ucs.c Index: filter_ucs.c =================================================================== RCS file: /cvsroot/php-i18n/php4/ext/mbstring/mbfl/filter_ucs.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- filter_ucs.c 20 May 2002 11:07:44 -0000 1.1 +++ filter_ucs.c 25 May 2002 16:34:22 -0000 1.2 @@ -224,7 +224,7 @@ CK((*filter->output_function)((c >> 8) & 0xff, filter->stream_resource)); CK((*filter->output_function)(c & 0xff, 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)); } } @@ -244,7 +244,7 @@ CK((*filter->output_function)((c >> 16) & 0xff, filter->stream_resource)); CK((*filter->output_function)((c >> 24) & 0xff, 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)); } } @@ -305,7 +305,7 @@ CK((*filter->output_function)((c >> 8) & 0xff, filter->stream_resource)); CK((*filter->output_function)(c & 0xff, 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)); } } @@ -323,7 +323,7 @@ CK((*filter->output_function)(c & 0xff, filter->stream_resource)); CK((*filter->output_function)((c >> 8) & 0xff, 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)); } } @@ -449,7 +449,7 @@ CK((*filter->output_function)((n >> 8) & 0xff, filter->stream_resource)); CK((*filter->output_function)(n & 0xff, 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)); } } @@ -516,7 +516,7 @@ CK((*filter->output_function)(n & 0xff, filter->stream_resource)); CK((*filter->output_function)((n >> 8) & 0xff, 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)); } } @@ -748,7 +748,7 @@ CK((*filter->filter_function)(s, filter)); return c; } 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)); } return c; @@ -1054,7 +1054,7 @@ CK((*filter->filter_function)(s, filter)); return c; } 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)); } return c;