Commit 5383f680 authored by Senthil Prabakaran's avatar Senthil Prabakaran Committed by Mouse

Remove angle brackets

parent db8f61fb
......@@ -62,14 +62,14 @@ CHOICE_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
er.encoded = 0;
ASN__CALLBACK3("<", 1, mname, mlen, ">", 1);
ASN__CALLBACK3("\"", 1, mname, mlen, "\"", 1);
tmper = elm->type->op->jer_encoder(elm->type, memb_ptr,
ilevel + 1, flags, cb, app_key);
if(tmper.encoded == -1) return tmper;
er.encoded += tmper.encoded;
ASN__CALLBACK3("</", 2, mname, mlen, ">", 1);
// ASN__CALLBACK3("</", 2, mname, mlen, ">", 1);
}
ASN__ENCODED_OK(er);
......
......@@ -33,7 +33,7 @@ SEQUENCE_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr,
if(mname) {
if(!xcan) ASN__TEXT_INDENT(1, ilevel);
ASN__CALLBACK3("<", 1, mname, mlen, ">", 1);
ASN__CALLBACK3("\"", 1, mname, mlen, "\":{", 3);
}
tmper = elm->type->op->jer_encoder(elm->type, memb_ptr, ilevel + 1,
......@@ -44,11 +44,11 @@ SEQUENCE_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr,
const char *name = elm->type->xml_tag;
size_t len = strlen(name);
if(!xcan) ASN__TEXT_INDENT(1, ilevel + 1);
ASN__CALLBACK3("<", 1, name, len, "/>", 2);
ASN__CALLBACK3("\"", 1, name, len, "\"", 1);
}
if(mname) {
ASN__CALLBACK3("</", 2, mname, mlen, ">", 1);
ASN__CALLBACK("}", 1);
}
}
......
......@@ -86,7 +86,7 @@ SET_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
if(mname) {
if(!xcan) ASN__TEXT_INDENT(1, ilevel);
ASN__CALLBACK3("<", 1, mname, mlen, ">", 1);
ASN__CALLBACK3("\"", 1, mname, mlen, "\"", 1);
}
if(!xcan && specs->as_XMLValueList == 1)
......@@ -102,9 +102,9 @@ SET_OF_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
ASN__CALLBACK3("<", 1, name, len, "/>", 2);
}
if(mname) {
ASN__CALLBACK3("</", 2, mname, mlen, ">", 1);
}
/* if(mname) { */
/* ASN__CALLBACK3("</", 2, mname, mlen, ">", 1); */
/* } */
}
......
......@@ -50,7 +50,7 @@ SET_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
if(!xcan)
ASN__TEXT_INDENT(1, ilevel);
ASN__CALLBACK3("<", 1, mname, mlen, ">", 1);
ASN__CALLBACK3("\"", 1, mname, mlen, "\"", 1);
/* Print the member itself */
tmper = elm->type->op->jer_encoder(elm->type, memb_ptr,
......@@ -59,7 +59,7 @@ SET_encode_jer(const asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
if(tmper.encoded == -1) return tmper;
er.encoded += tmper.encoded;
ASN__CALLBACK3("</", 2, mname, mlen, ">", 1);
// ASN__CALLBACK3("</", 2, mname, mlen, ">", 1);
}
if(!xcan) ASN__TEXT_INDENT(1, ilevel - 1);
......
......@@ -24,13 +24,13 @@ jer_encode(const asn_TYPE_descriptor_t *td, const void *sptr,
mname = td->xml_tag;
mlen = strlen(mname);
ASN__CALLBACK3("<", 1, mname, mlen, ">", 1);
ASN__CALLBACK3("\"", 1, mname, mlen, "\"", 1);
tmper = td->op->jer_encoder(td, sptr, 1, 0, cb, app_key);
if(tmper.encoded == -1) return tmper;
er.encoded += tmper.encoded;
ASN__CALLBACK3("</", 2, mname, mlen, ">\n", xcan);
// ASN__CALLBACK3("</", 2, mname, mlen, ">\n", xcan);
ASN__ENCODED_OK(er);
cb_failed:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment