diff options
author | Eric Smith <eric@trueblade.com> | 2009-11-30 01:01:42 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2009-11-30 01:01:42 (GMT) |
commit | 0f78bff646c60cb3f39f3e908f5c7f10ad63f1f2 (patch) | |
tree | 90200f967879d7a2e466b0a2b7ab9b4336cbbdce /Objects/bytesobject.c | |
parent | 7d0bddde5caca7abf41aa3d8763bc99ad8aa8798 (diff) | |
download | cpython-0f78bff646c60cb3f39f3e908f5c7f10ad63f1f2.zip cpython-0f78bff646c60cb3f39f3e908f5c7f10ad63f1f2.tar.gz cpython-0f78bff646c60cb3f39f3e908f5c7f10ad63f1f2.tar.bz2 |
Issue #5748: bytesobject.c should not have its own private defines for stringlib macros. Also removed unused defines and include for localutil.h.
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r-- | Objects/bytesobject.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index 27d4f95..41eee40 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -563,29 +563,15 @@ PyBytes_AsStringAndSize(register PyObject *obj, /* Methods */ #include "stringlib/stringdefs.h" -#define STRINGLIB_CHAR char - -#define STRINGLIB_CMP memcmp -#define STRINGLIB_LEN PyBytes_GET_SIZE -#define STRINGLIB_NEW PyBytes_FromStringAndSize -#define STRINGLIB_STR PyBytes_AS_STRING -/* #define STRINGLIB_WANT_CONTAINS_OBJ 1 */ - -#define STRINGLIB_EMPTY nullstring -#define STRINGLIB_CHECK_EXACT PyBytes_CheckExact -#define STRINGLIB_MUTABLE 0 #include "stringlib/fastsearch.h" - #include "stringlib/count.h" #include "stringlib/find.h" #include "stringlib/partition.h" #include "stringlib/ctype.h" -#include "stringlib/transmogrify.h" -#define _Py_InsertThousandsGrouping _PyBytes_InsertThousandsGrouping -#define _Py_InsertThousandsGroupingLocale _PyBytes_InsertThousandsGroupingLocale -#include "stringlib/localeutil.h" +#define STRINGLIB_MUTABLE 0 +#include "stringlib/transmogrify.h" PyObject * PyBytes_Repr(PyObject *obj, int smartquotes) |