-
Notifications
You must be signed in to change notification settings - Fork 116
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
Remove more C++ transitional measures #1903
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1903 +/- ##
==========================================
- Coverage 47.17% 47.13% -0.04%
==========================================
Files 543 543
Lines 112912 112910 -2
==========================================
- Hits 53264 53221 -43
- Misses 59648 59689 +41
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
✔️ 622aeb3 -> Azure artifacts URL |
✔️ b8e873c -> Azure artifacts URL |
Launched https://github.com/neuronsimulator/nrn-modeldb-ci/actions/runs/2623246528 comparing this with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Looks alright to me. |
Now #1597 is merged, only some quasi-external code like scopmath, sparse13 and mesch is still compiled as C.
This means that most explicit C linkage is no longer needed, and we can use C++ linkage. Similarly
__cplusplus
can be assumed to be defined in most cases.When things are being touched anyway, tend to prefer moving declarations to header files and including those headers:
oc_save_hoc_oop
andoc_restore_hoc_oop
were being called with the wrong number of arguments.There are some exceptions:
dlopen
,dlsym
etc...so for the moment it's simpler to stick with C linkage.dlopen
and friends, and keep C linkage.Some unused files were deleted:
src/nrnoc/cprop.cpp
src/oc/spinit.cpp
Questions / deferred items: