mouse07410 / asn1c

The ASN.1 Compiler
http://lionet.info/asn1c/
BSD 2-Clause "Simplified" License
93 stars 70 forks source link

Add -fprefix as an option #170

Closed v0-e closed 7 months ago

v0-e commented 7 months ago

Adds an optional argument -fprefix=<PREFIX> to the compiler, allowing the user to specify a prefix to be added to generated types.

This is a rather useful feature in applications which need to use different ASN.1 definitions with identical names. The functionality was already there, though was undocumented. It could be used by setting the environment variable ASN1C_PREFIX.

I've left the environment variable setting still possible, however the new optional argument takes precedence.