From a01a8f78cb76242cdc5f6f2ef67678c4172bb7d2 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 14 Nov 1995 10:46:59 +0000 Subject: New universal headers, a few bit-flags were added. --- Mac/Lib/toolbox/Resources.py | 12 +++++++++++- Mac/Modules/res/Resmodule.c | 1 + Mac/Modules/res/resgen.py | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Mac/Lib/toolbox/Resources.py b/Mac/Lib/toolbox/Resources.py index 60a466f..9b4741c 100644 --- a/Mac/Lib/toolbox/Resources.py +++ b/Mac/Lib/toolbox/Resources.py @@ -1,4 +1,4 @@ -# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Resources.h' +# Generated from 'Sap:CodeWarrior7:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Resources.h' resSysHeap = 64 resPurgeable = 32 @@ -9,5 +9,15 @@ resChanged = 2 mapReadOnly = 128 mapCompact = 64 mapChanged = 32 +resSysRefBit = 7 +resSysHeapBit = 6 +resPurgeableBit = 5 +resLockedBit = 4 +resProtectedBit = 3 +resPreloadBit = 2 +resChangedBit = 1 +mapReadOnlyBit = 7 +mapCompactBit = 6 +mapChangedBit = 5 kResFileNotOpened = -1 kSystemResFile = 0 diff --git a/Mac/Modules/res/Resmodule.c b/Mac/Modules/res/Resmodule.c index cadb5db..4e8ed8f 100644 --- a/Mac/Modules/res/Resmodule.c +++ b/Mac/Modules/res/Resmodule.c @@ -1336,6 +1336,7 @@ static PyMethodDef Res_methods[] = { PyObject *ResObj_OptNew(itself) Handle itself; { + ResourceObject *it; if (itself == NULL) { Py_INCREF(Py_None); return Py_None; diff --git a/Mac/Modules/res/resgen.py b/Mac/Modules/res/resgen.py index 6300d5c..fe267da 100644 --- a/Mac/Modules/res/resgen.py +++ b/Mac/Modules/res/resgen.py @@ -1,4 +1,4 @@ -# Generated from 'Sap:CodeWarrior6:Metrowerks C/C++:Headers:Universal Headers 2.0.1f:Resources.h' +# Generated from 'Sap:CodeWarrior7:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Resources.h' f = ResFunction(short, 'InitResources', ) -- cgit v0.12