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

Comparing Convert-BER-XS/XS.xs (file contents):
Revision 1.13 by root, Sat Apr 20 13:46:14 2019 UTC vs.
Revision 1.14 by root, Sat Apr 20 14:09:56 2019 UTC

181 181
182 SvPVX (sv)[idx] = type; 182 SvPVX (sv)[idx] = type;
183} 183}
184 184
185static SV * 185static SV *
186profile_new () 186profile_new (void)
187{ 187{
188 SV *sv = newSVpvn ("", 0); 188 SV *sv = newSVpvn ("", 0);
189 189
190 static const struct { 190 static const struct {
191 int klass; 191 int klass;
294 294
295 return res; 295 return res;
296} 296}
297 297
298static SV * 298static SV *
299decode_int () 299decode_int (void)
300{ 300{
301 int len = get_length (); 301 int len = get_length ();
302 302
303 if (len <= 0) 303 if (len <= 0)
304 { 304 {
437 437
438 return res; 438 return res;
439} 439}
440 440
441static SV * 441static SV *
442decode_ber () 442decode_ber (void)
443{ 443{
444 int identifier = get_u8 (); 444 int identifier = get_u8 ();
445 445
446 SV *res; 446 SV *res;
447 447
736// we don't know the length yet, so we optimistically 736// we don't know the length yet, so we optimistically
737// assume the length will need one octet later. if that 737// assume the length will need one octet later. if that
738// turns out to be wrong, we memove as needed. 738// turns out to be wrong, we memove as needed.
739// mark the beginning 739// mark the beginning
740static STRLEN 740static STRLEN
741len_fixup_mark () 741len_fixup_mark (void)
742{ 742{
743 return cur++ - buf; 743 return cur++ - buf;
744} 744}
745 745
746// patch up the length 746// patch up the length

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines