@@ -244,15 +244,15 @@ NULL pointer for use in a ``return`` statement.
244244 .. versionadded :: 3.4
245245
246246
247- .. c :function :: void PyErr_SyntaxLocationEx (char *filename, int lineno, int col_offset)
247+ .. c :function :: void PyErr_SyntaxLocationEx (const char *filename, int lineno, int col_offset)
248248
249249 Like :c:func: `PyErr_SyntaxLocationObject `, but *filename * is a byte string
250250 decoded from the filesystem encoding (:func: `os.fsdecode `).
251251
252252 .. versionadded:: 3.2
253253
254254
255- .. c:function:: void PyErr_SyntaxLocation(char *filename, int lineno)
255+ .. c:function:: void PyErr_SyntaxLocation(const char *filename, int lineno)
256256
257257 Like :c:func: `PyErr_SyntaxLocationEx `, but the col_offset parameter is
258258 omitted.
@@ -516,7 +516,7 @@ Signal Handling
516516Exception Classes
517517=================
518518
519- .. c :function :: PyObject* PyErr_NewException (char *name, PyObject *base, PyObject *dict)
519+ .. c :function :: PyObject* PyErr_NewException (const char *name, PyObject *base, PyObject *dict)
520520
521521 This utility function creates and returns a new exception class. The *name *
522522 argument must be the name of the new exception, a C string of the form
@@ -531,7 +531,7 @@ Exception Classes
531531 argument can be used to specify a dictionary of class variables and methods.
532532
533533
534- .. c :function :: PyObject* PyErr_NewExceptionWithDoc (char *name, char *doc, PyObject *base, PyObject *dict)
534+ .. c :function :: PyObject* PyErr_NewExceptionWithDoc (const char *name, const char *doc, PyObject *base, PyObject *dict)
535535
536536 Same as :c:func: `PyErr_NewException `, except that the new exception class can
537537 easily be given a docstring: If *doc * is non-*NULL *, it will be used as the
0 commit comments