Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
DEV: Add static modifier to inline declarations. #12123
Conversation
|
I think this provides an alternative solution for #10510, but I haven't tested this yet (currently downloading a FreeBSD vm over crummy internet). |
|
Makes sense to me. Reviewed lgtm if the build passes. |
|
I ended up removing the conditional flag |
|
pls add a whatsnew note |
jvkersch
referenced
this pull request
Jan 24, 2016
Closed
Installation problem on FreeBSD 10.0 with Python 3.4.3 #10510
|
Done. Thanks guys for the quick feedback. |
jreback
added the
Compat
label
Jan 24, 2016
jreback
added this to the
0.18.0
milestone
Jan 24, 2016
jreback
closed this
in b26fac8
Jan 24, 2016
|
@jvkersch thank you sir! |
jreback
referenced
this pull request
Feb 25, 2016
Open
error importing Pandas in python-3.4 unix environment - undefined symbol: pyobject_cmp #10608
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jvkersch commentedJan 24, 2016
It is currently impossible to build a debug version of Pandas on Mac OS, since some of the C function declarations are declared as
inline, and compiling in debug mode turns off optimizations and hence inlining. While this could be solved by adding a compile argument tosetup.pyto use the C89 behavior for inline as in #10510, I believe an ultimately cleaner solution may consist of declaring inlined functions asstatic, so that the code is properly C99-compliant.For the implementation, I added the
statickeyword to the definitions ofPANDAS_INLINEandP_INLINE(and removed duplicate occurrences ofstaticfrom some function declarations), so that future implementations that use those defines are automatically compliant. This is slightly different from e.g. Cython, which definesCYTHON_INLINEasinlineand declares everything asstatic CYTHON_INLINE.