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
99301895
Commit
99301895
authored
20 years ago
by
Lev Walkin
Browse files
Options
Downloads
Patches
Plain Diff
-fnative-integers -> -fnative-types
parent
c78cbfbd
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
asn1c/asn1c.1
+4
-4
4 additions, 4 deletions
asn1c/asn1c.1
asn1c/asn1c.c
+4
-2
4 additions, 2 deletions
asn1c/asn1c.c
doc/asn1c-usage.lyx
+5
-5
5 additions, 5 deletions
doc/asn1c-usage.lyx
doc/asn1c-usage.pdf
+0
-0
0 additions, 0 deletions
doc/asn1c-usage.pdf
with
13 additions
and
11 deletions
asn1c/asn1c.1
+
4
−
4
View file @
99301895
...
...
@@ -27,7 +27,7 @@ and other encoding standards.
.TP
\fILanguage Options\fR
.br
\fB\-fall-defs-global \-fbless-SIZE \-fnative-
integer
s \-funnamed-unions \-ftypes88\fR
\fB\-fall-defs-global \-fbless-SIZE \-fnative-
type
s \-funnamed-unions \-ftypes88\fR
.TP
\fIOutput Options\fR
.br
...
...
@@ -87,9 +87,9 @@ Allow SIZE() constraint for INTEGER, ENUMERATED, and other types for which this
constraint is normally prohibited by the standard. This is a violation of
an ASN.1 standard and compiler may fail to produce the meaningful code.
.TP
.B \-fnative-
integer
s
Use native machine's
integer types
whenever possible,
instead of the comp
lex
ASN.1 INTEGER
and
ENUMERATED types.
.B \-fnative-
type
s
Use
the
native machine's
data types (int, double)
whenever possible,
instead of the comp
ound
ASN.1 INTEGER
_t,
ENUMERATED
_t and REAL_t
types.
.TP
.B \-funnamed-unions
Enable unnamed unions in the definitions of target language's structures.
...
...
This diff is collapsed.
Click to expand it.
asn1c/asn1c.c
+
4
−
2
View file @
99301895
...
...
@@ -63,7 +63,9 @@ main(int ac, char **av) {
ret
=
asn1f_make_known_external_type
(
known_type
);
assert
(
ret
==
0
||
errno
==
EEXIST
);
}
else
if
(
strcmp
(
optarg
,
"native-integers"
)
==
0
)
{
asn1_compiler_flags
|=
A1C_USE_NATIVE_INTEGERS
;
asn1_compiler_flags
|=
A1C_USE_NATIVE_TYPES
;
}
else
if
(
strcmp
(
optarg
,
"native-types"
)
==
0
)
{
asn1_compiler_flags
|=
A1C_USE_NATIVE_TYPES
;
}
else
if
(
strcmp
(
optarg
,
"unnamed-unions"
)
==
0
)
{
asn1_compiler_flags
|=
A1C_UNNAMED_UNIONS
;
}
else
if
(
strcmp
(
optarg
,
"types88"
)
==
0
)
{
...
...
@@ -289,7 +291,7 @@ usage(char *av0) {
" -fall-defs-global Don't make the asn1_DEF_'s of structure members
\"
static
\"\n
"
" -fbless-SIZE Allow SIZE() constraint for INTEGER etc (non-std.)
\n
"
" -fknown-extern-type=<name> Pretend this type is known
\n
"
" -fnative-
integer
s Use int instead of INTEGER_t whenever possible
\n
"
" -fnative-
type
s
Use
\"
int
\"
instead of INTEGER_t whenever possible
\n
"
" -funnamed-unions Enable unnamed unions in structures
\n
"
" -ftypes88 Use only ASN.1:1988 embedded types
\n
"
"
\n
"
...
...
This diff is collapsed.
Click to expand it.
doc/asn1c-usage.lyx
+
5
−
5
View file @
99301895
...
...
@@ -55,7 +55,7 @@ status Open
\layout Standard
\backslash
extramarks{$Revision$ -- describes asn1c-0.9.
3
}{}
extramarks{$Revision$ -- describes asn1c-0.9.
5
}{}
\end_inset
...
...
@@ -1117,7 +1117,7 @@ collapsed false
\emph on
-fnative-
integer
s
-fnative-
type
s
\emph default
compiler option is used to produce basic C
\emph on
...
...
@@ -1648,7 +1648,7 @@ Allow SIZE() constraint for INTEGER, ENUMERATED, and other types for which
\layout Standard
-fnative-
integer
s
-fnative-
type
s
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
...
...
@@ -1658,8 +1658,8 @@ Allow SIZE() constraint for INTEGER, ENUMERATED, and other types for which
\size small
Use native machine's
integer types
whenever possible, instead
of the complex
ASN.1 INTEGER
and
ENUMERATED types.
Use
the
native machine's
data types (int, double)
whenever possible, instead
of the compound
ASN.1 INTEGER
_t,
ENUMERATED
_t and REAL_t
types.
\end_inset
</cell>
...
...
This diff is collapsed.
Click to expand it.
doc/asn1c-usage.pdf
+
0
−
0
View file @
99301895
No preview for this file type
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