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

Comparing CBOR-XS/XS.xs (file contents):
Revision 1.47 by root, Mon Apr 27 20:21:53 2015 UTC vs.
Revision 1.48 by root, Sun Sep 20 23:25:53 2015 UTC

584} 584}
585 585
586static SV * 586static SV *
587encode_cbor (SV *scalar, CBOR *cbor) 587encode_cbor (SV *scalar, CBOR *cbor)
588{ 588{
589 enc_t enc = { }; 589 enc_t enc = { 0 };
590 590
591 enc.cbor = *cbor; 591 enc.cbor = *cbor;
592 enc.sv = sv_2mortal (NEWSV (0, INIT_SIZE)); 592 enc.sv = sv_2mortal (NEWSV (0, INIT_SIZE));
593 enc.cur = SvPVX (enc.sv); 593 enc.cur = SvPVX (enc.sv);
594 enc.end = SvEND (enc.sv); 594 enc.end = SvEND (enc.sv);
1163} 1163}
1164 1164
1165static SV * 1165static SV *
1166decode_cbor (SV *string, CBOR *cbor, char **offset_return) 1166decode_cbor (SV *string, CBOR *cbor, char **offset_return)
1167{ 1167{
1168 dec_t dec = { }; 1168 dec_t dec = { 0 };
1169 SV *sv; 1169 SV *sv;
1170 STRLEN len; 1170 STRLEN len;
1171 char *data = SvPVbyte (string, len); 1171 char *data = SvPVbyte (string, len);
1172 1172
1173 if (len > cbor->max_size && cbor->max_size) 1173 if (len > cbor->max_size && cbor->max_size)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines