Visitar URL original
gh-129117: Expose `_PyUnicode_IsXidContinue/Start` in `unicodedata` by StanFromIreland · Pull Request #140269 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Third times the charm
  • Loading branch information
StanFromIreland committed Oct 29, 2025
commit dc0752fba84afa19be4f1aa1394d2c1f25076baa
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef Py_INTERNAL_UNICODEDATA_H
#define Py_INTERNAL_UNICODEDATA_H
#ifndef Py_INTERNAL_UNICODECTYPE_H
Comment thread
StanFromIreland marked this conversation as resolved.
#define Py_INTERNAL_UNICODECTYPE_H
#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -14,4 +14,4 @@ PyAPI_FUNC(int) _PyUnicode_IsXidContinue(Py_UCS4 ch);
#ifdef __cplusplus
}
#endif
#endif /* !Py_INTERNAL_UNICODEDATA_H */
#endif /* !Py_INTERNAL_UNICODECTYPE_H */
2 changes: 1 addition & 1 deletion Makefile.pre.in
Original file line number Diff line number Diff line change
Expand Up @@ -1433,9 +1433,9 @@ PYTHON_HEADERS= \
$(srcdir)/Include/internal/pycore_typeobject.h \
$(srcdir)/Include/internal/pycore_typevarobject.h \
$(srcdir)/Include/internal/pycore_ucnhash.h \
$(srcdir)/Include/internal/pycore_unicodedata.h \
$(srcdir)/Include/internal/pycore_unicodeobject.h \
$(srcdir)/Include/internal/pycore_unicodeobject_generated.h \
$(srcdir)/Include/internal/pycore_unicodectype.h \
$(srcdir)/Include/internal/pycore_unionobject.h \
$(srcdir)/Include/internal/pycore_uniqueid.h \
$(srcdir)/Include/internal/pycore_uop.h \
Expand Down
2 changes: 1 addition & 1 deletion Modules/unicodedata.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "Python.h"
#include "pycore_object.h" // _PyObject_VisitType()
#include "pycore_ucnhash.h" // _PyUnicode_Name_CAPI
#include "pycore_unicodedata.h" // _PyUnicode_IsXidStart, _PyUnicode_IsXidContinue
#include "pycore_unicodectype.h" // _PyUnicode_IsXidStart, _PyUnicode_IsXidContinue
Comment thread
StanFromIreland marked this conversation as resolved.
Outdated

#include <stdbool.h>
#include <stddef.h> // offsetof()
Expand Down
2 changes: 1 addition & 1 deletion Objects/unicodectype.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#include "Python.h"
#include "pycore_unicodedata.h" // export _PyUnicode_IsXidStart(), _PyUnicode_IsXidContinue()
#include "pycore_unicodectype.h" // export _PyUnicode_IsXidStart(), _PyUnicode_IsXidContinue()

#define ALPHA_MASK 0x01
#define DECIMAL_MASK 0x02
Expand Down
2 changes: 1 addition & 1 deletion PCbuild/pythoncore.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@
<ClInclude Include="..\Include\internal\pycore_typevarobject.h" />
<ClInclude Include="..\Include\internal\pycore_ucnhash.h" />
<ClInclude Include="..\Include\internal\pycore_unionobject.h" />
<ClInclude Include="..\Include\internal\pycore_unicodedata.h" />
<ClInclude Include="..\Include\internal\pycore_unicodeobject.h" />
<ClInclude Include="..\Include\internal\pycore_unicodeobject_generated.h" />
<ClInclude Include="..\Include\internal\pycore_unicodectype.h" />
<ClInclude Include="..\Include\internal\pycore_uniqueid.h" />
<ClInclude Include="..\Include\internal\pycore_warnings.h" />
<ClInclude Include="..\Include\internal\pycore_weakref.h" />
Expand Down
Loading