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.68 by root, Thu Nov 29 08:37:11 2007 UTC vs.
Revision 1.69 by root, Wed Dec 5 10:59:28 2007 UTC

1603 SvREFCNT_dec (self->cb_sk_object); 1603 SvREFCNT_dec (self->cb_sk_object);
1604 SvREFCNT_dec (self->cb_object); 1604 SvREFCNT_dec (self->cb_object);
1605 1605
1606PROTOTYPES: ENABLE 1606PROTOTYPES: ENABLE
1607 1607
1608void to_json (SV *scalar) 1608void encode_json (SV *scalar)
1609 PPCODE: 1609 PPCODE:
1610{ 1610{
1611 JSON json = { F_DEFAULT | F_UTF8 }; 1611 JSON json = { F_DEFAULT | F_UTF8 };
1612 XPUSHs (encode_json (scalar, &json)); 1612 XPUSHs (encode_json (scalar, &json));
1613} 1613}
1614 1614
1615void from_json (SV *jsonstr) 1615void decode_json (SV *jsonstr)
1616 PPCODE: 1616 PPCODE:
1617{ 1617{
1618 JSON json = { F_DEFAULT | F_UTF8 }; 1618 JSON json = { F_DEFAULT | F_UTF8 };
1619 XPUSHs (decode_json (jsonstr, &json, 0)); 1619 XPUSHs (decode_json (jsonstr, &json, 0));
1620} 1620}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines