File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 */
You can’t perform that action at this time.
0 commit comments