X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=defs_hwe2sm%2FNativeEnumerated.c;fp=asn1c_defs%2FNativeEnumerated.c;h=800da97caf8110fa158351057ce64e873da45968;hb=b3dbe861af447e9bb887dff880e31397738435c4;hp=50ffb1d785b4ee1080113d6e9db4a36c89f1e0c6;hpb=edcbaf8c8ab1bfdf605df32ee20bb6f4f4137a7d;p=ric-app%2Fhw.git diff --git a/asn1c_defs/NativeEnumerated.c b/defs_hwe2sm/NativeEnumerated.c similarity index 96% rename from asn1c_defs/NativeEnumerated.c rename to defs_hwe2sm/NativeEnumerated.c index 50ffb1d..800da97 100644 --- a/asn1c_defs/NativeEnumerated.c +++ b/defs_hwe2sm/NativeEnumerated.c @@ -97,7 +97,7 @@ NativeEnumerated_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, const asn_INTEGER_specifics_t *specs = td->specifics; asn_dec_rval_t rval = { RC_OK, 0 }; long *native = (long *)*sptr; - const asn_per_constraint_t *ct = NULL; + const asn_per_constraint_t *ct; long value; (void)opt_codec_ctx; @@ -115,7 +115,7 @@ NativeEnumerated_decode_uper(const asn_codec_ctx_t *opt_codec_ctx, ASN_DEBUG("Decoding %s as NativeEnumerated", td->name); - if(ct && ct->flags & APC_EXTENSIBLE) { + if(ct->flags & APC_EXTENSIBLE) { int inext = per_get_few_bits(pd, 1); if(inext < 0) ASN__DECODE_STARVED; if(inext) ct = 0; @@ -165,7 +165,7 @@ NativeEnumerated_encode_uper(const asn_TYPE_descriptor_t *td, (const asn_INTEGER_specifics_t *)td->specifics; asn_enc_rval_t er = {0,0,0}; long native, value; - const asn_per_constraint_t *ct = NULL; + const asn_per_constraint_t *ct; int inext = 0; asn_INTEGER_enum_map_t key; const asn_INTEGER_enum_map_t *kf; @@ -193,13 +193,13 @@ NativeEnumerated_encode_uper(const asn_TYPE_descriptor_t *td, } value = kf - specs->value2enum; - if(ct && ct->range_bits >= 0) { + if(ct->range_bits >= 0) { int cmpWith = specs->extension ? specs->extension - 1 : specs->map_count; if(value >= cmpWith) inext = 1; } - if(ct && ct->flags & APC_EXTENSIBLE) { + if(ct->flags & APC_EXTENSIBLE) { if(per_put_few_bits(po, inext, 1)) ASN__ENCODE_FAILED; if(inext) ct = 0; @@ -236,7 +236,7 @@ NativeEnumerated_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; asn_dec_rval_t rval = { RC_OK, 0 }; long *native = (long *)*sptr; - const asn_per_constraint_t *ct = NULL; + const asn_per_constraint_t *ct; long value; (void)opt_codec_ctx; @@ -254,7 +254,7 @@ NativeEnumerated_decode_aper(const asn_codec_ctx_t *opt_codec_ctx, ASN_DEBUG("Decoding %s as NativeEnumerated", td->name); - if(ct && ct->flags & APC_EXTENSIBLE) { + if(ct->flags & APC_EXTENSIBLE) { int inext = per_get_few_bits(pd, 1); if(inext < 0) ASN__DECODE_STARVED; if(inext) ct = 0; @@ -302,7 +302,7 @@ NativeEnumerated_encode_aper(const asn_TYPE_descriptor_t *td, const asn_INTEGER_specifics_t *specs = (const asn_INTEGER_specifics_t *)td->specifics; asn_enc_rval_t er = {0,0,0}; long native, value; - const asn_per_constraint_t *ct = NULL; + const asn_per_constraint_t *ct; int inext = 0; asn_INTEGER_enum_map_t key; asn_INTEGER_enum_map_t *kf; @@ -331,13 +331,13 @@ NativeEnumerated_encode_aper(const asn_TYPE_descriptor_t *td, } value = kf - specs->value2enum; - if(ct && ct->range_bits >= 0) { + if(ct->range_bits >= 0) { int cmpWith = specs->extension ? specs->extension - 1 : specs->map_count; if(value >= cmpWith) inext = 1; } - if(ct && ct->flags & APC_EXTENSIBLE) { + if(ct->flags & APC_EXTENSIBLE) { if(per_put_few_bits(po, inext, 1)) ASN__ENCODE_FAILED; if(inext) ct = 0;