Skip to content

Commit 959a603

Browse files
committed
Rename the macro to _Py_DEPRECATED_EXTERNALLY
1 parent fd90cab commit 959a603

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Include/cpython/unicodeobject.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -522,17 +522,17 @@ typedef struct {
522522
} _PyUnicodeWriter;
523523

524524
#ifndef Py_BUILD_CORE
525-
# define _Py_PUBLIC_DEPRECATED(version) Py_DEPRECATED(version)
525+
# define _Py_DEPRECATED_EXTERNALLY(version) Py_DEPRECATED(version)
526526
#else
527-
# define _Py_PUBLIC_DEPRECATED(version)
527+
# define _Py_DEPRECATED_EXTERNALLY(version)
528528
#endif
529529

530530
// Initialize a Unicode writer.
531531
//
532532
// By default, the minimum buffer size is 0 character and overallocation is
533533
// disabled. Set min_length, min_char and overallocate attributes to control
534534
// the allocation of the buffer.
535-
_Py_PUBLIC_DEPRECATED(3.14) PyAPI_FUNC(void) _PyUnicodeWriter_Init(
535+
_Py_DEPRECATED_EXTERNALLY(3.14) PyAPI_FUNC(void) _PyUnicodeWriter_Init(
536536
_PyUnicodeWriter *writer);
537537

538538
/* Prepare the buffer to write 'length' characters
@@ -549,7 +549,7 @@ _Py_PUBLIC_DEPRECATED(3.14) PyAPI_FUNC(void) _PyUnicodeWriter_Init(
549549

550550
/* Don't call this function directly, use the _PyUnicodeWriter_Prepare() macro
551551
instead. */
552-
_Py_PUBLIC_DEPRECATED(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_PrepareInternal(
552+
_Py_DEPRECATED_EXTERNALLY(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_PrepareInternal(
553553
_PyUnicodeWriter *writer,
554554
Py_ssize_t length,
555555
Py_UCS4 maxchar);
@@ -566,55 +566,55 @@ _Py_PUBLIC_DEPRECATED(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_PrepareInternal(
566566

567567
/* Don't call this function directly, use the _PyUnicodeWriter_PrepareKind()
568568
macro instead. */
569-
_Py_PUBLIC_DEPRECATED(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_PrepareKindInternal(
569+
_Py_DEPRECATED_EXTERNALLY(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_PrepareKindInternal(
570570
_PyUnicodeWriter *writer,
571571
int kind);
572572

573573
/* Append a Unicode character.
574574
Return 0 on success, raise an exception and return -1 on error. */
575-
_Py_PUBLIC_DEPRECATED(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_WriteChar(
575+
_Py_DEPRECATED_EXTERNALLY(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_WriteChar(
576576
_PyUnicodeWriter *writer,
577577
Py_UCS4 ch);
578578

579579
/* Append a Unicode string.
580580
Return 0 on success, raise an exception and return -1 on error. */
581-
_Py_PUBLIC_DEPRECATED(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_WriteStr(
581+
_Py_DEPRECATED_EXTERNALLY(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_WriteStr(
582582
_PyUnicodeWriter *writer,
583583
PyObject *str); /* Unicode string */
584584

585585
/* Append a substring of a Unicode string.
586586
Return 0 on success, raise an exception and return -1 on error. */
587-
_Py_PUBLIC_DEPRECATED(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_WriteSubstring(
587+
_Py_DEPRECATED_EXTERNALLY(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_WriteSubstring(
588588
_PyUnicodeWriter *writer,
589589
PyObject *str, /* Unicode string */
590590
Py_ssize_t start,
591591
Py_ssize_t end);
592592

593593
/* Append an ASCII-encoded byte string.
594594
Return 0 on success, raise an exception and return -1 on error. */
595-
_Py_PUBLIC_DEPRECATED(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_WriteASCIIString(
595+
_Py_DEPRECATED_EXTERNALLY(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_WriteASCIIString(
596596
_PyUnicodeWriter *writer,
597597
const char *str, /* ASCII-encoded byte string */
598598
Py_ssize_t len); /* number of bytes, or -1 if unknown */
599599

600600
/* Append a latin1-encoded byte string.
601601
Return 0 on success, raise an exception and return -1 on error. */
602-
_Py_PUBLIC_DEPRECATED(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_WriteLatin1String(
602+
_Py_DEPRECATED_EXTERNALLY(3.14) PyAPI_FUNC(int) _PyUnicodeWriter_WriteLatin1String(
603603
_PyUnicodeWriter *writer,
604604
const char *str, /* latin1-encoded byte string */
605605
Py_ssize_t len); /* length in bytes */
606606

607607
/* Get the value of the writer as a Unicode string. Clear the
608608
buffer of the writer. Raise an exception and return NULL
609609
on error. */
610-
_Py_PUBLIC_DEPRECATED(3.14) PyAPI_FUNC(PyObject *) _PyUnicodeWriter_Finish(
610+
_Py_DEPRECATED_EXTERNALLY(3.14) PyAPI_FUNC(PyObject *) _PyUnicodeWriter_Finish(
611611
_PyUnicodeWriter *writer);
612612

613613
/* Deallocate memory of a writer (clear its internal buffer). */
614-
_Py_PUBLIC_DEPRECATED(3.14) PyAPI_FUNC(void) _PyUnicodeWriter_Dealloc(
614+
_Py_DEPRECATED_EXTERNALLY(3.14) PyAPI_FUNC(void) _PyUnicodeWriter_Dealloc(
615615
_PyUnicodeWriter *writer);
616616

617-
#undef _Py_PUBLIC_DEPRECATED
617+
#undef _Py_DEPRECATED_EXTERNALLY
618618

619619

620620
/* --- Manage the default encoding ---------------------------------------- */

0 commit comments

Comments
 (0)