pretty-printing

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@386 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2004-09-24 20:56:25 +00:00
parent 68d43e974a
commit 1827a1c997
1 changed files with 5 additions and 4 deletions

View File

@ -107,11 +107,13 @@ BIT_STRING_encode_xer(asn1_TYPE_descriptor_t *td, void *sptr,
p += 8;
}
er.encoded += p - scratch;
if(!xcan && (((buf - st->buf) - 1) % 8) == 0)
_i_ASN_TEXT_INDENT(1, ilevel);
er.encoded += p - scratch;
_ASN_CALLBACK(scratch, p - scratch);
p = scratch;
if(buf < end + 1) {
if(buf == end) {
int v = *buf;
int mbit = st->buf[0]; /* bits to skip from the right */
int i;
@ -121,8 +123,7 @@ BIT_STRING_encode_xer(asn1_TYPE_descriptor_t *td, void *sptr,
_ASN_CALLBACK(scratch, p - scratch);
}
if(!xcan && ((st->size - 1) % 8) == 0)
_i_ASN_TEXT_INDENT(1, ilevel - 1);
if(!xcan) _i_ASN_TEXT_INDENT(1, ilevel - 1);
return er;
}