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
aa0d6646
Commit
aa0d6646
authored
Jun 21, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the const qualifier for char* argument of Py_EnterRecursiveCall().
parent
87953795
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Doc/c-api/exceptions.rst
Doc/c-api/exceptions.rst
+1
-1
Include/ceval.h
Include/ceval.h
+1
-1
Python/ceval.c
Python/ceval.c
+1
-1
No files found.
Doc/c-api/exceptions.rst
View file @
aa0d6646
...
...
@@ -621,7 +621,7 @@ level, both in the core and in extension modules. They are needed if the
recursive code does not necessarily invoke Python code (which tracks its
recursion depth automatically).
.. c:function:: int Py_EnterRecursiveCall(char *where)
.. c:function:: int Py_EnterRecursiveCall(c
onst c
har *where)
Marks a point where a recursive C-level call is about to be performed.
...
...
Include/ceval.h
View file @
aa0d6646
...
...
@@ -77,7 +77,7 @@ PyAPI_FUNC(int) Py_GetRecursionLimit(void);
do{ if(_Py_MakeEndRecCheck(PyThreadState_GET()->recursion_depth)) \
PyThreadState_GET()->overflowed = 0; \
} while(0)
PyAPI_FUNC
(
int
)
_Py_CheckRecursiveCall
(
char
*
where
);
PyAPI_FUNC
(
int
)
_Py_CheckRecursiveCall
(
c
onst
c
har
*
where
);
PyAPI_DATA
(
int
)
_Py_CheckRecursionLimit
;
#ifdef USE_STACKCHECK
...
...
Python/ceval.c
View file @
aa0d6646
...
...
@@ -710,7 +710,7 @@ Py_SetRecursionLimit(int new_limit)
to guarantee that _Py_CheckRecursiveCall() is regularly called.
Without USE_STACKCHECK, there is no need for this. */
int
_Py_CheckRecursiveCall
(
char
*
where
)
_Py_CheckRecursiveCall
(
c
onst
c
har
*
where
)
{
PyThreadState
*
tstate
=
PyThreadState_GET
();
...
...
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