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

Comparing cvsroot/CBOR-XS/XS.xs (file contents):
Revision 1.45 by root, Sun Dec 14 05:48:39 2014 UTC vs.
Revision 1.47 by root, Mon Apr 27 20:21:53 2015 UTC

332 SV **svp = av_fetch (av, i, 0); 332 SV **svp = av_fetch (av, i, 0);
333 encode_sv (enc, svp ? *svp : &PL_sv_undef); 333 encode_sv (enc, svp ? *svp : &PL_sv_undef);
334 } 334 }
335 else 335 else
336 for (i = 0; i <= len; ++i) 336 for (i = 0; i <= len; ++i)
337 encode_sv (enc, AvARRAY (av)[i]); 337 {
338 SV *sv = AvARRAY (av)[i];
339 encode_sv (enc, sv ? sv : &PL_sv_undef);
340 }
338 341
339 --enc->depth; 342 --enc->depth;
340} 343}
341 344
342static void 345static void
1261 1264
1262 int major = *p >> MAJOR_SHIFT; 1265 int major = *p >> MAJOR_SHIFT;
1263 1266
1264 switch (major) 1267 switch (major)
1265 { 1268 {
1269 case MAJOR_TAG >> MAJOR_SHIFT:
1270 ++count; // tags merely prefix another value
1271 break;
1272
1266 case MAJOR_BYTES >> MAJOR_SHIFT: 1273 case MAJOR_BYTES >> MAJOR_SHIFT:
1267 case MAJOR_TEXT >> MAJOR_SHIFT: 1274 case MAJOR_TEXT >> MAJOR_SHIFT:
1268 case MAJOR_ARRAY >> MAJOR_SHIFT: 1275 case MAJOR_ARRAY >> MAJOR_SHIFT:
1269 case MAJOR_MAP >> MAJOR_SHIFT: 1276 case MAJOR_MAP >> MAJOR_SHIFT:
1270 { 1277 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines