Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cfc0ac51
Commit
cfc0ac51
authored
Jan 04, 2002
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some of the new routines are carbon-only.
parent
3417c575
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
Mac/Lib/Carbon/Resources.py
Mac/Lib/Carbon/Resources.py
+4
-4
Mac/Modules/res/_Resmodule.c
Mac/Modules/res/_Resmodule.c
+12
-0
Mac/Modules/res/resscan.py
Mac/Modules/res/resscan.py
+2
-0
No files found.
Mac/Lib/Carbon/Resources.py
View file @
cfc0ac51
...
...
@@ -8,7 +8,7 @@ resPreload = 4
resChanged
=
2
mapReadOnly
=
128
mapCompact
=
64
mapChanged
=
32
mapChanged
=
32
resSysRefBit
=
7
resSysHeapBit
=
6
resPurgeableBit
=
5
...
...
@@ -18,10 +18,10 @@ resPreloadBit = 2
resChangedBit
=
1
mapReadOnlyBit
=
7
mapCompactBit
=
6
mapChangedBit
=
5
mapChangedBit
=
5
kResFileNotOpened
=
-
1
kSystemResFile
=
0
kSystemResFile
=
0
kRsrcChainBelowSystemMap
=
0
kRsrcChainBelowApplicationMap
=
1
kRsrcChainAboveApplicationMap
=
2
kRsrcChainAboveAllMaps
=
4
kRsrcChainAboveAllMaps
=
4
Mac/Modules/res/_Resmodule.c
View file @
cfc0ac51
...
...
@@ -1436,6 +1436,8 @@ static PyObject *Res_FSResourceFileAlreadyOpen(PyObject *_self, PyObject *_args)
return
_res
;
}
#if TARGET_API_MAC_CARBON
static
PyObject
*
Res_FSCreateResourceFile
(
PyObject
*
_self
,
PyObject
*
_args
)
{
PyObject
*
_res
=
NULL
;
...
...
@@ -1473,6 +1475,9 @@ static PyObject *Res_FSCreateResourceFile(PyObject *_self, PyObject *_args)
PyMac_BuildFSSpec
,
newSpec
);
return
_res
;
}
#endif
#if TARGET_API_MAC_CARBON
static
PyObject
*
Res_FSOpenResourceFile
(
PyObject
*
_self
,
PyObject
*
_args
)
{
...
...
@@ -1503,6 +1508,7 @@ static PyObject *Res_FSOpenResourceFile(PyObject *_self, PyObject *_args)
refNum
);
return
_res
;
}
#endif
static
PyObject
*
Res_Resource
(
PyObject
*
_self
,
PyObject
*
_args
)
{
...
...
@@ -1671,10 +1677,16 @@ static PyMethodDef Res_methods[] = {
"(FSRef parentRef, Buffer nameLength) -> (FSRef newRef, FSSpec newSpec)"
},
{
"FSResourceFileAlreadyOpen"
,
(
PyCFunction
)
Res_FSResourceFileAlreadyOpen
,
1
,
"(FSRef resourceFileRef) -> (Boolean _rv, Boolean inChain, SInt16 refNum)"
},
#if TARGET_API_MAC_CARBON
{
"FSCreateResourceFile"
,
(
PyCFunction
)
Res_FSCreateResourceFile
,
1
,
"(FSRef parentRef, Buffer nameLength, Buffer forkNameLength) -> (OSErr _rv, FSRef newRef, FSSpec newSpec)"
},
#endif
#if TARGET_API_MAC_CARBON
{
"FSOpenResourceFile"
,
(
PyCFunction
)
Res_FSOpenResourceFile
,
1
,
"(FSRef ref, Buffer forkNameLength, SignedByte permissions) -> (OSErr _rv, SInt16 refNum)"
},
#endif
{
"Resource"
,
(
PyCFunction
)
Res_Resource
,
1
,
"Convert a string to a resource object.
\n\n
The created resource object is actually just a handle,
\n
apply AddResource() to write it to a resource file.
\n
See also the Handle() docstring.
\n
"
},
{
"Handle"
,
(
PyCFunction
)
Res_Handle
,
1
,
...
...
Mac/Modules/res/resscan.py
View file @
cfc0ac51
...
...
@@ -67,6 +67,8 @@ class ResourcesScanner(Scanner):
'DetachResourceFile'
,
'InsertResourceFile'
,
'FSpResourceFileAlreadyOpen'
,
'FSOpenResourceFile'
,
'FSCreateResourceFile'
,
])]
def
makerepairinstructions
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment