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
2e6445ca
Commit
2e6445ca
authored
Jul 31, 1998
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't add the library file to the resource file chain if it is the
same as the application file (Just).
parent
7e1fb7c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
Mac/Python/macshlglue.c
Mac/Python/macshlglue.c
+18
-1
No files found.
Mac/Python/macshlglue.c
View file @
2e6445ca
...
...
@@ -82,6 +82,23 @@ __initialize_with_resources(CFragInitBlockPtr data)
return
noErr
;
}
/*
** compare two FSSpecs, return true if equal, false if different
** XXX where could this function live? (jvr)
*/
static
int
FSpCompare
(
FSSpec
*
fss1
,
FSSpec
*
fss2
)
{
if
(
fss1
->
vRefNum
!=
fss2
->
vRefNum
)
return
0
;
if
(
fss1
->
parID
!=
fss2
->
parID
)
return
0
;
return
!
PLstrcmp
(
fss1
->
name
,
fss2
->
name
);
}
/* XXX can't include "macglue.h" somehow (jvr) */
extern
FSSpec
PyMac_ApplicationFSSpec
;
/* Application location (from macargv.c) */
/*
** Insert the library resources into the search path. Put them after
** the resources from the application (which we assume is the current
...
...
@@ -90,7 +107,7 @@ __initialize_with_resources(CFragInitBlockPtr data)
void
PyMac_AddLibResources
()
{
if
(
!
library_fss_valid
)
if
(
!
library_fss_valid
||
FSpCompare
(
&
library_fss
,
&
PyMac_ApplicationFSSpec
))
return
;
(
void
)
FSpOpenResFile
(
&
library_fss
,
fsRdPerm
);
}
...
...
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