diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-24 16:04:01 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-01-24 16:04:01 (GMT) |
commit | 7b3cc1f9c3313aee0865909c256670df1a32439e (patch) | |
tree | a2c27d39b7342a4a78250cb001d4d0eae2362b6e /Mac/Modules/scrap/scrapsupport.py | |
parent | 5396feb3bb302d247caceb5d186a77937f3393c9 (diff) | |
download | cpython-7b3cc1f9c3313aee0865909c256670df1a32439e.zip cpython-7b3cc1f9c3313aee0865909c256670df1a32439e.tar.gz cpython-7b3cc1f9c3313aee0865909c256670df1a32439e.tar.bz2 |
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.
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 |