aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/constr_SET.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2005-02-18 18:06:36 +0000
committerLev Walkin <vlm@lionet.info>2005-02-18 18:06:36 +0000
commit1e4439612faf6c5da0f91c4d16e59a28e0ee1cbf (patch)
tree3cb231e805e2de25fa5b78f08b9f89fcac4bcf75 /skeletons/constr_SET.c
parent6ab88965152490dff47a8df5b5a8a4f413da2fc7 (diff)
context sensitivity
Diffstat (limited to 'skeletons/constr_SET.c')
-rw-r--r--skeletons/constr_SET.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/skeletons/constr_SET.c b/skeletons/constr_SET.c
index c5bb201d..2ee3b81a 100644
--- a/skeletons/constr_SET.c
+++ b/skeletons/constr_SET.c
@@ -671,7 +671,8 @@ SET_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
/*
* Get the next part of the XML stream.
*/
- ch_size = xer_next_token(buf_ptr, size, &ch_type);
+ ch_size = xer_next_token(&ctx->context,
+ buf_ptr, size, &ch_type);
switch(ch_size) {
case -1: RETURN(RC_FAIL);
case 0: RETURN(RC_WMORE);
@@ -695,12 +696,11 @@ SET_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
case -1:
ctx->phase = 4;
RETURN(RC_FAIL);
- case 0:
- XER_ADVANCE(ch_size);
- continue;
case 1:
- XER_ADVANCE(ch_size);
ctx->phase = 1;
+ /* Fall through */
+ case 0:
+ XER_ADVANCE(ch_size);
continue;
case 2:
ctx->phase = 1;