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