[issue5553] Py_LOCAL_INLINE(type) doesn't actually inline except using MSC

Daniel Stutzbach report at bugs.python.org
Fri Apr 30 17:00:09 CEST 2010


Daniel Stutzbach <daniel at stutzbachenterprises.com> added the comment:

Attached is a patch.  

The diff to configure is just what autoconf produces as a result of the diff to configure.in.

With the patch, pyconfig.h will:
- do nothing if the compiler supports the "inline" keyword
- #define inline to __inline or __inline__ if that's the compiler supports
- #define inline to nothing if the compiler doesn't support inlining

The patch also updates pyport.h and _sre.c appropriately.

----------
keywords: +needs review, patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file17149/inline.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5553>
_______________________________________


More information about the Python-bugs-list mailing list