mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add.
Patch by Michael Ensslin.
This commit is contained in:
@@ -143,7 +143,7 @@ PyTraceBack_Here(PyFrameObject *frame)
|
||||
}
|
||||
|
||||
/* 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;
|
||||
PyCodeObject *code = NULL;
|
||||
|
||||
Reference in New Issue
Block a user