* transcode.c (transcode_restartable0): refix can't build with VC9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bc4c51ecce
commit
e54f880643
@ -1,3 +1,7 @@
|
|||||||
|
Tue Jun 16 20:07:09 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* transcode.c (transcode_restartable0): refix can't build with VC9.
|
||||||
|
|
||||||
Tue Jun 16 16:09:59 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
|
Tue Jun 16 16:09:59 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
|
||||||
|
|
||||||
* parse.y (parser_read_escape, parser_tokadd_escape):
|
* parse.y (parser_read_escape, parser_tokadd_escape):
|
||||||
|
23
transcode.c
23
transcode.c
@ -540,15 +540,20 @@ transcode_restartable0(const unsigned char **in_pos, unsigned char **out_pos,
|
|||||||
follow_info:
|
follow_info:
|
||||||
switch (next_info & 0x1F) {
|
switch (next_info & 0x1F) {
|
||||||
case NOMAP:
|
case NOMAP:
|
||||||
{
|
{
|
||||||
const unsigned char *pend = in_p;
|
const unsigned char *p = inchar_start;
|
||||||
in_p = inchar_start;
|
writebuf_off = 0;
|
||||||
while (in_p < pend) {
|
while (p < in_p) {
|
||||||
next_byte = (unsigned char)*in_p++;
|
TRANSCODING_WRITEBUF(tc)[writebuf_off++] = (unsigned char)*p++;
|
||||||
SUSPEND_OBUF(3); *out_p++ = next_byte;
|
}
|
||||||
}
|
writebuf_len = writebuf_off;
|
||||||
}
|
writebuf_off = 0;
|
||||||
continue;
|
while (writebuf_off < writebuf_len) {
|
||||||
|
SUSPEND_OBUF(3);
|
||||||
|
*out_p++ = TRANSCODING_WRITEBUF(tc)[writebuf_off++];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
continue;
|
||||||
case 0x00: case 0x04: case 0x08: case 0x0C:
|
case 0x00: case 0x04: case 0x08: case 0x0C:
|
||||||
case 0x10: case 0x14: case 0x18: case 0x1C:
|
case 0x10: case 0x14: case 0x18: case 0x1C:
|
||||||
SUSPEND_AFTER_OUTPUT(25);
|
SUSPEND_AFTER_OUTPUT(25);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user