aboutsummaryrefslogtreecommitdiffstats
path: root/asn1c/asn1c.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2005-07-24 08:28:39 +0000
committerLev Walkin <vlm@lionet.info>2005-07-24 08:28:39 +0000
commit72a0f5a1faa1a5b613f1f979ebd1a89eb744afff (patch)
treef189ac41687c92c3b384bce683d20e397a4710d3 /asn1c/asn1c.c
parentd4eb17dbf07c498fb98479b8cbd6c0ec228ec669 (diff)
-findirect-choice
Diffstat (limited to 'asn1c/asn1c.c')
-rw-r--r--asn1c/asn1c.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/asn1c/asn1c.c b/asn1c/asn1c.c
index 3d08c30..11559de 100644
--- a/asn1c/asn1c.c
+++ b/asn1c/asn1c.c
@@ -77,6 +77,8 @@ main(int ac, char **av) {
asn1_fixer_flags |= A1F_EXTENDED_SizeConstraint;
} else if(strcmp(optarg, "compound-names") == 0) {
asn1_compiler_flags |= A1C_COMPOUND_NAMES;
+ } else if(strcmp(optarg, "indirect-choice") == 0) {
+ asn1_compiler_flags |= A1C_INDIRECT_CHOICE;
} else if(strncmp(optarg, "known-extern-type=", 18) == 0) {
char *known_type = optarg + 18;
ret = asn1f_make_known_external_type(known_type);
@@ -313,6 +315,7 @@ usage(const 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"
" -fcompound-names Disambiguate C's struct NAME's inside top-level types\n"
+" -findirect-choice Compile members of CHOICE as indirect pointers\n"
" -fknown-extern-type=<name> Pretend the specified type is known\n"
" -fnative-types Use \"long\" instead of INTEGER_t whenever possible, etc.\n"
" -fno-constraints Do not generate constraint checking code\n"