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
91f5cd06
Commit
91f5cd06
authored
20 years ago
by
Lev Walkin
Browse files
Options
Downloads
Patches
Plain Diff
portability
parent
c2346578
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
skeletons/OBJECT_IDENTIFIER.c
+1
-1
1 addition, 1 deletion
skeletons/OBJECT_IDENTIFIER.c
skeletons/asn_types.h
+1
-1
1 addition, 1 deletion
skeletons/asn_types.h
skeletons/constr_CHOICE.c
+4
-4
4 additions, 4 deletions
skeletons/constr_CHOICE.c
with
6 additions
and
6 deletions
skeletons/OBJECT_IDENTIFIER.c
+
1
−
1
View file @
91f5cd06
...
...
@@ -345,7 +345,7 @@ OBJECT_IDENTIFIER_get_arcs(OBJECT_IDENTIFIER_t *oid, void *arcs,
/*
* Save the single value as an object identifier arc.
*/
inline
int
int
OBJECT_IDENTIFIER_set_single_arc
(
uint8_t
*
arcbuf
,
void
*
arcval
,
unsigned
int
arcval_size
,
int
prepared_order
)
{
/*
* The following conditions must hold:
...
...
This diff is collapsed.
Click to expand it.
skeletons/asn_types.h
+
1
−
1
View file @
91f5cd06
...
...
@@ -14,7 +14,7 @@
#include
<sys/types.h>
/* For size_t */
#include
<stdarg.h>
/* For va_start */
#include
<stddef.h>
/* for offsetof and ptrdiff_t */
#if
__STDC_VERSION__ < 199901L
#if
ndef WIN32
#include
<inttypes.h>
/* C99 Standard specifies this file, for uintXX_t */
#else
typedef
unsigned
char
uint8_t
;
...
...
This diff is collapsed.
Click to expand it.
skeletons/constr_CHOICE.c
+
4
−
4
View file @
91f5cd06
...
...
@@ -58,8 +58,8 @@
/*
* See the definitions.
*/
static
inline
int
_fetch_present_idx
(
const
void
*
struct_ptr
,
int
off
,
int
size
);
static
inline
void
_set_present_idx
(
void
*
sptr
,
int
offset
,
int
size
,
int
pres
);
static
int
_fetch_present_idx
(
const
void
*
struct_ptr
,
int
off
,
int
size
);
static
void
_set_present_idx
(
void
*
sptr
,
int
offset
,
int
size
,
int
pres
);
/*
* Tags are canonically sorted in the tag to member table.
...
...
@@ -593,7 +593,7 @@ CHOICE_free(asn1_TYPE_descriptor_t *td, void *ptr, int contents_only) {
* is guaranteed to be aligned properly. ASN.1 compiler itself does not
* produce packed code.
*/
static
inline
int
static
int
_fetch_present_idx
(
const
void
*
struct_ptr
,
int
pres_offset
,
int
pres_size
)
{
const
void
*
present_ptr
;
int
present
;
...
...
@@ -613,7 +613,7 @@ _fetch_present_idx(const void *struct_ptr, int pres_offset, int pres_size) {
return
present
;
}
static
inline
void
static
void
_set_present_idx
(
void
*
struct_ptr
,
int
pres_offset
,
int
pres_size
,
int
present
)
{
void
*
present_ptr
;
present_ptr
=
((
char
*
)
struct_ptr
)
+
pres_offset
;
...
...
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