From d0dba6eee8a2876a5457695813fe85b227485395 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 4 May 2012 01:19:15 +0200 Subject: [PATCH] unicode_writer: don't force inline when it is not necessary Keep inline for performance critical functions (functions used in loops) --- Objects/unicodeobject.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 0816c3caf2d..bb0d78633d8 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -13665,7 +13665,7 @@ unicode_writer_update(unicode_writer_t *writer) 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 @@ unicode_writer_write_char( 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 @@ unicode_writer_finish(unicode_writer_t *writer) return writer->buffer; } -Py_LOCAL_INLINE(void) +Py_LOCAL(void) unicode_writer_dealloc(unicode_writer_t *writer) { Py_CLEAR(writer->buffer);