Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
41d972b8
Commit
41d972b8
authored
Aug 23, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not add uper if not enabled
parent
fadb26aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
16 deletions
+24
-16
skeletons/NativeReal.c
skeletons/NativeReal.c
+4
-0
skeletons/REAL.c
skeletons/REAL.c
+20
-16
No files found.
skeletons/NativeReal.c
View file @
41d972b8
...
...
@@ -203,6 +203,8 @@ NativeReal_encode_der(asn_TYPE_descriptor_t *td, void *ptr,
return
erval
;
}
#ifndef ASN_DISABLE_PER_SUPPORT
/*
* Decode REAL type using PER.
*/
...
...
@@ -274,6 +276,8 @@ NativeReal_encode_uper(asn_TYPE_descriptor_t *td,
return
erval
;
}
#endif
/* ASN_DISABLE_PER_SUPPORT */
/*
* Decode the chunk of XML text encoding REAL.
*/
...
...
skeletons/REAL.c
View file @
41d972b8
...
...
@@ -435,22 +435,6 @@ REAL_decode_xer(asn_codec_ctx_t *opt_codec_ctx,
buf_ptr
,
size
,
REAL__xer_body_decode
);
}
asn_dec_rval_t
REAL_decode_uper
(
asn_codec_ctx_t
*
opt_codec_ctx
,
asn_TYPE_descriptor_t
*
td
,
const
asn_per_constraints_t
*
constraints
,
void
**
sptr
,
asn_per_data_t
*
pd
)
{
(
void
)
constraints
;
/* No PER visible constraints */
return
OCTET_STRING_decode_uper
(
opt_codec_ctx
,
td
,
0
,
sptr
,
pd
);
}
asn_enc_rval_t
REAL_encode_uper
(
asn_TYPE_descriptor_t
*
td
,
const
asn_per_constraints_t
*
constraints
,
void
*
sptr
,
asn_per_outp_t
*
po
)
{
(
void
)
constraints
;
/* No PER visible constraints */
return
OCTET_STRING_encode_uper
(
td
,
0
,
sptr
,
po
);
}
int
asn_REAL2double
(
const
REAL_t
*
st
,
double
*
dbl_value
)
{
unsigned
int
octv
;
...
...
@@ -814,3 +798,23 @@ asn_double2REAL(REAL_t *st, double dbl_value) {
return
0
;
}
#ifndef ASN_DISABLE_PER_SUPPORT
asn_dec_rval_t
REAL_decode_uper
(
asn_codec_ctx_t
*
opt_codec_ctx
,
asn_TYPE_descriptor_t
*
td
,
const
asn_per_constraints_t
*
constraints
,
void
**
sptr
,
asn_per_data_t
*
pd
)
{
(
void
)
constraints
;
/* No PER visible constraints */
return
OCTET_STRING_decode_uper
(
opt_codec_ctx
,
td
,
0
,
sptr
,
pd
);
}
asn_enc_rval_t
REAL_encode_uper
(
asn_TYPE_descriptor_t
*
td
,
const
asn_per_constraints_t
*
constraints
,
void
*
sptr
,
asn_per_outp_t
*
po
)
{
(
void
)
constraints
;
/* No PER visible constraints */
return
OCTET_STRING_encode_uper
(
td
,
0
,
sptr
,
po
);
}
#endif
/* ASN_DISABLE_PER_SUPPORT */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment