summaryrefslogtreecommitdiffstats
path: root/Python/thread.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-22 18:47:25 (GMT)
committerThomas Wouters <thomas@python.org>2000-07-22 18:47:25 (GMT)
commitf70ef4f8606f99744252a804229d53a4d97601c1 (patch)
treebe401f2f10b39f0603e4cc0ae091335890410b7f /Python/thread.c
parent0452d1f316903f0553a0d92e0673ff37247cdfa5 (diff)
downloadcpython-f70ef4f8606f99744252a804229d53a4d97601c1.zip
cpython-f70ef4f8606f99744252a804229d53a4d97601c1.tar.gz
cpython-f70ef4f8606f99744252a804229d53a4d97601c1.tar.bz2
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
declarations yet, those come later.
Diffstat (limited to 'Python/thread.c')
-rw-r--r--Python/thread.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/Python/thread.c b/Python/thread.c
index f3c1d45..c8b2809 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 <stdlib.h>
#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");