Commit 73c95f19 authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add.

Patch by Michael Ensslin.
parent 753a1dfc
...@@ -24,7 +24,7 @@ PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *); ...@@ -24,7 +24,7 @@ PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *);
PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *); PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *);
#ifndef Py_LIMITED_API #ifndef Py_LIMITED_API
PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int); PyAPI_FUNC(int) _Py_DisplaySourceLine(PyObject *, PyObject *, int, int);
PyAPI_FUNC(void) _PyTraceback_Add(char *, char *, int); PyAPI_FUNC(void) _PyTraceback_Add(const char *, const char *, int);
#endif #endif
/* Reveal traceback type so we can typecheck traceback objects */ /* Reveal traceback type so we can typecheck traceback objects */
......
...@@ -143,7 +143,7 @@ PyTraceBack_Here(PyFrameObject *frame) ...@@ -143,7 +143,7 @@ PyTraceBack_Here(PyFrameObject *frame)
} }
/* Insert a frame into the traceback for (funcname, filename, lineno). */ /* Insert a frame into the traceback for (funcname, filename, lineno). */
void _PyTraceback_Add(char *funcname, char *filename, int lineno) void _PyTraceback_Add(const char *funcname, const char *filename, int lineno)
{ {
PyObject *globals = NULL; PyObject *globals = NULL;
PyCodeObject *code = NULL; PyCodeObject *code = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment