summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-11 21:16:03 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-07-11 21:16:03 (GMT)
commit9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0 (patch)
treec12e44689277430502086274a8cb1ab103a8d8be /Mac/Modules
parent5e80a7579918dca87a31725e379cb3ea79e2a7a5 (diff)
downloadcpython-9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0.zip
cpython-9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0.tar.gz
cpython-9ae898b415ad0758dbe1e1cb43f48f60bf8dfab0.tar.bz2
ANSIfication step 2: make sure all needed prototypes are available, and all needed
header files included.
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/macfsmodule.c11
-rw-r--r--Mac/Modules/macspeechmodule.c1
2 files changed, 7 insertions, 5 deletions
diff --git a/Mac/Modules/macfsmodule.c b/Mac/Modules/macfsmodule.c
index bdc1263..048b243 100644
--- a/Mac/Modules/macfsmodule.c
+++ b/Mac/Modules/macfsmodule.c
@@ -34,6 +34,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "getapplbycreator.h"
+/* Should this be in macglue.h? */
+extern FSSpec *mfs_GetFSSpecFSSpec(PyObject *);
+
static PyObject *ErrorObject;
/* ----------------------------------------------------- */
@@ -174,9 +177,8 @@ mfsa_getattr(self, name)
return Py_FindMethod(mfsa_methods, (PyObject *)self, name);
}
-mfsaobject *
-newmfsaobject(alias)
- AliasHandle alias;
+static mfsaobject *
+newmfsaobject(AliasHandle alias)
{
mfsaobject *self;
@@ -334,8 +336,7 @@ static PyTypeObject Mfsitype = {
** object is a python fsspec object, else NULL
*/
FSSpec *
-mfs_GetFSSpecFSSpec(self)
- PyObject *self;
+mfs_GetFSSpecFSSpec(PyObject *self)
{
if ( is_mfssobject(self) )
return &((mfssobject *)self)->fsspec;
diff --git a/Mac/Modules/macspeechmodule.c b/Mac/Modules/macspeechmodule.c
index accb7b2..a6fbddd 100644
--- a/Mac/Modules/macspeechmodule.c
+++ b/Mac/Modules/macspeechmodule.c
@@ -24,6 +24,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "Python.h"
+#include "macglue.h"
#include <Gestalt.h>
#include "Speech.h"