Mercurial > cpython-lru_cache-weakref
diff Python/thread.c @ 13658:f79434ee41fa legacy-trunk
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
declarations yet, those come later.
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Sat, 22 Jul 2000 18:47:25 +0000 |
| parents | 87ee82e5c56d |
| children | 9db86b27278f |
line wrap: on
line diff
--- a/Python/thread.c Sat Jul 22 18:45:06 2000 +0000 +++ b/Python/thread.c Sat Jul 22 18:47:25 2000 +0000 @@ -29,7 +29,7 @@ #include <stdlib.h> #else #ifdef Py_DEBUG -extern char *getenv(); +extern char *getenv(const char *); #endif #endif @@ -73,17 +73,6 @@ #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 void PyThread__init_thread(); /* Forward */ -void PyThread_init_thread _P0() +void PyThread_init_thread(void) { #ifdef Py_DEBUG char *p = getenv("THREADDEBUG");
