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
f45b53b1
Kaydet (Commit)
f45b53b1
authored
Şub 20, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
replace %#s with portable solution
üst
4cbb0e3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
macfsmodule.c
Mac/Modules/macfsmodule.c
+14
-13
No files found.
Mac/Modules/macfsmodule.c
Dosyayı görüntüle @
f45b53b1
...
...
@@ -191,7 +191,7 @@ mfsa_dealloc(self)
DEL
(
self
);
}
static
typeobject
Mfsatype
=
{
static
here
typeobject
Mfsatype
=
{
OB_HEAD_INIT
(
&
Typetype
)
0
,
/*ob_size*/
"Alias"
,
/*tp_name*/
...
...
@@ -199,15 +199,15 @@ static typeobject Mfsatype = {
0
,
/*tp_itemsize*/
/* methods */
(
destructor
)
mfsa_dealloc
,
/*tp_dealloc*/
(
printfunc
)
0
,
/*tp_print*/
(
printfunc
)
0
,
/*tp_print*/
(
getattrfunc
)
mfsa_getattr
,
/*tp_getattr*/
(
setattrfunc
)
0
,
/*tp_setattr*/
(
cmpfunc
)
0
,
/*tp_compare*/
(
reprfunc
)
0
,
/*tp_repr*/
0
,
/*tp_as_number*/
0
,
/*tp_as_sequence*/
0
,
/*tp_as_mapping*/
(
hashfunc
)
0
,
/*tp_hash*/
(
setattrfunc
)
0
,
/*tp_setattr*/
(
cmpfunc
)
0
,
/*tp_compare*/
(
reprfunc
)
0
,
/*tp_repr*/
0
,
/*tp_as_number*/
0
,
/*tp_as_sequence*/
0
,
/*tp_as_mapping*/
(
hashfunc
)
0
,
/*tp_hash*/
};
/* End of code for Alias objects */
...
...
@@ -394,9 +394,10 @@ mfss_repr(self)
{
char
buf
[
512
];
/* XXXX Does %#s work for all compilers? */
sprintf
(
buf
,
"FSSpec((%d, %d, '%#s'))"
,
self
->
fsspec
.
vRefNum
,
self
->
fsspec
.
parID
,
self
->
fsspec
.
name
);
sprintf
(
buf
,
"FSSpec((%d, %d, '%.*s'))"
,
self
->
fsspec
.
vRefNum
,
self
->
fsspec
.
parID
,
self
->
fsspec
.
name
[
0
],
self
->
fsspec
.
name
+
1
);
return
newstringobject
(
buf
);
}
...
...
@@ -420,7 +421,7 @@ mfss_compare(v, w)
return
res
;
}
static
typeobject
Mfsstype
=
{
static
here
typeobject
Mfsstype
=
{
OB_HEAD_INIT
(
&
Typetype
)
0
,
/*ob_size*/
"FSSpec"
,
/*tp_name*/
...
...
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