ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/JSON-XS/XS.xs
(Generate patch)

Comparing JSON-XS/XS.xs (file contents):
Revision 1.100 by root, Sat Sep 5 23:00:56 2009 UTC vs.
Revision 1.101 by root, Tue Sep 8 18:00:03 2009 UTC

949 else if (expect_true (ch >= 0x20 && ch < 0x80)) 949 else if (expect_true (ch >= 0x20 && ch < 0x80))
950 *cur++ = ch; 950 *cur++ = ch;
951 else if (ch >= 0x80) 951 else if (ch >= 0x80)
952 { 952 {
953 STRLEN clen; 953 STRLEN clen;
954 UV uch;
955 954
956 --dec_cur; 955 --dec_cur;
957 956
958 uch = decode_utf8 (dec_cur, dec->end - dec_cur, &clen); 957 decode_utf8 (dec_cur, dec->end - dec_cur, &clen);
959 if (clen == (STRLEN)-1) 958 if (clen == (STRLEN)-1)
960 ERR ("malformed UTF-8 character in JSON string"); 959 ERR ("malformed UTF-8 character in JSON string");
961 960
962 do 961 do
963 *cur++ = *dec_cur++; 962 *cur++ = *dec_cur++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines