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

MAINT: special: Don't use macro for 'extern "C"' in strictly C++ files. #15202

Merged
merged 1 commit into from Dec 13, 2021

Conversation

WarrenWeckesser
Copy link
Member

The files _faddeeva.cxx, _wright.cxx, and ellint_carlson_wrap.cxx
are strictly C++ files. They cannot be compiled by a C compiler.
So there is no need for extern "C" {} to be hidden in a macro,
and the code is clearer without the use of the macros.

The files _faddeeva.cxx, _wright.cxx, and ellint_carlson_wrap.cxx
are strictly C++ files.  They cannot be compiled by a C compiler.
So there is no need for `extern "C" {}` to be hidden in a macro,
and the code is clearer without the use of the macros.
@WarrenWeckesser WarrenWeckesser added scipy.special maintenance Items related to regular maintenance tasks labels Dec 11, 2021
@rgommers rgommers added this to the 1.9.0 milestone Dec 13, 2021
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, useful cleanup. Thanks Warren

@rgommers rgommers merged commit 62bdc88 into scipy:master Dec 13, 2021
@WarrenWeckesser WarrenWeckesser deleted the cxx-externc-cleanup branch December 13, 2021 22:40
@WarrenWeckesser WarrenWeckesser added the C/C++ Items related to the internal C/C++ code base label May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C/C++ Items related to the internal C/C++ code base maintenance Items related to regular maintenance tasks scipy.special
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants