From 51de6906be81dda5ff7af6cf65691b76afd42ec7 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Fri, 1 Sep 2000 00:01:58 +0000 Subject: 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). --- Include/ceval.h | 2 ++ Python/ceval.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Include/ceval.h b/Include/ceval.h index 094ebb1..b20d775 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -43,6 +43,8 @@ DL_IMPORT(int) Py_FlushLine(void); DL_IMPORT(int) Py_AddPendingCall(int (*func)(void *), void *arg); DL_IMPORT(int) Py_MakePendingCalls(void); +DL_IMPORT(void) Py_SetRecursionLimit(int); +DL_IMPORT(int) Py_GetRecursionLimit(void); /* Interface for threads. diff --git a/Python/ceval.c b/Python/ceval.c index 7e11250..63a2479 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -302,7 +302,7 @@ Py_MakePendingCalls(void) static int recursion_limit = 2500; -int Py_GetRecursionLimit(void) +int Py_GetRecursionLimit() { return recursion_limit; } -- cgit v0.12