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
1795f29b
Kaydet (Commit)
1795f29b
authored
Ara 17, 2002
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed silly typo.
Added comment (to myself) on what still needs to be done.
üst
58fc91f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
_Filemodule.c
Mac/Modules/file/_Filemodule.c
+2
-2
filesupport.py
Mac/Modules/file/filesupport.py
+7
-2
No files found.
Mac/Modules/file/_Filemodule.c
Dosyayı görüntüle @
1795f29b
...
@@ -2394,8 +2394,8 @@ myPyMac_GetFSSpec(PyObject *v, FSSpec *spec)
...
@@ -2394,8 +2394,8 @@ myPyMac_GetFSSpec(PyObject *v, FSSpec *spec)
/* Otherwise we try to go via an FSRef. On OSX we go all the way,
/* Otherwise we try to go via an FSRef. On OSX we go all the way,
** on OS9 we accept only a real FSRef object
** on OS9 we accept only a real FSRef object
*/
*/
#if TARGET_API_MA
X
_OSX
#if TARGET_API_MA
C
_OSX
if
(
myPyMac_GetFSRef
(
v
,
&
fsr
)
>=
0
)
{
if
(
myPyMac_GetFSRef
(
v
,
&
fsr
)
)
{
#else
#else
if
(
PyArg_Parse
(
v
,
"O&"
,
FSRef_Convert
,
&
fsr
)
)
{
if
(
PyArg_Parse
(
v
,
"O&"
,
FSRef_Convert
,
&
fsr
)
)
{
#endif
#endif
...
...
Mac/Modules/file/filesupport.py
Dosyayı görüntüle @
1795f29b
...
@@ -2,6 +2,11 @@
...
@@ -2,6 +2,11 @@
# It uses the "bgen" package to generate C code.
# It uses the "bgen" package to generate C code.
# The function specifications are generated by scanning the mamager's header file,
# The function specifications are generated by scanning the mamager's header file,
# using the "scantools" package (customized for this particular manager).
# using the "scantools" package (customized for this particular manager).
#
# XXXX TO DO:
# - implement rawdata initializers
# - Implement correct missing FSSpec handling for Alias methods
# - Implement FInfo
import
string
import
string
...
@@ -157,8 +162,8 @@ myPyMac_GetFSSpec(PyObject *v, FSSpec *spec)
...
@@ -157,8 +162,8 @@ myPyMac_GetFSSpec(PyObject *v, FSSpec *spec)
/* Otherwise we try to go via an FSRef. On OSX we go all the way,
/* Otherwise we try to go via an FSRef. On OSX we go all the way,
** on OS9 we accept only a real FSRef object
** on OS9 we accept only a real FSRef object
*/
*/
#if TARGET_API_MA
X
_OSX
#if TARGET_API_MA
C
_OSX
if ( myPyMac_GetFSRef(v, &fsr)
>= 0
) {
if ( myPyMac_GetFSRef(v, &fsr) ) {
#else
#else
if ( PyArg_Parse(v, "O&", FSRef_Convert, &fsr) ) {
if ( PyArg_Parse(v, "O&", FSRef_Convert, &fsr) ) {
#endif
#endif
...
...
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