-fnative-integers -> -fnative-types

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@322 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2004-09-14 12:48:17 +00:00
parent f9d178d667
commit 03af0f048d
4 changed files with 13 additions and 11 deletions

View File

@ -27,7 +27,7 @@ and other encoding standards.
.TP .TP
\fILanguage Options\fR \fILanguage Options\fR
.br .br
\fB\-fall-defs-global \-fbless-SIZE \-fnative-integers \-funnamed-unions \-ftypes88\fR \fB\-fall-defs-global \-fbless-SIZE \-fnative-types \-funnamed-unions \-ftypes88\fR
.TP .TP
\fIOutput Options\fR \fIOutput Options\fR
.br .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 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. an ASN.1 standard and compiler may fail to produce the meaningful code.
.TP .TP
.B \-fnative-integers .B \-fnative-types
Use native machine's integer types whenever possible, Use the native machine's data types (int, double) whenever possible,
instead of the complex ASN.1 INTEGER and ENUMERATED types. instead of the compound ASN.1 INTEGER_t, ENUMERATED_t and REAL_t types.
.TP .TP
.B \-funnamed-unions .B \-funnamed-unions
Enable unnamed unions in the definitions of target language's structures. Enable unnamed unions in the definitions of target language's structures.

View File

@ -63,7 +63,9 @@ main(int ac, char **av) {
ret = asn1f_make_known_external_type(known_type); ret = asn1f_make_known_external_type(known_type);
assert(ret == 0 || errno == EEXIST); assert(ret == 0 || errno == EEXIST);
} else if(strcmp(optarg, "native-integers") == 0) { } 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) { } else if(strcmp(optarg, "unnamed-unions") == 0) {
asn1_compiler_flags |= A1C_UNNAMED_UNIONS; asn1_compiler_flags |= A1C_UNNAMED_UNIONS;
} else if(strcmp(optarg, "types88") == 0) { } 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" " -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" " -fbless-SIZE Allow SIZE() constraint for INTEGER etc (non-std.)\n"
" -fknown-extern-type=<name> Pretend this type is known\n" " -fknown-extern-type=<name> Pretend this type is known\n"
" -fnative-integers Use int instead of INTEGER_t whenever possible\n" " -fnative-types Use \"int\" instead of INTEGER_t whenever possible\n"
" -funnamed-unions Enable unnamed unions in structures\n" " -funnamed-unions Enable unnamed unions in structures\n"
" -ftypes88 Use only ASN.1:1988 embedded types\n" " -ftypes88 Use only ASN.1:1988 embedded types\n"
"\n" "\n"

View File

@ -55,7 +55,7 @@ status Open
\layout Standard \layout Standard
\backslash \backslash
extramarks{$Revision$ -- describes asn1c-0.9.3}{} extramarks{$Revision$ -- describes asn1c-0.9.5}{}
\end_inset \end_inset
@ -1117,7 +1117,7 @@ collapsed false
\emph on \emph on
-fnative-integers -fnative-types
\emph default \emph default
compiler option is used to produce basic C compiler option is used to produce basic C
\emph on \emph on
@ -1648,7 +1648,7 @@ Allow SIZE() constraint for INTEGER, ENUMERATED, and other types for which
\layout Standard \layout Standard
-fnative-integers -fnative-types
\end_inset \end_inset
</cell> </cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none"> <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 \size small
Use native machine's integer types whenever possible, instead of the complex Use the native machine's data types (int, double) whenever possible, instead
ASN.1 INTEGER and ENUMERATED types. of the compound ASN.1 INTEGER_t, ENUMERATED_t and REAL_t types.
\end_inset \end_inset
</cell> </cell>

Binary file not shown.