summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-03 23:53:40 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-07-03 23:53:40 (GMT)
commitfe38d2998fa18c0527e1e3bfca844fdd604fed8b (patch)
treea513e81d1c1c80747135e287a536ce07a59cf07b /Mac
parentdb6382941bf37c2568020194fcb30d2aab3cd065 (diff)
downloadcpython-fe38d2998fa18c0527e1e3bfca844fdd604fed8b.zip
cpython-fe38d2998fa18c0527e1e3bfca844fdd604fed8b.tar.gz
cpython-fe38d2998fa18c0527e1e3bfca844fdd604fed8b.tar.bz2
PyMac_FindModuleExtension now uses a size_t as its size parameter for compatibility.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Include/macglue.h2
-rw-r--r--Mac/Python/macimport.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h
index fe8d691..a3bfb90 100644
--- a/Mac/Include/macglue.h
+++ b/Mac/Include/macglue.h
@@ -93,7 +93,7 @@ int PyMac_FindResourceModule(PyStringObject *, char *, char *); /* Test for 'PYC
PyObject * PyMac_LoadResourceModule(char *, char *); /* Load 'PYC ' resource from file */
int PyMac_FindCodeResourceModule(PyStringObject *, char *, char *); /* Test for 'PYD ' resource in a file */
PyObject * PyMac_LoadCodeResourceModule(char *, char *); /* Load 'PYD ' resource from file */
-struct filedescr *PyMac_FindModuleExtension(char *, int *, char *); /* Look for module in single folder */
+struct filedescr *PyMac_FindModuleExtension(char *, size_t *, char *); /* Look for module in single folder */
int PyMac_GetDirectory(FSSpec *dirfss, char *prompt); /* Ask user for a directory */
void PyMac_PromptGetFile(short numTypes, ConstSFTypeListPtr typeList,
diff --git a/Mac/Python/macimport.c b/Mac/Python/macimport.c
index 2f5d622..1b3b994 100644
--- a/Mac/Python/macimport.c
+++ b/Mac/Python/macimport.c
@@ -407,7 +407,7 @@ error:
** pathname of the module found (if any).
*/
struct filedescr *
-PyMac_FindModuleExtension(char *buf, int *lenp, char *module)
+PyMac_FindModuleExtension(char *buf, size_t *lenp, char *module)
{
struct filedescr *fdp;
unsigned char fnbuf[64];