summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2006-05-26 11:38:15 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2006-05-26 11:38:15 (GMT)
commit95e2a916158860f76539d36b9fe9e1688cb85aac (patch)
treed9781ea6f42cbf2c4745b224ca140ced2f734265 /Objects/stringobject.c
parentdf676c5ffdbc1c7cfa11d759936bfddebb53067e (diff)
downloadcpython-95e2a916158860f76539d36b9fe9e1688cb85aac.zip
cpython-95e2a916158860f76539d36b9fe9e1688cb85aac.tar.gz
cpython-95e2a916158860f76539d36b9fe9e1688cb85aac.tar.bz2
use Py_LOCAL also for string and unicode objects
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index b4c8950..b186594 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -5,18 +5,6 @@
#include <ctype.h>
-#undef USE_INLINE /* XXX - set via configure? */
-
-#if defined(_MSC_VER) /* this is taken from _sre.c */
-#pragma warning(disable: 4710)
-/* fastest possible local call under MSVC */
-#define LOCAL(type) static __inline type __fastcall
-#elif defined(USE_INLINE)
-#define LOCAL(type) static inline type
-#else
-#define LOCAL(type) static type
-#endif
-
#ifdef COUNT_ALLOCS
int null_strings, one_strings;
#endif
@@ -798,7 +786,7 @@ PyString_AsStringAndSize(register PyObject *obj,
#define FAST_COUNT 0
#define FAST_SEARCH 1
-LOCAL(Py_ssize_t)
+Py_LOCAL(Py_ssize_t)
fastsearch(const char* s, Py_ssize_t n, const char* p, Py_ssize_t m, int mode)
{
long mask;