Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -fprefix as an option #170

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

v0-e
Copy link

@v0-e v0-e commented Jan 16, 2024

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.

@mouse07410 mouse07410 merged commit 3270650 into mouse07410:vlm_master Jan 17, 2024
1 check passed
@velichkov
Copy link

This change is similar to osmocom/asn1c@aa37b8c but implemented differently. For better interoperability it will be good to add support for ASN1C_PREFIX environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants