summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-24 14:43:35 (GMT)
committerThomas Wouters <thomas@python.org>2000-07-24 14:43:35 (GMT)
commit58d0510245c65cff2ded9d3923bf1ef2b85f4214 (patch)
treeb10bce44a0eb8a479190f18243f511a0c64f2be6 /Modules
parent8ec68fded2a99b2c2e2e637e42839741fedbf0a1 (diff)
downloadcpython-58d0510245c65cff2ded9d3923bf1ef2b85f4214.zip
cpython-58d0510245c65cff2ded9d3923bf1ef2b85f4214.tar.gz
cpython-58d0510245c65cff2ded9d3923bf1ef2b85f4214.tar.bz2
ANSIfy some more forward declarations.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_tkinter.c4
-rw-r--r--Modules/bsddbmodule.c2
-rw-r--r--Modules/cPickle.c8
-rw-r--r--Modules/cStringIO.c2
-rw-r--r--Modules/dbmmodule.c2
-rw-r--r--Modules/gdbmmodule.c2
-rw-r--r--Modules/sunaudiodev.c4
-rw-r--r--Modules/timemodule.c2
8 files changed, 13 insertions, 13 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index f61b0de..1569529 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -433,8 +433,8 @@ Tcl_AppInit(Tcl_Interp *interp)
* `tkMain.c'.
*/
-static void EnableEventHook(); /* Forward */
-static void DisableEventHook(); /* Forward */
+static void EnableEventHook(void); /* Forward */
+static void DisableEventHook(void); /* Forward */
static TkappObject *
Tkapp_New(char *screenName, char *baseName, char *className, int interactive)
diff --git a/Modules/bsddbmodule.c b/Modules/bsddbmodule.c
index c211d23..a956ada 100644
--- a/Modules/bsddbmodule.c
+++ b/Modules/bsddbmodule.c
@@ -786,7 +786,7 @@ static PyMethodDef bsddbmodule_methods[] = {
};
DL_EXPORT(void)
-initbsddb() {
+initbsddb(void) {
PyObject *m, *d;
Bsddbtype.ob_type = &PyType_Type;
diff --git a/Modules/cPickle.c b/Modules/cPickle.c
index d6a03d3..a7b275d 100644
--- a/Modules/cPickle.c
+++ b/Modules/cPickle.c
@@ -180,7 +180,7 @@ static PyTypeObject PdataType = {
#define Pdata_Check(O) ((O)->ob_type == &PdataType)
static PyObject *
-Pdata_New() {
+Pdata_New(void) {
Pdata *self;
UNLESS (self = PyObject_New(Pdata, &PdataType)) return NULL;
@@ -193,7 +193,7 @@ Pdata_New() {
}
static int
-stackUnderflow() {
+stackUnderflow(void) {
PyErr_SetString(UnpicklingError, "unpickling stack underflow");
return -1;
}
@@ -2418,7 +2418,7 @@ load_none(Unpicklerobject *self) {
}
static int
-bad_readline() {
+bad_readline(void) {
PyErr_SetString(UnpicklingError, "pickle data was truncated");
return -1;
}
@@ -4516,7 +4516,7 @@ init_stuff(PyObject *module, PyObject *module_dict) {
#define DL_EXPORT(RTYPE) RTYPE
#endif
DL_EXPORT(void)
-initcPickle() {
+initcPickle(void) {
PyObject *m, *d, *v;
char *rev="1.71";
PyObject *format_version;
diff --git a/Modules/cStringIO.c b/Modules/cStringIO.c
index bda60dd..5be59f4 100644
--- a/Modules/cStringIO.c
+++ b/Modules/cStringIO.c
@@ -639,7 +639,7 @@ static struct PycStringIO_CAPI CAPI = {
#define DL_EXPORT(RTYPE) RTYPE
#endif
DL_EXPORT(void)
-initcStringIO() {
+initcStringIO(void) {
PyObject *m, *d, *v;
diff --git a/Modules/dbmmodule.c b/Modules/dbmmodule.c
index cad99ba..b95c0ba 100644
--- a/Modules/dbmmodule.c
+++ b/Modules/dbmmodule.c
@@ -272,7 +272,7 @@ static PyMethodDef dbmmodule_methods[] = {
};
DL_EXPORT(void)
-initdbm() {
+initdbm(void) {
PyObject *m, *d;
m = Py_InitModule("dbm", dbmmodule_methods);
diff --git a/Modules/gdbmmodule.c b/Modules/gdbmmodule.c
index 2c5bdbe..6d2e6ce 100644
--- a/Modules/gdbmmodule.c
+++ b/Modules/gdbmmodule.c
@@ -474,7 +474,7 @@ static PyMethodDef dbmmodule_methods[] = {
};
DL_EXPORT(void)
-initgdbm() {
+initgdbm(void) {
PyObject *m, *d;
Dbmtype.ob_type = &PyType_Type;
diff --git a/Modules/sunaudiodev.c b/Modules/sunaudiodev.c
index 4f9d2bb..2774e05 100644
--- a/Modules/sunaudiodev.c
+++ b/Modules/sunaudiodev.c
@@ -51,7 +51,7 @@ typedef struct {
staticforward PyTypeObject Sadtype;
staticforward PyTypeObject Sadstatustype;
-static sadstatusobject *sads_alloc(); /* Forward */
+static sadstatusobject *sads_alloc(void); /* Forward */
static PyObject *SunAudioError;
@@ -364,7 +364,7 @@ sad_getattr(sadobject *xp, char *name)
/* ----------------------------------------------------------------- */
static sadstatusobject *
-sads_alloc() {
+sads_alloc(void) {
return PyObject_New(sadstatusobject, &Sadstatustype);
}
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index cb6f54e..189476c 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -91,7 +91,7 @@ extern int ftime(struct timeb *);
/* Forward declarations */
static int floatsleep(double);
-static double floattime();
+static double floattime(double);
/* For Y2K check */
static PyObject *moddict;