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.67 by root, Wed Nov 28 14:01:01 2007 UTC vs.
Revision 1.68 by root, Thu Nov 29 08:37:11 2007 UTC

1457{ 1457{
1458 SV *pv = NEWSV (0, sizeof (JSON)); 1458 SV *pv = NEWSV (0, sizeof (JSON));
1459 SvPOK_only (pv); 1459 SvPOK_only (pv);
1460 Zero (SvPVX (pv), 1, JSON); 1460 Zero (SvPVX (pv), 1, JSON);
1461 ((JSON *)SvPVX (pv))->flags = F_DEFAULT; 1461 ((JSON *)SvPVX (pv))->flags = F_DEFAULT;
1462 XPUSHs (sv_2mortal (sv_bless (newRV_noinc (pv), JSON_STASH))); 1462 XPUSHs (sv_2mortal (sv_bless (
1463 newRV_noinc (pv),
1464 strEQ (klass, "JSON::XS") ? JSON_STASH : gv_stashpv (klass, 1)
1465 )));
1463} 1466}
1464 1467
1465void ascii (JSON *self, int enable = 1) 1468void ascii (JSON *self, int enable = 1)
1466 ALIAS: 1469 ALIAS:
1467 ascii = F_ASCII 1470 ascii = F_ASCII
1494 get_utf8 = F_UTF8 1497 get_utf8 = F_UTF8
1495 get_indent = F_INDENT 1498 get_indent = F_INDENT
1496 get_canonical = F_CANONICAL 1499 get_canonical = F_CANONICAL
1497 get_space_before = F_SPACE_BEFORE 1500 get_space_before = F_SPACE_BEFORE
1498 get_space_after = F_SPACE_AFTER 1501 get_space_after = F_SPACE_AFTER
1499 get_pretty = F_PRETTY
1500 get_allow_nonref = F_ALLOW_NONREF 1502 get_allow_nonref = F_ALLOW_NONREF
1501 get_shrink = F_SHRINK 1503 get_shrink = F_SHRINK
1502 get_allow_blessed = F_ALLOW_BLESSED 1504 get_allow_blessed = F_ALLOW_BLESSED
1503 get_convert_blessed = F_CONV_BLESSED 1505 get_convert_blessed = F_CONV_BLESSED
1504 get_relaxed = F_RELAXED 1506 get_relaxed = F_RELAXED

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines