Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2e6445ca
Kaydet (Commit)
2e6445ca
authored
Tem 31, 1998
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't add the library file to the resource file chain if it is the
same as the application file (Just).
üst
7e1fb7c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
macshlglue.c
Mac/Python/macshlglue.c
+18
-1
No files found.
Mac/Python/macshlglue.c
Dosyayı görüntüle @
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