mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',
and a couple of functions that were missed in the previous batches. Not terribly tested, but very carefully scrutinized, three times. All these were found by the little findkrc.py that I posted to python-dev, which means there might be more lurking. Cases such as this: long func(a, b) long a; long b; /* flagword */ { and other cases where the last ; in the argument list isn't followed by a newline and an opening curly bracket. Regexps to catch all are welcome, of course ;)
This commit is contained in:
parent
ff4df6d6fb
commit
f3f33dcf03
59 changed files with 103 additions and 117 deletions
|
@ -624,7 +624,7 @@ static PyMethodDef _codecs_functions[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
init_codecs()
|
init_codecs(void)
|
||||||
{
|
{
|
||||||
Py_InitModule("_codecs", _codecs_functions);
|
Py_InitModule("_codecs", _codecs_functions);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1270,9 +1270,7 @@ static PyMethodDef PyCursesWindow_Methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
PyCursesWindow_GetAttr(self, name)
|
PyCursesWindow_GetAttr(PyCursesWindowObject *self, char *name)
|
||||||
PyCursesWindowObject *self;
|
|
||||||
char *name;
|
|
||||||
{
|
{
|
||||||
return Py_FindMethod(PyCursesWindow_Methods, (PyObject *)self, name);
|
return Py_FindMethod(PyCursesWindow_Methods, (PyObject *)self, name);
|
||||||
}
|
}
|
||||||
|
@ -2161,7 +2159,7 @@ static PyMethodDef PyCurses_methods[] = {
|
||||||
/* Initialization function for the module */
|
/* Initialization function for the module */
|
||||||
|
|
||||||
void
|
void
|
||||||
init_curses()
|
init_curses(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *v;
|
PyObject *m, *d, *v;
|
||||||
|
|
||||||
|
|
|
@ -400,7 +400,7 @@ static struct PyMethodDef PyLocale_Methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
init_locale()
|
init_locale(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *x;
|
PyObject *m, *d, *x;
|
||||||
|
|
||||||
|
|
|
@ -2097,7 +2097,7 @@ void
|
||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
__declspec(dllexport)
|
__declspec(dllexport)
|
||||||
#endif
|
#endif
|
||||||
init_sre()
|
init_sre(void)
|
||||||
{
|
{
|
||||||
/* Patch object types */
|
/* Patch object types */
|
||||||
Pattern_Type.ob_type = Match_Type.ob_type =
|
Pattern_Type.ob_type = Match_Type.ob_type =
|
||||||
|
|
|
@ -1912,9 +1912,7 @@ Tkinter_Flatten(PyObject* self, PyObject* args)
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
Tkinter_Create(self, args)
|
Tkinter_Create(PyObject *self, PyObject *args)
|
||||||
PyObject *self;
|
|
||||||
PyObject *args;
|
|
||||||
{
|
{
|
||||||
char *screenName = NULL;
|
char *screenName = NULL;
|
||||||
char *baseName = NULL;
|
char *baseName = NULL;
|
||||||
|
@ -1967,7 +1965,7 @@ MyFileProc(void *clientData, int mask)
|
||||||
static PyThreadState *event_tstate = NULL;
|
static PyThreadState *event_tstate = NULL;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
EventHook()
|
EventHook(void)
|
||||||
{
|
{
|
||||||
#ifndef MS_WINDOWS
|
#ifndef MS_WINDOWS
|
||||||
int tfile;
|
int tfile;
|
||||||
|
@ -2026,7 +2024,7 @@ EventHook()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
EnableEventHook()
|
EnableEventHook(void)
|
||||||
{
|
{
|
||||||
#ifdef WAIT_FOR_STDIN
|
#ifdef WAIT_FOR_STDIN
|
||||||
if (PyOS_InputHook == NULL) {
|
if (PyOS_InputHook == NULL) {
|
||||||
|
@ -2039,7 +2037,7 @@ EnableEventHook()
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
DisableEventHook()
|
DisableEventHook(void)
|
||||||
{
|
{
|
||||||
#ifdef WAIT_FOR_STDIN
|
#ifdef WAIT_FOR_STDIN
|
||||||
if (Tk_GetNumMainWindows() == 0 && PyOS_InputHook == EventHook) {
|
if (Tk_GetNumMainWindows() == 0 && PyOS_InputHook == EventHook) {
|
||||||
|
@ -2071,7 +2069,7 @@ ins_string(PyObject *d, char *name, char *val)
|
||||||
|
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
init_tkinter()
|
init_tkinter(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
@ -2218,7 +2216,7 @@ init_tkinter_shlib(CFragInitBlockPtr data)
|
||||||
** the resources from the application. Again, we ignore errors.
|
** the resources from the application. Again, we ignore errors.
|
||||||
*/
|
*/
|
||||||
static
|
static
|
||||||
mac_addlibresources()
|
mac_addlibresources(void)
|
||||||
{
|
{
|
||||||
if ( !loaded_from_shlib )
|
if ( !loaded_from_shlib )
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -2037,7 +2037,7 @@ static char al_module_documentation[] =
|
||||||
;
|
;
|
||||||
|
|
||||||
void
|
void
|
||||||
inital()
|
inital(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *x;
|
PyObject *m, *d, *x;
|
||||||
|
|
||||||
|
|
|
@ -1407,7 +1407,7 @@ statichere PyTypeObject Arraytype = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initarray()
|
initarray(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
|
|
@ -284,10 +284,7 @@ audioop_rms(PyObject *self, PyObject *args)
|
||||||
return PyInt_FromLong(val);
|
return PyInt_FromLong(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
static double _sum2(a, b, len)
|
static double _sum2(short *a, short *b, int len)
|
||||||
short *a;
|
|
||||||
short *b;
|
|
||||||
int len;
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
double sum = 0.0;
|
double sum = 0.0;
|
||||||
|
@ -899,8 +896,7 @@ audioop_lin2lin(PyObject *self, PyObject *args)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
gcd(a, b)
|
gcd(int a, int b)
|
||||||
int a, b;
|
|
||||||
{
|
{
|
||||||
while (b > 0) {
|
while (b > 0) {
|
||||||
int tmp = a % b;
|
int tmp = a % b;
|
||||||
|
@ -1344,7 +1340,7 @@ static PyMethodDef audioop_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initaudioop()
|
initaudioop(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
m = Py_InitModule("audioop", audioop_methods);
|
m = Py_InitModule("audioop", audioop_methods);
|
||||||
|
|
|
@ -899,7 +899,7 @@ static struct PyMethodDef binascii_module_methods[] = {
|
||||||
static char doc_binascii[] = "Conversion between binary data and ASCII";
|
static char doc_binascii[] = "Conversion between binary data and ASCII";
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initbinascii()
|
initbinascii(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *x;
|
PyObject *m, *d, *x;
|
||||||
|
|
||||||
|
|
|
@ -766,7 +766,7 @@ static PyMethodDef CD_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
initcd()
|
initcd(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
|
|
@ -978,7 +978,7 @@ static PyMethodDef cl_methods[] = {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
initcl()
|
initcl(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *x;
|
PyObject *m, *d, *x;
|
||||||
|
|
||||||
|
|
|
@ -316,7 +316,7 @@ Return the hyperbolic tangent of x.";
|
||||||
/* And now the glue to make them available from Python: */
|
/* And now the glue to make them available from Python: */
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
math_error()
|
math_error(void)
|
||||||
{
|
{
|
||||||
if (errno == EDOM)
|
if (errno == EDOM)
|
||||||
PyErr_SetString(PyExc_ValueError, "math domain error");
|
PyErr_SetString(PyExc_ValueError, "math domain error");
|
||||||
|
@ -394,7 +394,7 @@ static PyMethodDef cmath_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initcmath()
|
initcmath(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *v;
|
PyObject *m, *d, *v;
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ static PyMethodDef crypt_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initcrypt()
|
initcrypt(void)
|
||||||
{
|
{
|
||||||
Py_InitModule("crypt", crypt_methods);
|
Py_InitModule("crypt", crypt_methods);
|
||||||
}
|
}
|
||||||
|
|
|
@ -191,7 +191,7 @@ static PyMethodDef dl_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
initdl()
|
initdl(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *x;
|
PyObject *m, *d, *x;
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ To map error codes to error messages, use the function os.strerror(),\n\
|
||||||
e.g. os.strerror(2) could return 'No such file or directory'.";
|
e.g. os.strerror(2) could return 'No such file or directory'.";
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initerrno()
|
initerrno(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *de;
|
PyObject *m, *d, *de;
|
||||||
m = Py_InitModule3("errno", errno_methods, errno__doc__);
|
m = Py_InitModule3("errno", errno_methods, errno__doc__);
|
||||||
|
|
|
@ -312,7 +312,7 @@ all_ins(PyObject* d)
|
||||||
}
|
}
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initfcntl()
|
initfcntl(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
|
|
@ -2133,7 +2133,7 @@ static PyMethodDef forms_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initfl()
|
initfl(void)
|
||||||
{
|
{
|
||||||
Py_InitModule("fl", forms_methods);
|
Py_InitModule("fl", forms_methods);
|
||||||
foreground();
|
foreground();
|
||||||
|
|
|
@ -278,7 +278,7 @@ static PyMethodDef fm_methods[] = {
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
initfm()
|
initfm(void)
|
||||||
{
|
{
|
||||||
Py_InitModule("fm", fm_methods);
|
Py_InitModule("fm", fm_methods);
|
||||||
fminit();
|
fminit();
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
Py_GetBuildInfo()
|
Py_GetBuildInfo(void)
|
||||||
{
|
{
|
||||||
static char buildinfo[50];
|
static char buildinfo[50];
|
||||||
sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
|
sprintf(buildinfo, "#%d, %.20s, %.9s", BUILD, DATE, TIME);
|
||||||
|
|
|
@ -347,7 +347,7 @@ search_for_exec_prefix(char *argv0_path, char *home)
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
calculate_path()
|
calculate_path(void)
|
||||||
{
|
{
|
||||||
extern char *Py_GetProgramName();
|
extern char *Py_GetProgramName();
|
||||||
|
|
||||||
|
@ -572,7 +572,7 @@ calculate_path()
|
||||||
/* External interface */
|
/* External interface */
|
||||||
|
|
||||||
char *
|
char *
|
||||||
Py_GetPath()
|
Py_GetPath(void)
|
||||||
{
|
{
|
||||||
if (!module_search_path)
|
if (!module_search_path)
|
||||||
calculate_path();
|
calculate_path();
|
||||||
|
@ -580,7 +580,7 @@ Py_GetPath()
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
Py_GetPrefix()
|
Py_GetPrefix(void)
|
||||||
{
|
{
|
||||||
if (!module_search_path)
|
if (!module_search_path)
|
||||||
calculate_path();
|
calculate_path();
|
||||||
|
@ -588,7 +588,7 @@ Py_GetPrefix()
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
Py_GetExecPrefix()
|
Py_GetExecPrefix(void)
|
||||||
{
|
{
|
||||||
if (!module_search_path)
|
if (!module_search_path)
|
||||||
calculate_path();
|
calculate_path();
|
||||||
|
@ -596,7 +596,7 @@ Py_GetExecPrefix()
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
Py_GetProgramFullPath()
|
Py_GetProgramFullPath(void)
|
||||||
{
|
{
|
||||||
if (!module_search_path)
|
if (!module_search_path)
|
||||||
calculate_path();
|
calculate_path();
|
||||||
|
|
|
@ -7633,7 +7633,7 @@ static struct PyMethodDef gl_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
initgl()
|
initgl(void)
|
||||||
{
|
{
|
||||||
(void) Py_InitModule("gl", gl_methods);
|
(void) Py_InitModule("gl", gl_methods);
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,7 +132,7 @@ complete membership information.)";
|
||||||
|
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initgrp()
|
initgrp(void)
|
||||||
{
|
{
|
||||||
Py_InitModule3("grp", grp_methods, grp__doc__);
|
Py_InitModule3("grp", grp_methods, grp__doc__);
|
||||||
}
|
}
|
||||||
|
|
|
@ -706,7 +706,7 @@ static PyMethodDef imageop_methods[] = {
|
||||||
|
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initimageop()
|
initimageop(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
m = Py_InitModule("imageop", imageop_methods);
|
m = Py_InitModule("imageop", imageop_methods);
|
||||||
|
|
|
@ -509,7 +509,7 @@ static PyMethodDef imgfile_methods[] = {
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
initimgfile()
|
initimgfile(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
m = Py_InitModule("imgfile", imgfile_methods);
|
m = Py_InitModule("imgfile", imgfile_methods);
|
||||||
|
|
|
@ -384,7 +384,7 @@ static PyMethodDef linuxaudiodev_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
initlinuxaudiodev()
|
initlinuxaudiodev(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *x;
|
PyObject *m, *d, *x;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ extern double modf (double, double *);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
math_error()
|
math_error(void)
|
||||||
{
|
{
|
||||||
if (errno == EDOM)
|
if (errno == EDOM)
|
||||||
PyErr_SetString(PyExc_ValueError, "math domain error");
|
PyErr_SetString(PyExc_ValueError, "math domain error");
|
||||||
|
@ -259,7 +259,7 @@ static char module_doc [] =
|
||||||
mathematical functions defined by the C standard.";
|
mathematical functions defined by the C standard.";
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initmath()
|
initmath(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *v;
|
PyObject *m, *d, *v;
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ staticforward PyTypeObject MD5type;
|
||||||
#define is_md5object(v) ((v)->ob_type == &MD5type)
|
#define is_md5object(v) ((v)->ob_type == &MD5type)
|
||||||
|
|
||||||
static md5object *
|
static md5object *
|
||||||
newmd5object()
|
newmd5object(void)
|
||||||
{
|
{
|
||||||
md5object *md5p;
|
md5object *md5p;
|
||||||
|
|
||||||
|
@ -236,7 +236,7 @@ static PyMethodDef md5_functions[] = {
|
||||||
/* Initialize this module. */
|
/* Initialize this module. */
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initmd5()
|
initmd5(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ static const char initialiser_name[] = "mpz";
|
||||||
/* #define MPZ_DEBUG */
|
/* #define MPZ_DEBUG */
|
||||||
|
|
||||||
static mpzobject *
|
static mpzobject *
|
||||||
newmpzobject()
|
newmpzobject(void)
|
||||||
{
|
{
|
||||||
mpzobject *mpzp;
|
mpzobject *mpzp;
|
||||||
|
|
||||||
|
@ -1632,8 +1632,7 @@ static PyMethodDef mpz_functions[] = {
|
||||||
#ifdef MP_TEST_ALLOC
|
#ifdef MP_TEST_ALLOC
|
||||||
#define MP_TEST_SIZE 4
|
#define MP_TEST_SIZE 4
|
||||||
static const char mp_test_magic[MP_TEST_SIZE] = {'\xAA','\xAA','\xAA','\xAA'};
|
static const char mp_test_magic[MP_TEST_SIZE] = {'\xAA','\xAA','\xAA','\xAA'};
|
||||||
static mp_test_error( location )
|
static mp_test_error(int *location)
|
||||||
int *location;
|
|
||||||
{
|
{
|
||||||
/* assumptions: *alloc returns address divisible by 4,
|
/* assumptions: *alloc returns address divisible by 4,
|
||||||
mpz_* routines allocate in chunks divisible by four */
|
mpz_* routines allocate in chunks divisible by four */
|
||||||
|
@ -1716,7 +1715,7 @@ void mp_free(void *ptr, size_t size)
|
||||||
/* Initialize this module. */
|
/* Initialize this module. */
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initmpz()
|
initmpz(void)
|
||||||
{
|
{
|
||||||
PyObject *module;
|
PyObject *module;
|
||||||
PyObject *dict;
|
PyObject *dict;
|
||||||
|
|
|
@ -195,7 +195,7 @@ char new_doc[] =
|
||||||
You need to know a great deal about the interpreter to use this!";
|
You need to know a great deal about the interpreter to use this!";
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initnew()
|
initnew(void)
|
||||||
{
|
{
|
||||||
Py_InitModule4("new", new_methods, new_doc, (PyObject *)NULL,
|
Py_InitModule4("new", new_methods, new_doc, (PyObject *)NULL,
|
||||||
PYTHON_API_VERSION);
|
PYTHON_API_VERSION);
|
||||||
|
|
|
@ -295,7 +295,7 @@ nisproc_maplist_2(domainname *argp, CLIENT *clnt)
|
||||||
|
|
||||||
static
|
static
|
||||||
nismaplist *
|
nismaplist *
|
||||||
nis_maplist ()
|
nis_maplist (void)
|
||||||
{
|
{
|
||||||
nisresp_maplist *list;
|
nisresp_maplist *list;
|
||||||
char *dom;
|
char *dom;
|
||||||
|
@ -371,7 +371,7 @@ static PyMethodDef nis_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
initnis ()
|
initnis (void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
m = Py_InitModule("nis", nis_methods);
|
m = Py_InitModule("nis", nis_methods);
|
||||||
|
|
|
@ -247,7 +247,7 @@ spam2(delslice,__delslice__,
|
||||||
/* Initialization function for the module (*must* be called initoperator) */
|
/* Initialization function for the module (*must* be called initoperator) */
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initoperator()
|
initoperator(void)
|
||||||
{
|
{
|
||||||
/* Create the module and add the functions */
|
/* Create the module and add the functions */
|
||||||
Py_InitModule4("operator", operator_methods, operator_doc,
|
Py_InitModule4("operator", operator_methods, operator_doc,
|
||||||
|
|
|
@ -629,7 +629,7 @@ insint(PyObject *d, char *name, int value)
|
||||||
/* Initialization function for the module (*must* be called initpcre) */
|
/* Initialization function for the module (*must* be called initpcre) */
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initpcre()
|
initpcre(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
|
|
@ -284,7 +284,7 @@ extern char **environ;
|
||||||
#endif /* !_MSC_VER */
|
#endif /* !_MSC_VER */
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
convertenviron()
|
convertenviron(void)
|
||||||
{
|
{
|
||||||
PyObject *d;
|
PyObject *d;
|
||||||
char **e;
|
char **e;
|
||||||
|
@ -344,7 +344,7 @@ convertenviron()
|
||||||
/* Set a POSIX-specific error from errno, and return NULL */
|
/* Set a POSIX-specific error from errno, and return NULL */
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
posix_error()
|
posix_error(void)
|
||||||
{
|
{
|
||||||
return PyErr_SetFromErrno(PyExc_OSError);
|
return PyErr_SetFromErrno(PyExc_OSError);
|
||||||
}
|
}
|
||||||
|
@ -1916,9 +1916,7 @@ static char posix_getppid__doc__[] =
|
||||||
Return the parent's process id.";
|
Return the parent's process id.";
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
posix_getppid(self, args)
|
posix_getppid(PyObject *self, PyObject *args)
|
||||||
PyObject *self;
|
|
||||||
PyObject *args;
|
|
||||||
{
|
{
|
||||||
if (!PyArg_ParseTuple(args, ":getppid"))
|
if (!PyArg_ParseTuple(args, ":getppid"))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -2856,7 +2854,7 @@ posix_symlink(PyObject *self, PyObject *args)
|
||||||
|
|
||||||
#if defined(PYCC_VACPP) && defined(PYOS_OS2)
|
#if defined(PYCC_VACPP) && defined(PYOS_OS2)
|
||||||
static long
|
static long
|
||||||
system_uptime()
|
system_uptime(void)
|
||||||
{
|
{
|
||||||
ULONG value = 0;
|
ULONG value = 0;
|
||||||
|
|
||||||
|
@ -5196,8 +5194,7 @@ static int insertvalues(PyObject *d)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
all_ins(d)
|
all_ins(PyObject *d)
|
||||||
PyObject* d;
|
|
||||||
{
|
{
|
||||||
#ifdef F_OK
|
#ifdef F_OK
|
||||||
if (ins(d, "F_OK", (long)F_OK)) return -1;
|
if (ins(d, "F_OK", (long)F_OK)) return -1;
|
||||||
|
@ -5295,7 +5292,7 @@ all_ins(d)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
INITFUNC()
|
INITFUNC(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *v;
|
PyObject *m, *d, *v;
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@ static PyMethodDef pwd_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initpwd()
|
initpwd(void)
|
||||||
{
|
{
|
||||||
Py_InitModule4("pwd", pwd_methods, pwd__doc__,
|
Py_InitModule4("pwd", pwd_methods, pwd__doc__,
|
||||||
(PyObject *)NULL, PYTHON_API_VERSION);
|
(PyObject *)NULL, PYTHON_API_VERSION);
|
||||||
|
|
|
@ -396,7 +396,7 @@ flex_complete(char *text, int start, int end)
|
||||||
/* Helper to initialize GNU readline properly. */
|
/* Helper to initialize GNU readline properly. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
setup_readline()
|
setup_readline(void)
|
||||||
{
|
{
|
||||||
rl_readline_name = "python";
|
rl_readline_name = "python";
|
||||||
/* Force rebind of TAB to insert-tab */
|
/* Force rebind of TAB to insert-tab */
|
||||||
|
@ -485,7 +485,7 @@ static char doc_module[] =
|
||||||
"Importing this module enables command line editing using GNU readline.";
|
"Importing this module enables command line editing using GNU readline.";
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initreadline()
|
initreadline(void)
|
||||||
{
|
{
|
||||||
PyObject *m;
|
PyObject *m;
|
||||||
|
|
||||||
|
|
|
@ -657,7 +657,7 @@ static struct PyMethodDef regex_global_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initregex()
|
initregex(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *v;
|
PyObject *m, *d, *v;
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -446,7 +446,7 @@ static int regexp_ansi_sequences;
|
||||||
|
|
||||||
unsigned char re_syntax_table[256];
|
unsigned char re_syntax_table[256];
|
||||||
|
|
||||||
void re_compile_initialize()
|
void re_compile_initialize(void)
|
||||||
{
|
{
|
||||||
int a;
|
int a;
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,7 @@ ins(PyObject *dict, char *name, int value)
|
||||||
/* errors will be checked by initresource() */
|
/* errors will be checked by initresource() */
|
||||||
}
|
}
|
||||||
|
|
||||||
void initresource()
|
void initresource(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
|
|
@ -755,7 +755,7 @@ rgbimg_methods[] = {
|
||||||
|
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initrgbimg()
|
initrgbimg(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
m = Py_InitModule("rgbimg", rgbimg_methods);
|
m = Py_InitModule("rgbimg", rgbimg_methods);
|
||||||
|
|
|
@ -618,7 +618,7 @@ rotor_methods[] = {
|
||||||
|
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initrotor()
|
initrotor(void)
|
||||||
{
|
{
|
||||||
(void)Py_InitModule("rotor", rotor_methods);
|
(void)Py_InitModule("rotor", rotor_methods);
|
||||||
}
|
}
|
||||||
|
|
|
@ -337,7 +337,7 @@ static char module_doc[] =
|
||||||
On Windows, only sockets are supported; on Unix, all file descriptors.";
|
On Windows, only sockets are supported; on Unix, all file descriptors.";
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initselect()
|
initselect(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
m = Py_InitModule3("select", select_methods, module_doc);
|
m = Py_InitModule3("select", select_methods, module_doc);
|
||||||
|
|
|
@ -59,7 +59,7 @@ static PyMethodDef sgi_methods[] = {
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
initsgi()
|
initsgi(void)
|
||||||
{
|
{
|
||||||
Py_InitModule("sgi", sgi_methods);
|
Py_InitModule("sgi", sgi_methods);
|
||||||
}
|
}
|
||||||
|
|
|
@ -350,7 +350,7 @@ staticforward PyTypeObject SHAtype;
|
||||||
|
|
||||||
|
|
||||||
static SHAobject *
|
static SHAobject *
|
||||||
newSHAobject()
|
newSHAobject(void)
|
||||||
{
|
{
|
||||||
return (SHAobject *)PyObject_New(SHAobject, &SHAtype);
|
return (SHAobject *)PyObject_New(SHAobject, &SHAtype);
|
||||||
}
|
}
|
||||||
|
@ -538,7 +538,7 @@ static struct PyMethodDef SHA_functions[] = {
|
||||||
Py_XDECREF(o); }
|
Py_XDECREF(o); }
|
||||||
|
|
||||||
void
|
void
|
||||||
initsha()
|
initsha(void)
|
||||||
{
|
{
|
||||||
PyObject *d, *m;
|
PyObject *d, *m;
|
||||||
|
|
||||||
|
|
|
@ -312,7 +312,7 @@ A signal handler function is called with two arguments:\n\
|
||||||
the first is the signal number, the second is the interrupted stack frame.";
|
the first is the signal number, the second is the interrupted stack frame.";
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initsignal()
|
initsignal(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *x;
|
PyObject *m, *d, *x;
|
||||||
int i;
|
int i;
|
||||||
|
@ -553,7 +553,7 @@ initsignal()
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
finisignal()
|
finisignal(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
PyObject *func;
|
PyObject *func;
|
||||||
|
@ -583,7 +583,7 @@ finisignal()
|
||||||
|
|
||||||
/* Declared in pyerrors.h */
|
/* Declared in pyerrors.h */
|
||||||
int
|
int
|
||||||
PyErr_CheckSignals()
|
PyErr_CheckSignals(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
PyObject *f;
|
PyObject *f;
|
||||||
|
@ -623,7 +623,7 @@ PyErr_CheckSignals()
|
||||||
* Declared in pyerrors.h
|
* Declared in pyerrors.h
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
PyErr_SetInterrupt()
|
PyErr_SetInterrupt(void)
|
||||||
{
|
{
|
||||||
is_tripped++;
|
is_tripped++;
|
||||||
Handlers[SIGINT].tripped = 1;
|
Handlers[SIGINT].tripped = 1;
|
||||||
|
@ -631,20 +631,20 @@ PyErr_SetInterrupt()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
PyOS_InitInterrupts()
|
PyOS_InitInterrupts(void)
|
||||||
{
|
{
|
||||||
initsignal();
|
initsignal();
|
||||||
_PyImport_FixupExtension("signal", "signal");
|
_PyImport_FixupExtension("signal", "signal");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
PyOS_FiniInterrupts()
|
PyOS_FiniInterrupts(void)
|
||||||
{
|
{
|
||||||
finisignal();
|
finisignal();
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
PyOS_InterruptOccurred()
|
PyOS_InterruptOccurred(void)
|
||||||
{
|
{
|
||||||
if (Handlers[SIGINT].tripped) {
|
if (Handlers[SIGINT].tripped) {
|
||||||
#ifdef WITH_THREAD
|
#ifdef WITH_THREAD
|
||||||
|
@ -658,7 +658,7 @@ PyOS_InterruptOccurred()
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
PyOS_AfterFork()
|
PyOS_AfterFork(void)
|
||||||
{
|
{
|
||||||
#ifdef WITH_THREAD
|
#ifdef WITH_THREAD
|
||||||
main_thread = PyThread_get_thread_ident();
|
main_thread = PyThread_get_thread_ident();
|
||||||
|
|
|
@ -228,7 +228,7 @@ static PyObject *SSLErrorObject;
|
||||||
and return a NULL pointer from a function. */
|
and return a NULL pointer from a function. */
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
PySocket_Err()
|
PySocket_Err(void)
|
||||||
{
|
{
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
if (WSAGetLastError()) {
|
if (WSAGetLastError()) {
|
||||||
|
@ -1437,9 +1437,7 @@ Return the IP address (a string of the form '255.255.255.255') for a host.";
|
||||||
/* Convenience function common to gethostbyname_ex and gethostbyaddr */
|
/* Convenience function common to gethostbyname_ex and gethostbyaddr */
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
gethost_common(h, addr)
|
gethost_common(struct hostent *h, struct sockaddr_in *addr)
|
||||||
struct hostent *h;
|
|
||||||
struct sockaddr_in *addr;
|
|
||||||
{
|
{
|
||||||
char **pch;
|
char **pch;
|
||||||
PyObject *rtn_tuple = (PyObject *)NULL;
|
PyObject *rtn_tuple = (PyObject *)NULL;
|
||||||
|
@ -2185,13 +2183,13 @@ insint(PyObject *d, char *name, int value)
|
||||||
/* Additional initialization and cleanup for NT/Windows */
|
/* Additional initialization and cleanup for NT/Windows */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
NTcleanup()
|
NTcleanup(void)
|
||||||
{
|
{
|
||||||
WSACleanup();
|
WSACleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
NTinit()
|
NTinit(void)
|
||||||
{
|
{
|
||||||
WSADATA WSAData;
|
WSADATA WSAData;
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -2225,13 +2223,13 @@ NTinit()
|
||||||
/* Additional initialization and cleanup for OS/2 */
|
/* Additional initialization and cleanup for OS/2 */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
OS2cleanup()
|
OS2cleanup(void)
|
||||||
{
|
{
|
||||||
/* No cleanup is necessary for OS/2 Sockets */
|
/* No cleanup is necessary for OS/2 Sockets */
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
OS2init()
|
OS2init(void)
|
||||||
{
|
{
|
||||||
char reason[64];
|
char reason[64];
|
||||||
int rc = sock_init();
|
int rc = sock_init();
|
||||||
|
|
|
@ -167,7 +167,7 @@ static PyMethodDef SoundexMethods[] =
|
||||||
/* Register the method table.
|
/* Register the method table.
|
||||||
*/
|
*/
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initsoundex()
|
initsoundex(void)
|
||||||
{
|
{
|
||||||
(void) Py_InitModule4("soundex",
|
(void) Py_InitModule4("soundex",
|
||||||
SoundexMethods,
|
SoundexMethods,
|
||||||
|
|
|
@ -1180,7 +1180,7 @@ strop_methods[] = {
|
||||||
|
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initstrop()
|
initstrop(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *s;
|
PyObject *m, *d, *s;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
|
|
@ -1222,7 +1222,7 @@ static PyMethodDef struct_methods[] = {
|
||||||
/* Module initialization */
|
/* Module initialization */
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initstruct()
|
initstruct(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
|
|
@ -482,7 +482,7 @@ static PyMethodDef sunaudiodev_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
initsunaudiodev()
|
initsunaudiodev(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ static PyObject *newcaptureobject(svobject *, void *, int);
|
||||||
|
|
||||||
/* Set a SV-specific error from svideo_errno and return NULL */
|
/* Set a SV-specific error from svideo_errno and return NULL */
|
||||||
static PyObject *
|
static PyObject *
|
||||||
sv_error()
|
sv_error(void)
|
||||||
{
|
{
|
||||||
PyErr_SetString(SvError, svStrerror(svideo_errno));
|
PyErr_SetString(SvError, svStrerror(svideo_errno));
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -961,7 +961,7 @@ static PyMethodDef sv_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
initsv()
|
initsv(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
|
|
@ -168,7 +168,7 @@ ins(PyObject *d, char *s, long x)
|
||||||
/* Initialization function for the module */
|
/* Initialization function for the module */
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initsyslog()
|
initsyslog(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ static void NotifierExitHandler _ANSI_ARGS_((ClientData clientData));
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
InitNotifier()
|
InitNotifier(void)
|
||||||
{
|
{
|
||||||
initialized = 1;
|
initialized = 1;
|
||||||
memset(¬ifier, 0, sizeof(notifier));
|
memset(¬ifier, 0, sizeof(notifier));
|
||||||
|
@ -507,7 +507,7 @@ Tcl_ServiceEvent(flags)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
Tcl_GetServiceMode()
|
Tcl_GetServiceMode(void)
|
||||||
{
|
{
|
||||||
if (!initialized) {
|
if (!initialized) {
|
||||||
InitNotifier();
|
InitNotifier();
|
||||||
|
@ -799,7 +799,7 @@ Tcl_DoOneEvent(flags)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
Tcl_ServiceAll()
|
Tcl_ServiceAll(void)
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
EventSource *sourcePtr;
|
EventSource *sourcePtr;
|
||||||
|
@ -894,7 +894,7 @@ Tcl_ServiceAll()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
PyTcl_WaitUntilEvent()
|
PyTcl_WaitUntilEvent(void)
|
||||||
{
|
{
|
||||||
int flags = TCL_ALL_EVENTS;
|
int flags = TCL_ALL_EVENTS;
|
||||||
int result = 0, oldMode;
|
int result = 0, oldMode;
|
||||||
|
|
|
@ -288,7 +288,7 @@ static PyMethodDef termios_methods[] =
|
||||||
};
|
};
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
PyInit_termios()
|
PyInit_termios(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ typedef struct {
|
||||||
staticforward PyTypeObject Locktype;
|
staticforward PyTypeObject Locktype;
|
||||||
|
|
||||||
static lockobject *
|
static lockobject *
|
||||||
newlockobject()
|
newlockobject(void)
|
||||||
{
|
{
|
||||||
lockobject *self;
|
lockobject *self;
|
||||||
self = PyObject_New(lockobject, &Locktype);
|
self = PyObject_New(lockobject, &Locktype);
|
||||||
|
@ -377,7 +377,7 @@ unlock it. A thread attempting to lock a lock that it has already locked\n\
|
||||||
will block until another thread unlocks it. Deadlocks may ensue.";
|
will block until another thread unlocks it. Deadlocks may ensue.";
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initthread()
|
initthread(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ static PyObject *moddict;
|
||||||
static long timezone;
|
static long timezone;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
initmactimezone()
|
initmactimezone(void)
|
||||||
{
|
{
|
||||||
MachineLocation loc;
|
MachineLocation loc;
|
||||||
long delta;
|
long delta;
|
||||||
|
@ -579,7 +579,7 @@ strptime() -- parse string to time tuple according to format specification\n\
|
||||||
|
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
inittime()
|
inittime(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
char *p;
|
char *p;
|
||||||
|
@ -667,7 +667,7 @@ inittime()
|
||||||
/* Implement floattime() for various platforms */
|
/* Implement floattime() for various platforms */
|
||||||
|
|
||||||
static double
|
static double
|
||||||
floattime()
|
floattime(void)
|
||||||
{
|
{
|
||||||
/* There are three ways to get the time:
|
/* There are three ways to get the time:
|
||||||
(1) gettimeofday() -- resolution in microseconds
|
(1) gettimeofday() -- resolution in microseconds
|
||||||
|
|
|
@ -69,7 +69,7 @@ static PyMethodDef timing_methods[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
DL_EXPORT(void) inittiming()
|
DL_EXPORT(void) inittiming(void)
|
||||||
{
|
{
|
||||||
(void)Py_InitModule("timing", timing_methods);
|
(void)Py_InitModule("timing", timing_methods);
|
||||||
if (PyErr_Occurred())
|
if (PyErr_Occurred())
|
||||||
|
|
|
@ -273,7 +273,7 @@ static PyMethodDef unicodedata_functions[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initunicodedata()
|
initunicodedata(void)
|
||||||
{
|
{
|
||||||
Py_InitModule("unicodedata", unicodedata_functions);
|
Py_InitModule("unicodedata", unicodedata_functions);
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,7 +202,7 @@ static PyMethodDef xx_methods[] = {
|
||||||
/* Initialization function for the module (*must* be called initxx) */
|
/* Initialization function for the module (*must* be called initxx) */
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
initxx()
|
initxx(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
|
|
||||||
|
|
|
@ -829,7 +829,7 @@ static char zlib_module_documentation[]=
|
||||||
;
|
;
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
PyInit_zlib()
|
PyInit_zlib(void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d, *ver;
|
PyObject *m, *d, *ver;
|
||||||
Comptype.ob_type = &PyType_Type;
|
Comptype.ob_type = &PyType_Type;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue