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

Hide most functions/global variables. #1520

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Hide most functions/global variables. #1520

merged 2 commits into from
Oct 17, 2024

Conversation

1uc
Copy link
Collaborator

@1uc 1uc commented Oct 15, 2024

Global struct instance must be static. One reason is SUFFIX nothing which would otherwise cause symbols to clash.

Similarly, any function that isn't dlsymed or eligible for EXTERNAL should have internal linkage.

Global struct instance must be `static`. One reason is `SUFFIX nothing`
which would otherwise cause symbols to clash.

Similarly, any function that isn't `dlsym`ed or eligible for `EXTERNAL`
should have internal linkage.
bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Oct 15, 2024
@1uc 1uc force-pushed the 1uc/more-internal-linkage branch from 4e59661 to bd4774a Compare October 15, 2024 11:26
bbpadministrator pushed a commit to BlueBrain/nmodl-references that referenced this pull request Oct 15, 2024
@1uc
Copy link
Collaborator Author

1uc commented Oct 17, 2024

It doesn't quite catch all of them, and we'll want to move to anonymous namespace; but it does solve the problem for NRN unit-tests.

@1uc 1uc marked this pull request as ready for review October 17, 2024 07:19
@1uc 1uc merged commit a071982 into master Oct 17, 2024
12 checks passed
@1uc 1uc deleted the 1uc/more-internal-linkage branch October 17, 2024 07:30
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.

2 participants