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.106 by root, Tue Jan 19 01:36:34 2010 UTC vs.
Revision 1.107 by root, Wed Mar 17 01:45:43 2010 UTC

1401 dSP; 1401 dSP;
1402 int count; 1402 int count;
1403 1403
1404 ENTER; SAVETMPS; PUSHMARK (SP); 1404 ENTER; SAVETMPS; PUSHMARK (SP);
1405 XPUSHs (HeVAL (he)); 1405 XPUSHs (HeVAL (he));
1406 sv_2mortal (sv);
1406 1407
1407 PUTBACK; count = call_sv (HeVAL (cb), G_ARRAY); SPAGAIN; 1408 PUTBACK; count = call_sv (HeVAL (cb), G_ARRAY); SPAGAIN;
1408 1409
1409 if (count == 1) 1410 if (count == 1)
1410 { 1411 {
1411 sv = newSVsv (POPs); 1412 sv = newSVsv (POPs);
1412 FREETMPS; LEAVE; 1413 FREETMPS; LEAVE;
1413 return sv; 1414 return sv;
1414 } 1415 }
1415 1416
1417 SvREFCNT_inc (sv);
1416 FREETMPS; LEAVE; 1418 FREETMPS; LEAVE;
1417 } 1419 }
1418 } 1420 }
1419 1421
1420 if (dec->json.cb_object) 1422 if (dec->json.cb_object)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines