diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2006-05-26 11:38:15 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2006-05-26 11:38:15 (GMT) |
commit | 95e2a916158860f76539d36b9fe9e1688cb85aac (patch) | |
tree | d9781ea6f42cbf2c4745b224ca140ced2f734265 /Include | |
parent | df676c5ffdbc1c7cfa11d759936bfddebb53067e (diff) | |
download | cpython-95e2a916158860f76539d36b9fe9e1688cb85aac.zip cpython-95e2a916158860f76539d36b9fe9e1688cb85aac.tar.gz cpython-95e2a916158860f76539d36b9fe9e1688cb85aac.tar.bz2 |
use Py_LOCAL also for string and unicode objects
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyport.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index 7d51d0a..9d46470 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -139,12 +139,17 @@ typedef Py_intptr_t Py_ssize_t; /* PY_LOCAL can be used instead of static to get the fastest possible calling * convention for functions that are local to a given module. It also enables - * inlining, where suitable. */ + * inlining, where suitable. + * + * NOTE: You can only use this for functions that are entirely local to a + * module; functions that are exported via method tables, callbacks, etc, + * should keep using static. + */ #undef USE_INLINE /* XXX - set via configure? */ #if defined(_MSC_VER) - /* ignore warnings if the compiler decides not to inline a function */ +/* ignore warnings if the compiler decides not to inline a function */ #pragma warning(disable: 4710) /* fastest possible local call under MSVC */ #define Py_LOCAL(type) static __inline type __fastcall |