Skip to content

Commit b24b994

Browse files
Review
1 parent cf197af commit b24b994

File tree

6 files changed

+6
-23
lines changed

6 files changed

+6
-23
lines changed

Include/internal/pycore_unicodedata.h

Lines changed: 0 additions & 17 deletions
This file was deleted.

Include/internal/pycore_unicodeobject.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ _PyUnicodeWriter_WriteCharInline(_PyUnicodeWriter *writer, Py_UCS4 ch)
7777

7878
/* --- Characters Type APIs ----------------------------------------------- */
7979

80-
extern int _PyUnicode_IsXidStart(Py_UCS4 ch);
81-
extern int _PyUnicode_IsXidContinue(Py_UCS4 ch);
80+
// Export for 'unicodedata' shared extension.
81+
PyAPI_FUNC(int) _PyUnicode_IsXidStart(Py_UCS4 ch);
82+
PyAPI_FUNC(int) _PyUnicode_IsXidContinue(Py_UCS4 ch);
83+
8284
extern int _PyUnicode_ToLowerFull(Py_UCS4 ch, Py_UCS4 *res);
8385
extern int _PyUnicode_ToTitleFull(Py_UCS4 ch, Py_UCS4 *res);
8486
extern int _PyUnicode_ToUpperFull(Py_UCS4 ch, Py_UCS4 *res);

Makefile.pre.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,6 @@ PYTHON_HEADERS= \
14331433
$(srcdir)/Include/internal/pycore_typeobject.h \
14341434
$(srcdir)/Include/internal/pycore_typevarobject.h \
14351435
$(srcdir)/Include/internal/pycore_ucnhash.h \
1436-
$(srcdir)/Include/internal/pycore_unicodedata.h \
14371436
$(srcdir)/Include/internal/pycore_unicodeobject.h \
14381437
$(srcdir)/Include/internal/pycore_unicodeobject_generated.h \
14391438
$(srcdir)/Include/internal/pycore_unionobject.h \

Modules/unicodedata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "Python.h"
2020
#include "pycore_object.h" // _PyObject_VisitType()
2121
#include "pycore_ucnhash.h" // _PyUnicode_Name_CAPI
22-
#include "pycore_unicodedata.h" // _PyUnicode_IsXidStart, _PyUnicode_IsXidContinue
22+
#include "pycore_unicodeobject.h" // _PyUnicode_IsXidStart, _PyUnicode_IsXidContinue
2323

2424
#include <stdbool.h>
2525
#include <stddef.h> // offsetof()

Objects/unicodectype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
#include "Python.h"
12-
#include "pycore_unicodedata.h" // export _PyUnicode_IsXidStart(), _PyUnicode_IsXidContinue()
12+
#include "pycore_unicodeobject.h" // export _PyUnicode_IsXidStart(), _PyUnicode_IsXidContinue()
1313

1414
#define ALPHA_MASK 0x01
1515
#define DECIMAL_MASK 0x02

PCbuild/pythoncore.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@
328328
<ClInclude Include="..\Include\internal\pycore_typevarobject.h" />
329329
<ClInclude Include="..\Include\internal\pycore_ucnhash.h" />
330330
<ClInclude Include="..\Include\internal\pycore_unionobject.h" />
331-
<ClInclude Include="..\Include\internal\pycore_unicodedata.h" />
332331
<ClInclude Include="..\Include\internal\pycore_unicodeobject.h" />
333332
<ClInclude Include="..\Include\internal\pycore_unicodeobject_generated.h" />
334333
<ClInclude Include="..\Include\internal\pycore_uniqueid.h" />

0 commit comments

Comments
 (0)