aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1compiler/asn1c_C.c
diff options
context:
space:
mode:
Diffstat (limited to 'libasn1compiler/asn1c_C.c')
-rw-r--r--libasn1compiler/asn1c_C.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c
index b9f994c7..95ff1f3c 100644
--- a/libasn1compiler/asn1c_C.c
+++ b/libasn1compiler/asn1c_C.c
@@ -1670,11 +1670,12 @@ emit_tag2member_map(arg_t *arg, tag2el_t *tag2el, int tag2el_count, const char *
OUT("%d, ", tag2el[i].el_no);
OUT("%d, ", tag2el[i].toff_first);
OUT("%d ", tag2el[i].toff_last);
- OUT("}%s /* %s at %d */\n",
+ OUT("}%s /* %s",
(i + 1 < tag2el_count) ? "," : "",
- tag2el[i].from_expr->Identifier,
- tag2el[i].from_expr->_lineno
- );
+ tag2el[i].from_expr->Identifier);
+ if(arg->flags & A1C_LINE_REFS)
+ OUT("at %d", tag2el[i].from_expr->_lineno);
+ OUT(" */\n");
}
OUT("};\n");