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
9642ecad
Kaydet (Commit)
9642ecad
authored
Eyl 04, 2001
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Shut up a few more gcc warnings.
üst
1767f936
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
_CFmodule.c
Mac/Modules/cf/_CFmodule.c
+1
-1
cfsupport.py
Mac/Modules/cf/cfsupport.py
+1
-1
No files found.
Mac/Modules/cf/_CFmodule.c
Dosyayı görüntüle @
9642ecad
...
@@ -272,7 +272,7 @@ static int CFTypeRefObj_compare(CFTypeRefObject *self, CFTypeRefObject *other)
...
@@ -272,7 +272,7 @@ static int CFTypeRefObj_compare(CFTypeRefObject *self, CFTypeRefObject *other)
static
PyObject
*
CFTypeRefObj_repr
(
CFTypeRefObject
*
self
)
static
PyObject
*
CFTypeRefObj_repr
(
CFTypeRefObject
*
self
)
{
{
char
buf
[
100
];
char
buf
[
100
];
sprintf
(
buf
,
"<CFTypeRef type-%d object at 0x%
08.8x for 0x%08.8x>"
,
CFGetTypeID
(
self
->
ob_itself
),
self
,
self
->
ob_itself
);
sprintf
(
buf
,
"<CFTypeRef type-%d object at 0x%
8.8x for 0x%8.8x>"
,
CFGetTypeID
(
self
->
ob_itself
),
(
unsigned
long
)
self
,
(
unsigned
long
)
self
->
ob_itself
);
return
PyString_FromString
(
buf
);
return
PyString_FromString
(
buf
);
}
}
...
...
Mac/Modules/cf/cfsupport.py
Dosyayı görüntüle @
9642ecad
...
@@ -190,7 +190,7 @@ class MyGlobalObjectDefinition(GlobalObjectDefinition):
...
@@ -190,7 +190,7 @@ class MyGlobalObjectDefinition(GlobalObjectDefinition):
Output
(
"static PyObject *
%
s_repr(
%
s *self)"
,
self
.
prefix
,
self
.
objecttype
)
Output
(
"static PyObject *
%
s_repr(
%
s *self)"
,
self
.
prefix
,
self
.
objecttype
)
OutLbrace
()
OutLbrace
()
Output
(
"char buf[100];"
)
Output
(
"char buf[100];"
)
Output
(
"""sprintf(buf, "<CFTypeRef type-
%%
d object at 0x
%%
08.8
x for 0x
%%08.8
x>", CFGetTypeID(self->ob_itself), self,
self->ob_itself);"""
)
Output
(
"""sprintf(buf, "<CFTypeRef type-
%%
d object at 0x
%%
8.8
x for 0x
%%8.8
x>", CFGetTypeID(self->ob_itself), (unsigned long)self, (unsigned long)
self->ob_itself);"""
)
Output
(
"return PyString_FromString(buf);"
)
Output
(
"return PyString_FromString(buf);"
)
OutRbrace
()
OutRbrace
()
...
...
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