Commit 11380fba authored by Lev Walkin's avatar Lev Walkin

*** empty log message ***

parent 523de9eb
...@@ -847,14 +847,15 @@ asn1c_lang_C_type_CHOICE(arg_t *arg) { ...@@ -847,14 +847,15 @@ asn1c_lang_C_type_CHOICE(arg_t *arg) {
out_name_chain(arg, ONC_noflags); out_name_chain(arg, ONC_noflags);
OUT("_PR {\n"); OUT("_PR {\n");
INDENTED( INDENTED(
int firstTime = 1; int skipComma = 1;
out_name_chain(arg, ONC_noflags); out_name_chain(arg, ONC_noflags);
OUT("_PR_NOTHING,\t/* No components present */\n"); OUT("_PR_NOTHING,\t/* No components present */\n");
TQ_FOR(v, &(expr->members), next) { TQ_FOR(v, &(expr->members), next) {
if(firstTime) firstTime = 0; if(skipComma) skipComma = 0;
else OUT(",\n"); else OUT(",\n");
if(v->expr_type == A1TC_EXTENSIBLE) { if(v->expr_type == A1TC_EXTENSIBLE) {
OUT("/* Extensions may appear below */\n"); OUT("/* Extensions may appear below */\n");
skipComma = 1;
continue; continue;
} }
out_name_chain(arg, ONC_noflags); out_name_chain(arg, ONC_noflags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment