#define AEDesc_setattr NULL
+#define AEDesc_compare NULL
+
+#define AEDesc_repr NULL
+
+#define AEDesc_hash NULL
+
PyTypeObject AEDesc_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
0, /*tp_print*/
(getattrfunc) AEDesc_getattr, /*tp_getattr*/
(setattrfunc) AEDesc_setattr, /*tp_setattr*/
+ (cmpfunc) AEDesc_compare, /*tp_compare*/
+ (reprfunc) AEDesc_repr, /*tp_repr*/
+ (PyNumberMethods *)0, /* tp_as_number */
+ (PySequenceMethods *)0, /* tp_as_sequence */
+ (PyMappingMethods *)0, /* tp_as_mapping */
+ (hashfunc) AEDesc_hash, /*tp_hash*/
};
/* --------------------- End object type AEDesc --------------------- */
return [
"AEDisposeDesc",
# "AEGetEventHandler",
+ # Constants with funny definitions
+ "kAEDontDisposeOnResume",
+ "kAEUseStandardDispatch",
]
def makeblacklisttypes(self):
return [
"KeyTranslate",
"GetEventMask", # I cannot seem to find this routine...
- "WaitNextEvent" # Manually generated because of optional region
+ "WaitNextEvent", # Manually generated because of optional region
+ # Constants with funny definitions
+ "osEvtMessageMask",
]
def makeblacklisttypes(self):
return [
"GetIconCacheData",
"SetIconCacheData",
+ # Constants with funny definitions
+ "kSelectorAllHugeData",
+ "kSelectorAllAvailableData",
+ "svAllAvailableData",
]
def makeblacklisttypes(self):
def makerepairinstructions(self):
return [
]
+
+ def writeinitialdefs(self):
+ self.defsfile.write("def FOUR_CHAR_CODE(x): return x\n")
if __name__ == "__main__":
main()
# And old calls that are no longer supported
'SetSoundVol',
'GetSoundVol',
+ # Constants with funny definitions
+ 'rate48khz',
+ 'rate44khz',
+ 'kInvalidSource',
]
&outFile);
if (_err != noErr) return PyMac_Error(_err);
_res = Py_BuildValue("O&",
- PyMac_BuildFSSpec, outFile);
+ PyMac_BuildFSSpec, &outFile);
return _res;
}
'GetWindowProperty',
'GetWindowPropertySize',
'RemoveWindowProperty',
+ # Constants with funny definitions
+ 'kMouseUpOutOfSlop',
]
def makeblacklisttypes(self):