Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0268ac8

Browse files
committed
Include Carbon/Carbon.h if appropriate.
Fixed glue initialization code so prototype is correct.
1 parent b8e76a7 commit 0268ac8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Mac/Include/pymactoolbox.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@
2525
** These macros are used in the module init code. If we use toolbox object glue
2626
** it sets the function pointer to point to the real function.
2727
*/
28-
#define PyMac_INIT_TOOLBOX_OBJECT_NEW(rtn) { \
28+
#define PyMac_INIT_TOOLBOX_OBJECT_NEW(object, rtn) { \
2929
extern PyObject *(*PyMacGluePtr_##rtn)(object); \
3030
PyMacGluePtr_##rtn = _##rtn; \
3131
}
32-
#define PyMac_INIT_TOOLBOX_OBJECT_CONVERT(rtn) { \
33-
extern int (*PyMacGluePtr_##rtn)(object); \
32+
#define PyMac_INIT_TOOLBOX_OBJECT_CONVERT(object, rtn) { \
33+
extern int (*PyMacGluePtr_##rtn)(PyObject *, object *); \
3434
PyMacGluePtr_##rtn = _##rtn; \
3535
}
3636
#else
3737
/*
3838
** If we don't use toolbox object glue the init macros are empty. Moreover, we define
3939
** _xxx_New to be the same as xxx_New, and the code in mactoolboxglue isn't included.
4040
*/
41-
#define PyMac_INIT_TOOLBOX_OBJECT_NEW(rtn)
42-
#define PyMac_INIT_TOOLBOX_OBJECT_CONVERT(rtn)
41+
#define PyMac_INIT_TOOLBOX_OBJECT_NEW(object, rtn)
42+
#define PyMac_INIT_TOOLBOX_OBJECT_CONVERT(object, rtn)
4343
#endif /* USE_TOOLBOX_OBJECT_GLUE */
4444

4545
/* AE exports */

0 commit comments

Comments
 (0)