Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asn1c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
qwebaby3
asn1c
Commits
abc76b01
Commit
abc76b01
authored
20 years ago
by
Lev Walkin
Browse files
Options
Downloads
Patches
Plain Diff
revert back the lvalue casting; fix is even less compatible
parent
f0b7c9a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
skeletons/constr_SEQUENCE_OF.c
+2
-2
2 additions, 2 deletions
skeletons/constr_SEQUENCE_OF.c
skeletons/constr_SET_OF.c
+6
-6
6 additions, 6 deletions
skeletons/constr_SET_OF.c
with
8 additions
and
8 deletions
skeletons/constr_SEQUENCE_OF.c
+
2
−
2
View file @
abc76b01
...
@@ -25,7 +25,7 @@ SEQUENCE_OF_encode_der(asn_TYPE_descriptor_t *td, void *ptr,
...
@@ -25,7 +25,7 @@ SEQUENCE_OF_encode_der(asn_TYPE_descriptor_t *td, void *ptr,
/*
/*
* Gather the length of the underlying members sequence.
* Gather the length of the underlying members sequence.
*/
*/
list
=
(
A_SEQUENCE_OF
(
void
)
*
)
ptr
;
(
void
*
)
list
=
ptr
;
for
(
edx
=
0
;
edx
<
list
->
count
;
edx
++
)
{
for
(
edx
=
0
;
edx
<
list
->
count
;
edx
++
)
{
void
*
memb_ptr
=
list
->
array
[
edx
];
void
*
memb_ptr
=
list
->
array
[
edx
];
erval
=
elm
->
type
->
der_encoder
(
elm
->
type
,
memb_ptr
,
erval
=
elm
->
type
->
der_encoder
(
elm
->
type
,
memb_ptr
,
...
@@ -102,7 +102,7 @@ SEQUENCE_OF_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
...
@@ -102,7 +102,7 @@ SEQUENCE_OF_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
er
.
encoded
=
0
;
er
.
encoded
=
0
;
list
=
(
A_SEQUENCE_OF
(
void
)
*
)
sptr
;
(
void
*
)
list
=
sptr
;
for
(
i
=
0
;
i
<
list
->
count
;
i
++
)
{
for
(
i
=
0
;
i
<
list
->
count
;
i
++
)
{
asn_enc_rval_t
tmper
;
asn_enc_rval_t
tmper
;
...
...
This diff is collapsed.
Click to expand it.
skeletons/constr_SET_OF.c
+
6
−
6
View file @
abc76b01
...
@@ -214,7 +214,7 @@ SET_OF_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
...
@@ -214,7 +214,7 @@ SET_OF_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
case
RC_OK
:
case
RC_OK
:
{
{
A_SET_OF
(
void
)
*
list
;
A_SET_OF
(
void
)
*
list
;
list
=
(
A_SET_OF
(
void
)
*
)
st
;
(
void
*
)
list
=
(
void
*
)
st
;
if
(
ASN_SET_ADD
(
list
,
ctx
->
ptr
)
!=
0
)
if
(
ASN_SET_ADD
(
list
,
ctx
->
ptr
)
!=
0
)
RETURN
(
RC_FAIL
);
RETURN
(
RC_FAIL
);
else
else
...
@@ -329,7 +329,7 @@ SET_OF_encode_der(asn_TYPE_descriptor_t *td, void *ptr,
...
@@ -329,7 +329,7 @@ SET_OF_encode_der(asn_TYPE_descriptor_t *td, void *ptr,
/*
/*
* Gather the length of the underlying members sequence.
* Gather the length of the underlying members sequence.
*/
*/
list
=
(
A_SET_OF
(
void
)
*
)
ptr
;
(
void
*
)
list
=
ptr
;
for
(
edx
=
0
;
edx
<
list
->
count
;
edx
++
)
{
for
(
edx
=
0
;
edx
<
list
->
count
;
edx
++
)
{
void
*
memb_ptr
=
list
->
array
[
edx
];
void
*
memb_ptr
=
list
->
array
[
edx
];
erval
=
der_encoder
(
elm_type
,
memb_ptr
,
0
,
elm
->
tag
,
0
,
0
);
erval
=
der_encoder
(
elm_type
,
memb_ptr
,
0
,
elm
->
tag
,
0
,
0
);
...
@@ -507,7 +507,7 @@ SET_OF_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
...
@@ -507,7 +507,7 @@ SET_OF_encode_xer(asn_TYPE_descriptor_t *td, void *sptr,
if
(
!
sptr
)
_ASN_ENCODE_FAILED
;
if
(
!
sptr
)
_ASN_ENCODE_FAILED
;
list
=
(
A_SET_OF
(
void
)
*
)
sptr
;
(
void
*
)
list
=
sptr
;
if
(
xcan
)
{
if
(
xcan
)
{
encs
=
(
xer_tmp_enc_t
*
)
MALLOC
(
list
->
count
*
sizeof
(
encs
[
0
]));
encs
=
(
xer_tmp_enc_t
*
)
MALLOC
(
list
->
count
*
sizeof
(
encs
[
0
]));
...
@@ -601,7 +601,7 @@ SET_OF_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
...
@@ -601,7 +601,7 @@ SET_OF_print(asn_TYPE_descriptor_t *td, const void *sptr, int ilevel,
||
cb
(
" ::= {"
,
6
,
app_key
)
<
0
)
||
cb
(
" ::= {"
,
6
,
app_key
)
<
0
)
return
-
1
;
return
-
1
;
list
=
(
const
A_SET_OF
(
void
)
*
)
sptr
;
(
const
void
*
)
list
=
sptr
;
for
(
i
=
0
;
i
<
list
->
count
;
i
++
)
{
for
(
i
=
0
;
i
<
list
->
count
;
i
++
)
{
const
void
*
memb_ptr
=
list
->
array
[
i
];
const
void
*
memb_ptr
=
list
->
array
[
i
];
if
(
!
memb_ptr
)
continue
;
if
(
!
memb_ptr
)
continue
;
...
@@ -630,7 +630,7 @@ SET_OF_free(asn_TYPE_descriptor_t *td, void *ptr, int contents_only) {
...
@@ -630,7 +630,7 @@ SET_OF_free(asn_TYPE_descriptor_t *td, void *ptr, int contents_only) {
* Could not use set_of_empty() because of (*free)
* Could not use set_of_empty() because of (*free)
* incompatibility.
* incompatibility.
*/
*/
list
=
(
A_SET_OF
(
void
)
*
)
ptr
;
(
void
*
)
list
=
ptr
;
for
(
i
=
0
;
i
<
list
->
count
;
i
++
)
{
for
(
i
=
0
;
i
<
list
->
count
;
i
++
)
{
void
*
memb_ptr
=
list
->
array
[
i
];
void
*
memb_ptr
=
list
->
array
[
i
];
if
(
memb_ptr
)
if
(
memb_ptr
)
...
@@ -661,7 +661,7 @@ SET_OF_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
...
@@ -661,7 +661,7 @@ SET_OF_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
return
-
1
;
return
-
1
;
}
}
list
=
(
const
A_SET_OF
(
void
)
*
)
sptr
;
(
const
void
*
)
list
=
sptr
;
constr
=
element
->
memb_constraints
;
constr
=
element
->
memb_constraints
;
if
(
!
constr
)
constr
=
element
->
type
->
check_constraints
;
if
(
!
constr
)
constr
=
element
->
type
->
check_constraints
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment