diff options
author | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2004-09-23 22:06:26 +0000 |
---|---|---|
committer | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2004-09-23 22:06:26 +0000 |
commit | ef1b4c0f5749d1b7a71213f809ae50be71094205 (patch) | |
tree | 1c2bf241f2e07b9d407f449e07ffd5e2271d503e /skeletons/constr_CHOICE.c | |
parent | 784a6b77f4dd7824dc1b9213f34b52a552a2895e (diff) |
pretty-printing
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@371 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'skeletons/constr_CHOICE.c')
-rw-r--r-- | skeletons/constr_CHOICE.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/skeletons/constr_CHOICE.c b/skeletons/constr_CHOICE.c index ac2bbd68..41fbae3f 100644 --- a/skeletons/constr_CHOICE.c +++ b/skeletons/constr_CHOICE.c @@ -30,6 +30,7 @@ * This macro "eats" the part of the buffer which is definitely "consumed", * i.e. was correctly converted into local representation or rightfully skipped. */ +#undef ADVANCE #define ADVANCE(num_bytes) do { \ size_t num = num_bytes; \ ptr = ((char *)ptr) + num; \ @@ -42,6 +43,7 @@ /* * Switch to the next phase of parsing. */ +#undef NEXT_PHASE #define NEXT_PHASE(ctx) do { \ ctx->phase++; \ ctx->step = 0; \ @@ -50,6 +52,7 @@ /* * Return a standardized complex structure. */ +#undef RETURN #define RETURN(_code) do { \ rval.code = _code; \ rval.consumed = consumed_myself;\ @@ -616,9 +619,11 @@ CHOICE_print(asn1_TYPE_descriptor_t *td, const void *sptr, int ilevel, } /* Print member's name and stuff */ - if(cb(elm->name, strlen(elm->name), app_key) - || cb(": ", 2, app_key)) - return -1; + if(0) { + if(cb(elm->name, strlen(elm->name), app_key) + || cb(": ", 2, app_key)) + return -1; + } return elm->type->print_struct(elm->type, memb_ptr, ilevel, cb, app_key); |