unicode_writer: don't force inline when it is not necessary
Keep inline for performance critical functions (functions used in loops)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 0816c3c..bb0d786 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -13665,7 +13665,7 @@
writer->kind = PyUnicode_KIND(writer->buffer);
}
-Py_LOCAL_INLINE(int)
+Py_LOCAL(int)
unicode_writer_init(unicode_writer_t *writer,
Py_ssize_t length, Py_UCS4 maxchar)
{
@@ -13762,7 +13762,7 @@
return 0;
}
-Py_LOCAL_INLINE(PyObject *)
+Py_LOCAL(PyObject *)
unicode_writer_finish(unicode_writer_t *writer)
{
if (PyUnicode_Resize(&writer->buffer, writer->pos) < 0) {
@@ -13772,7 +13772,7 @@
return writer->buffer;
}
-Py_LOCAL_INLINE(void)
+Py_LOCAL(void)
unicode_writer_dealloc(unicode_writer_t *writer)
{
Py_CLEAR(writer->buffer);