Mass ANSIfication of function definitions. Doesn't cover all 'extern'

declarations yet, those come later.
This commit is contained in:
Thomas Wouters 2000-07-22 18:47:25 +00:00
parent 0452d1f316
commit f70ef4f860
45 changed files with 704 additions and 1526 deletions

View file

@ -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");