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
c5a5d22c
Commit
c5a5d22c
authored
Jun 23, 2007
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some fixes
parent
e78753d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
libasn1compiler/asn1c_internal.h
libasn1compiler/asn1c_internal.h
+3
-2
libasn1fix/asn1fix_param.c
libasn1fix/asn1fix_param.c
+3
-1
skeletons/constr_SEQUENCE.c
skeletons/constr_SEQUENCE.c
+2
-2
No files found.
libasn1compiler/asn1c_internal.h
View file @
c5a5d22c
...
...
@@ -24,15 +24,16 @@
#ifdef WIN32
#include <io.h>
#include <malloc.h>
#include <fcntl.h>
#define open _open
#define close _close
#define alloca _alloca
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#else
#include <fcntl.h>
/* for open(2) */
#include <glob.h>
/* for glob(3) */
#endif
#include <fcntl.h>
/* for open(2) */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
/* For MAXPATHLEN */
...
...
libasn1fix/asn1fix_param.c
View file @
c5a5d22c
...
...
@@ -50,8 +50,9 @@ asn1f_parameterization_fork(arg_t *arg, asn1p_expr_t *expr, asn1p_expr_t *rhs_ps
rarg
.
lhs_params
=
expr
->
lhs_params
;
rarg
.
rhs_pspecs
=
rhs_pspecs
;
exc
=
asn1p_expr_clone_with_resolver
(
expr
,
resolve_expr
,
&
rarg
);
if
(
!
exc
)
return
NULL
;
rpc
=
asn1p_expr_clone
(
rhs_pspecs
,
0
);
assert
(
exc
&&
rpc
);
assert
(
rpc
);
/*
* Create a new specialization.
...
...
@@ -137,6 +138,7 @@ resolve_expr(asn1p_expr_t *expr_to_resolve, void *resolver_arg) {
expr
->
Identifier
,
expr
->
meta_type
,
expr
->
expr_type
);
if
(
expr
->
meta_type
==
AMT_TYPE
||
expr
->
meta_type
==
AMT_VALUE
||
expr
->
meta_type
==
AMT_TYPEREF
||
expr
->
meta_type
==
AMT_VALUESET
)
{
DEBUG
(
"Target is a simple type %s"
,
ASN_EXPR_TYPE2STR
(
expr
->
expr_type
));
...
...
skeletons/constr_SEQUENCE.c
View file @
c5a5d22c
...
...
@@ -1078,7 +1078,7 @@ SEQUENCE_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
* Get the sequence ROOT elements.
*/
for
(
edx
=
0
;
edx
<
((
specs
->
ext_before
<
0
)
?
td
->
elements_count
:
specs
->
ext_before
+
1
);
edx
++
)
{
?
td
->
elements_count
:
specs
->
ext_before
-
1
);
edx
++
)
{
asn_TYPE_member_t
*
elm
=
&
td
->
elements
[
edx
];
void
*
memb_ptr
;
/* Pointer to the member */
void
**
memb_ptr2
;
/* Pointer to that pointer */
...
...
@@ -1219,7 +1219,7 @@ SEQUENCE_encode_uper(asn_TYPE_descriptor_t *td,
* Get the sequence ROOT elements.
*/
for
(
edx
=
0
;
edx
<
((
specs
->
ext_before
<
0
)
?
td
->
elements_count
:
specs
->
ext_before
+
1
);
edx
++
)
{
?
td
->
elements_count
:
specs
->
ext_before
-
1
);
edx
++
)
{
asn_TYPE_member_t
*
elm
=
&
td
->
elements
[
edx
];
void
*
memb_ptr
;
/* Pointer to the member */
void
**
memb_ptr2
;
/* Pointer to that pointer */
...
...
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