Skip to content

Commit

Permalink
Add static inline to PyUnicodeWriter_WriteStr (#104)
Browse files Browse the repository at this point in the history
Add static inline to PyUnicodeWriter_WriteStr()
PyUnicodeWriter_WriteRepr().
  • Loading branch information
vstinner authored Aug 6, 2024
1 parent 4094c64 commit 39e2663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pythoncapi_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@ PyUnicodeWriter_WriteChar(PyUnicodeWriter *writer, Py_UCS4 ch)
return _PyUnicodeWriter_WriteChar((_PyUnicodeWriter*)writer, ch);
}

int
static inline int
PyUnicodeWriter_WriteStr(PyUnicodeWriter *writer, PyObject *obj)
{
PyObject *str = PyObject_Str(obj);
Expand All @@ -1405,7 +1405,7 @@ PyUnicodeWriter_WriteStr(PyUnicodeWriter *writer, PyObject *obj)
return res;
}

int
static inline int
PyUnicodeWriter_WriteRepr(PyUnicodeWriter *writer, PyObject *obj)
{
PyObject *str = PyObject_Repr(obj);
Expand Down

0 comments on commit 39e2663

Please sign in to comment.