Commit a074ba0f authored by Senthil Prabakaran's avatar Senthil Prabakaran Committed by Mouse

Fix asn1 smoke test - incomplete

parent f37ddfcf
...@@ -241,7 +241,6 @@ asn1c__save_example_mk_makefile(arg_t *arg, const asn1c_dep_chainset *deps, ...@@ -241,7 +241,6 @@ asn1c__save_example_mk_makefile(arg_t *arg, const asn1c_dep_chainset *deps,
(arg->flags & A1C_GEN_APER) ? "": "-DASN_DISABLE_APER_SUPPORT ", (arg->flags & A1C_GEN_APER) ? "": "-DASN_DISABLE_APER_SUPPORT ",
(arg->flags & A1C_GEN_PRINT) ? "": "-DASN_DISABLE_PRINT_SUPPORT ", (arg->flags & A1C_GEN_PRINT) ? "": "-DASN_DISABLE_PRINT_SUPPORT ",
(arg->flags & A1C_GEN_RFILL) ? "": "-DASN_DISABLE_RFILL_SUPPORT ", (arg->flags & A1C_GEN_RFILL) ? "": "-DASN_DISABLE_RFILL_SUPPORT ",
(arg->flags & A1C_GEN_JER) ? "": "-DASN_DISABLE_JER_SUPPORT ",
need_to_generate_pdu_collection(arg) ? "-DASN_PDU_COLLECTION " : ""); need_to_generate_pdu_collection(arg) ? "-DASN_PDU_COLLECTION " : "");
if(dlist) { if(dlist) {
......
...@@ -127,7 +127,7 @@ enum asn1c_flags { ...@@ -127,7 +127,7 @@ enum asn1c_flags {
* -gen-JER / -no-gen-JER * -gen-JER / -no-gen-JER
* Generate JSON Encoding Rules support code * Generate JSON Encoding Rules support code
*/ */
A1C_GEN_JER = 0x10000000, A1C_GEN_JER = 0x100000000,
}; };
......
...@@ -25,7 +25,8 @@ jer_encode(const asn_TYPE_descriptor_t *td, const void *sptr, ...@@ -25,7 +25,8 @@ jer_encode(const asn_TYPE_descriptor_t *td, const void *sptr,
ASN__CALLBACK3("{\n\"", 3, mname, mlen, "\":", 2); ASN__CALLBACK3("{\n\"", 3, mname, mlen, "\":", 2);
tmper = td->op->jer_encoder(td, sptr, 1, 0, cb, app_key); int xFlag = 0;
tmper = td->op->jer_encoder(td, sptr, 1, xFlag, cb, app_key);
if(tmper.encoded == -1) return tmper; if(tmper.encoded == -1) return tmper;
er.encoded += tmper.encoded; er.encoded += tmper.encoded;
......
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