aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-08-18 01:38:40 +0000
committerLev Walkin <vlm@lionet.info>2006-08-18 01:38:40 +0000
commit11380fba0c9b60b526543ce767f8cd004cff58fd (patch)
tree9a88756a29761b72874e64dbdb88cb6552ee75b9
parent523de9eba2d6963b2e0620bc93a3edc50e038c67 (diff)
*** empty log message ***
-rw-r--r--libasn1compiler/asn1c_C.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c
index a89fbfb8..db9bab89 100644
--- a/libasn1compiler/asn1c_C.c
+++ b/libasn1compiler/asn1c_C.c
@@ -847,14 +847,15 @@ asn1c_lang_C_type_CHOICE(arg_t *arg) {
out_name_chain(arg, ONC_noflags);
OUT("_PR {\n");
INDENTED(
- int firstTime = 1;
+ int skipComma = 1;
out_name_chain(arg, ONC_noflags);
OUT("_PR_NOTHING,\t/* No components present */\n");
TQ_FOR(v, &(expr->members), next) {
- if(firstTime) firstTime = 0;
+ if(skipComma) skipComma = 0;
else OUT(",\n");
if(v->expr_type == A1TC_EXTENSIBLE) {
OUT("/* Extensions may appear below */\n");
+ skipComma = 1;
continue;
}
out_name_chain(arg, ONC_noflags);