Issue #5748: bytesobject.c should not have its own private defines fo… · wrongnull/cpython@0f78bff · GitHub
Skip to content

Commit 0f78bff

Browse files
committed
Issue python#5748: bytesobject.c should not have its own private defines for stringlib macros. Also removed unused defines and include for localutil.h.
1 parent 7d0bddd commit 0f78bff

3 files changed

Lines changed: 4 additions & 16 deletions

File tree

Objects/bytesobject.c

Lines changed: 2 additions & 16 deletions

Objects/stringlib/stringdefs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#define STRINGLIB_NEW PyBytes_FromStringAndSize
2222
#define STRINGLIB_RESIZE _PyBytes_Resize
2323
#define STRINGLIB_CHECK PyBytes_Check
24+
#define STRINGLIB_CHECK_EXACT PyBytes_CheckExact
2425
#define STRINGLIB_CMP memcmp
2526
#define STRINGLIB_TOSTR PyObject_Str
2627
#define STRINGLIB_GROUPING _PyBytes_InsertThousandsGrouping

Objects/stringlib/unicodedefs.h

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)