Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
73c95f19
Commit
73c95f19
authored
Jun 21, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add.
Patch by Michael Ensslin.
parent
753a1dfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Include/traceback.h
Include/traceback.h
+1
-1
Python/traceback.c
Python/traceback.c
+1
-1
No files found.
Include/traceback.h
View file @
73c95f19
...
...
@@ -24,7 +24,7 @@ PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *);
PyAPI_FUNC
(
int
)
PyTraceBack_Print
(
PyObject
*
,
PyObject
*
);
#ifndef Py_LIMITED_API
PyAPI_FUNC
(
int
)
_Py_DisplaySourceLine
(
PyObject
*
,
PyObject
*
,
int
,
int
);
PyAPI_FUNC
(
void
)
_PyTraceback_Add
(
c
har
*
,
char
*
,
int
);
PyAPI_FUNC
(
void
)
_PyTraceback_Add
(
c
onst
char
*
,
const
char
*
,
int
);
#endif
/* Reveal traceback type so we can typecheck traceback objects */
...
...
Python/traceback.c
View file @
73c95f19
...
...
@@ -143,7 +143,7 @@ PyTraceBack_Here(PyFrameObject *frame)
}
/* Insert a frame into the traceback for (funcname, filename, lineno). */
void
_PyTraceback_Add
(
c
har
*
funcname
,
char
*
filename
,
int
lineno
)
void
_PyTraceback_Add
(
c
onst
char
*
funcname
,
const
char
*
filename
,
int
lineno
)
{
PyObject
*
globals
=
NULL
;
PyCodeObject
*
code
=
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment