8000 Add static inline to PyUnicodeWriter_WriteStr (#104) · python/pythoncapi-compat@39e2663 · GitHub
[go: up one dir, main page]

Skip to content

Commit 39e2663

Browse files
authored
Add static inline to PyUnicodeWriter_WriteStr (#104)
Add static inline to PyUnicodeWriter_WriteStr() PyUnicodeWriter_WriteRepr().
1 parent 4094c64 commit 39e2663

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythoncapi_compat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ PyUnicodeWriter_WriteChar(PyUnicodeWriter *writer, Py_UCS4 ch)
13921392
return _PyUnicodeWriter_WriteChar((_PyUnicodeWriter*)writer, ch);
13931393
}
13941394

1395-
int
1395+
static inline int
13961396
PyUnicodeWriter_WriteStr(PyUnicodeWriter *writer, PyObject *obj)
13971397
{
13981398
PyObject *str = PyObject_Str(obj);
@@ -1405,7 +1405,7 @@ PyUnicodeWriter_WriteStr(PyUnicodeWriter *writer, PyObject *obj)
14051405
return res;
14061406
}
14071407

1408-
int
1408+
static inline int
14091409
PyUnicodeWriter_WriteRepr(PyUnicodeWriter *writer, PyObject *obj)
14101410
{
14111411
PyObject *str = PyObject_Repr(obj);

0 commit comments

Comments
 (0)
0