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
d58cd630
Kaydet (Commit)
d58cd630
authored
Nis 21, 1998
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added PyMac_{Get,Build}wide. These should support python longints at
some point in the future.
üst
1c4e6146
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
macglue.c
Mac/Python/macglue.c
+23
-0
No files found.
Mac/Python/macglue.c
Dosyayı görüntüle @
d58cd630
...
@@ -1175,3 +1175,26 @@ PyMac_BuildFixed(Fixed f)
...
@@ -1175,3 +1175,26 @@ PyMac_BuildFixed(Fixed f)
return
Py_BuildValue
(
"d"
,
d
);
return
Py_BuildValue
(
"d"
,
d
);
}
}
/* Convert wide to/from Python int or (hi, lo) tuple. XXXX Should use Python longs */
int
PyMac_Getwide
(
PyObject
*
v
,
wide
*
rv
)
{
if
(
PyInt_Check
(
v
))
{
rv
->
hi
=
0
;
rv
->
lo
=
PyInt_AsLong
(
v
);
if
(
rv
->
lo
&
0x80000000
)
rv
->
hi
=
-
1
;
return
1
;
}
return
PyArg_Parse
(
v
,
"(ll)"
,
&
rv
->
hi
,
&
rv
->
lo
);
}
PyObject
*
PyMac_Buildwide
(
wide
w
)
{
if
(
(
w
.
hi
==
0
&&
(
w
.
lo
&
0x80000000
)
==
0
)
||
(
w
.
hi
==
-
1
&&
(
w
.
lo
&
0x80000000
)
)
)
return
PyInt_FromLong
(
w
.
lo
);
return
Py_BuildValue
(
"(ll)"
,
w
.
hi
,
w
.
lo
);
}
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