summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-10 01:21:36 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-10 01:21:36 (GMT)
commit794d567b173e4cc10ad233aeb8743283ea9c3e6b (patch)
tree719e680b00697196a6cfb4d4a89b002f1b70aa87 /Include
parenta6968edcb048f42e07e1ec9b95946b08c86cc950 (diff)
downloadcpython-794d567b173e4cc10ad233aeb8743283ea9c3e6b.zip
cpython-794d567b173e4cc10ad233aeb8743283ea9c3e6b.tar.gz
cpython-794d567b173e4cc10ad233aeb8743283ea9c3e6b.tar.bz2
any_find_slice() doesn't use callbacks anymore
* Call directly the right find/rfind method: allow inlining functions * Remove Py_LOCAL_CALLBACK (added for any_find_slice)
Diffstat (limited to 'Include')
-rw-r--r--Include/pyport.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index 3239020..5309de6 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -286,15 +286,12 @@ typedef size_t Py_uhash_t;
/* fastest possible local call under MSVC */
#define Py_LOCAL(type) static type __fastcall
#define Py_LOCAL_INLINE(type) static __inline type __fastcall
-#define Py_LOCAL_CALLBACK(name) (__fastcall *name)
#elif defined(USE_INLINE)
#define Py_LOCAL(type) static type
#define Py_LOCAL_INLINE(type) static inline type
-#define Py_LOCAL_CALLBACK(name) (*name)
#else
#define Py_LOCAL(type) static type
#define Py_LOCAL_INLINE(type) static type
-#define Py_LOCAL_CALLBACK(name) (*name)
#endif
/* Py_MEMCPY can be used instead of memcpy in cases where the copied blocks