From f70ef4f8606f99744252a804229d53a4d97601c1 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Sat, 22 Jul 2000 18:47:25 +0000 Subject: Mass ANSIfication of function definitions. Doesn't cover all 'extern' declarations yet, those come later. --- Python/thread.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'Python/thread.c') diff --git a/Python/thread.c b/Python/thread.c index f3c1d452a4..c8b2809f62 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -29,7 +29,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #include #else #ifdef Py_DEBUG -extern char *getenv(); +extern char *getenv(const char *); #endif #endif @@ -73,17 +73,6 @@ extern char *getenv(); #endif /* _POSIX_THREADS */ -#ifdef __STDC__ -#define _P(args) args -#define _P0() (void) -#define _P1(v,t) (t) -#define _P2(v1,t1,v2,t2) (t1,t2) -#else -#define _P(args) () -#define _P0() () -#define _P1(v,t) (v) t; -#define _P2(v1,t1,v2,t2) (v1,v2) t1; t2; -#endif /* __STDC__ */ #ifdef Py_DEBUG static int thread_debug = 0; @@ -98,7 +87,7 @@ static int initialized; static void PyThread__init_thread(); /* Forward */ -void PyThread_init_thread _P0() +void PyThread_init_thread(void) { #ifdef Py_DEBUG char *p = getenv("THREADDEBUG"); -- cgit v1.2.1