diff options
Diffstat (limited to 'Mac/Modules/scrap/scrapsupport.py')
-rw-r--r-- | Mac/Modules/scrap/scrapsupport.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Mac/Modules/scrap/scrapsupport.py b/Mac/Modules/scrap/scrapsupport.py index 701e197..1fe9ac2 100644 --- a/Mac/Modules/scrap/scrapsupport.py +++ b/Mac/Modules/scrap/scrapsupport.py @@ -27,17 +27,19 @@ includestuff = includestuff + """ /* ** Generate ScrapInfo records */ -PyObject *SCRRec_New(itself) +static PyObject * +SCRRec_New(itself) ScrapStuff *itself; { return Py_BuildValue("lO&hhO&", itself->scrapSize, ResObj_New, itself->scrapHandle, itself->scrapCount, itself->scrapState, - PyMac_BuildStr255, itself->scrapName; + PyMac_BuildStr255, itself->scrapName); } """ -ScrapStuffPtr = OpaqueType('ScrapStuff', 'SCRRec') +ScrapStuffPtr = OpaqueByValueType('ScrapStuffPtr', 'SCRRec') +ScrapFlavorType = OSTypeType('ScrapFlavorType') putscrapbuffer = FixedInputBufferType('void *') # Create the generator groups and link them |