mirror of https://github.com/python/cpython
PyMac_FindModuleExtension now uses a size_t as its size parameter for compatibility.
This commit is contained in:
parent
db6382941b
commit
fe38d2998f
|
@ -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,
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue