Regenerated (and manually massaged for PutScrap) so it can be byuilt both for Carbon and Classic. The Carbon module is rather empty, though, for now.

This commit is contained in:
Jack Jansen 2001-01-24 16:04:01 +00:00
parent 5396feb3bb
commit 7b3cc1f9c3
3 changed files with 160 additions and 69 deletions

View file

@ -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