Commit 8022c751 authored by Tim Peters's avatar Tim Peters

Supply missing prototypes for new Py_{Get,Set}RecursionLimit; fixes compiler wngs;

un-analize Get's definition ("void" is needed only in declarations, not defns, &
is generally considered bad style in the latter).
parent c812eeab
...@@ -43,6 +43,8 @@ DL_IMPORT(int) Py_FlushLine(void); ...@@ -43,6 +43,8 @@ DL_IMPORT(int) Py_FlushLine(void);
DL_IMPORT(int) Py_AddPendingCall(int (*func)(void *), void *arg); DL_IMPORT(int) Py_AddPendingCall(int (*func)(void *), void *arg);
DL_IMPORT(int) Py_MakePendingCalls(void); DL_IMPORT(int) Py_MakePendingCalls(void);
DL_IMPORT(void) Py_SetRecursionLimit(int);
DL_IMPORT(int) Py_GetRecursionLimit(void);
/* Interface for threads. /* Interface for threads.
......
...@@ -302,7 +302,7 @@ Py_MakePendingCalls(void) ...@@ -302,7 +302,7 @@ Py_MakePendingCalls(void)
static int recursion_limit = 2500; static int recursion_limit = 2500;
int Py_GetRecursionLimit(void) int Py_GetRecursionLimit()
{ {
return recursion_limit; return recursion_limit;
} }
......
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