diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-09-04 22:20:39 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-09-04 22:20:39 (GMT) |
commit | 1767f9360346cd7e312be20d49bd2538f5864910 (patch) | |
tree | 60cb4c98f2e7c69073cfa808a1ae135886cf667f /Mac/Modules/icgluemodule.c | |
parent | 06d2e1af3579f6a698a84b81dfda0bacb6263f7d (diff) | |
download | cpython-1767f9360346cd7e312be20d49bd2538f5864910.zip cpython-1767f9360346cd7e312be20d49bd2538f5864910.tar.gz cpython-1767f9360346cd7e312be20d49bd2538f5864910.tar.bz2 |
Added prototypes to silence gcc strict-prototype warnings.
Fixed a few missing return values.
Diffstat (limited to 'Mac/Modules/icgluemodule.c')
-rw-r--r-- | Mac/Modules/icgluemodule.c | 81 |
1 files changed, 21 insertions, 60 deletions
diff --git a/Mac/Modules/icgluemodule.c b/Mac/Modules/icgluemodule.c index bd616db..88e34b5 100644 --- a/Mac/Modules/icgluemodule.c +++ b/Mac/Modules/icgluemodule.c @@ -88,9 +88,7 @@ static char ici_ICFindConfigFile__doc__[] = ; static PyObject * -ici_ICFindConfigFile(self, args) - iciobject *self; - PyObject *args; +ici_ICFindConfigFile(iciobject *self, PyObject *args) { ICError err; @@ -108,9 +106,7 @@ static char ici_ICFindUserConfigFile__doc__[] = ; static PyObject * -ici_ICFindUserConfigFile(self, args) - iciobject *self; - PyObject *args; +ici_ICFindUserConfigFile(iciobject *self, PyObject *args) { ICError err; ICDirSpec where; @@ -129,9 +125,7 @@ static char ici_ICChooseConfig__doc__[] = ; static PyObject * -ici_ICChooseConfig(self, args) - iciobject *self; - PyObject *args; +ici_ICChooseConfig(iciobject *self, PyObject *args) { ICError err; @@ -148,9 +142,7 @@ static char ici_ICChooseNewConfig__doc__[] = ; static PyObject * -ici_ICChooseNewConfig(self, args) - iciobject *self; - PyObject *args; +ici_ICChooseNewConfig(iciobject *self, PyObject *args) { ICError err; @@ -169,9 +161,7 @@ static char ici_ICGetSeed__doc__[] = ; static PyObject * -ici_ICGetSeed(self, args) - iciobject *self; - PyObject *args; +ici_ICGetSeed(iciobject *self, PyObject *args) { ICError err; long seed; @@ -189,9 +179,7 @@ static char ici_ICBegin__doc__[] = ; static PyObject * -ici_ICBegin(self, args) - iciobject *self; - PyObject *args; +ici_ICBegin(iciobject *self, PyObject *args) { ICError err; int perm; @@ -210,9 +198,7 @@ static char ici_ICFindPrefHandle__doc__[] = ; static PyObject * -ici_ICFindPrefHandle(self, args) - iciobject *self; - PyObject *args; +ici_ICFindPrefHandle(iciobject *self, PyObject *args) { ICError err; Str255 key; @@ -232,9 +218,7 @@ static char ici_ICSetPref__doc__[] = ; static PyObject * -ici_ICSetPref(self, args) - iciobject *self; - PyObject *args; +ici_ICSetPref(iciobject *self, PyObject *args) { ICError err; Str255 key; @@ -258,9 +242,7 @@ static char ici_ICCountPref__doc__[] = ; static PyObject * -ici_ICCountPref(self, args) - iciobject *self; - PyObject *args; +ici_ICCountPref(iciobject *self, PyObject *args) { ICError err; long count; @@ -278,9 +260,7 @@ static char ici_ICGetIndPref__doc__[] = ; static PyObject * -ici_ICGetIndPref(self, args) - iciobject *self; - PyObject *args; +ici_ICGetIndPref(iciobject *self, PyObject *args) { ICError err; long num; @@ -299,9 +279,7 @@ static char ici_ICDeletePref__doc__[] = ; static PyObject * -ici_ICDeletePref(self, args) - iciobject *self; - PyObject *args; +ici_ICDeletePref(iciobject *self, PyObject *args) { ICError err; Str255 key; @@ -320,9 +298,7 @@ static char ici_ICEnd__doc__[] = ; static PyObject * -ici_ICEnd(self, args) - iciobject *self; - PyObject *args; +ici_ICEnd(iciobject *self, PyObject *args) { ICError err; @@ -340,9 +316,7 @@ static char ici_ICEditPreferences__doc__[] = ; static PyObject * -ici_ICEditPreferences(self, args) - iciobject *self; - PyObject *args; +ici_ICEditPreferences(iciobject *self, PyObject *args) { ICError err; Str255 key; @@ -361,9 +335,7 @@ static char ici_ICParseURL__doc__[] = ; static PyObject * -ici_ICParseURL(self, args) - iciobject *self; - PyObject *args; +ici_ICParseURL(iciobject *self, PyObject *args) { ICError err; Str255 hint; @@ -387,9 +359,7 @@ static char ici_ICLaunchURL__doc__[] = ; static PyObject * -ici_ICLaunchURL(self, args) - iciobject *self; - PyObject *args; +ici_ICLaunchURL(iciobject *self, PyObject *args) { ICError err; Str255 hint; @@ -412,9 +382,7 @@ static char ici_ICMapFilename__doc__[] = ; static PyObject * -ici_ICMapFilename(self, args) - iciobject *self; - PyObject *args; +ici_ICMapFilename(iciobject *self, PyObject *args) { ICError err; Str255 filename; @@ -442,9 +410,7 @@ static char ici_ICMapTypeCreator__doc__[] = ; static PyObject * -ici_ICMapTypeCreator(self, args) - iciobject *self; - PyObject *args; +ici_ICMapTypeCreator(iciobject *self, PyObject *args) { ICError err; OSType type, creator; @@ -517,17 +483,14 @@ newiciobject(OSType creator) static void -ici_dealloc(self) - iciobject *self; +ici_dealloc(iciobject *self) { (void)ICStop(self->inst); PyMem_DEL(self); } static PyObject * -ici_getattr(self, name) - iciobject *self; - char *name; +ici_getattr(iciobject *self, char *name) { return Py_FindMethod(ici_methods, (PyObject *)self, name); } @@ -570,9 +533,7 @@ static char ic_ICStart__doc__[] = ; static PyObject * -ic_ICStart(self, args) - PyObject *self; /* Not used */ - PyObject *args; +ic_ICStart(PyObject *self, PyObject *args) { OSType creator; @@ -597,7 +558,7 @@ static char icglue_module_documentation[] = ; void -initicglue() +initicglue(void) { PyObject *m, *d; |