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

fix: remove unnecessary #[no_mangle] attributes #114

Merged
merged 2 commits into from
Jan 1, 2025

Conversation

bavshin-f5
Copy link
Member

#[no_mangle] is only necessary for the symbols that are exported by name. That is, exported module lists for the cdylib build and individual ngx_module_t globals for the staticlib.

extern "C" ABI specification is sufficient for all the remaining symbols that we pass to the NGINX C code by address.

Fixes: #102

`#[no_mangle]` is only necessary for the symbols that are exported by
**name**. That is, exported module lists for the `cdylib` build and
individual `ngx_module_t` globals for the `staticlib`.

`extern "C"` ABI specification is sufficient for all the remaining
symbols that we pass to the NGINX C code by address.

Fixes: nginx#102
@bavshin-f5 bavshin-f5 merged commit f3b36f3 into nginx:master Jan 1, 2025
9 of 10 checks passed
@bavshin-f5 bavshin-f5 deleted the mangle branch January 1, 2025 00:42
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.

unused demangling?
1 participant