mirror of
https://github.com/python/cpython.git
synced 2025-09-13 04:08:37 +00:00
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:
parent
5396feb3bb
commit
7b3cc1f9c3
3 changed files with 160 additions and 69 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue