From 1e4439612faf6c5da0f91c4d16e59a28e0ee1cbf Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Fri, 18 Feb 2005 18:06:36 +0000 Subject: context sensitivity --- skeletons/constr_SET.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'skeletons/constr_SET.c') 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; -- cgit v1.2.3