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
0f75f984
Kaydet (Commit)
0f75f984
authored
Ock 16, 2008
tarafından
Thomas Heller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use 'g' instead of 'D' as the ctypes typecode for c_longdouble, for
compliance with PEP 3118.
üst
20771310
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
__init__.py
Lib/ctypes/__init__.py
+1
-1
_ctypes.c
Modules/_ctypes/_ctypes.c
+1
-1
cfield.c
Modules/_ctypes/cfield.c
+3
-3
No files found.
Lib/ctypes/__init__.py
Dosyayı görüntüle @
0f75f984
...
...
@@ -185,7 +185,7 @@ class c_double(_SimpleCData):
_check_size
(
c_double
)
class
c_longdouble
(
_SimpleCData
):
_type_
=
"
D
"
_type_
=
"
g
"
if
sizeof
(
c_longdouble
)
==
sizeof
(
c_double
):
c_longdouble
=
c_double
...
...
Modules/_ctypes/_ctypes.c
Dosyayı görüntüle @
0f75f984
...
...
@@ -1113,7 +1113,7 @@ _type_ attribute.
*/
static
char
*
SIMPLE_TYPE_CHARS
=
"cbBhHiIlLdfuzZqQPXOvt
D
"
;
static
char
*
SIMPLE_TYPE_CHARS
=
"cbBhHiIlLdfuzZqQPXOvt
g
"
;
static
PyObject
*
c_wchar_p_from_param
(
PyObject
*
type
,
PyObject
*
value
)
...
...
Modules/_ctypes/cfield.c
Dosyayı görüntüle @
0f75f984
...
...
@@ -995,7 +995,7 @@ Q_get_sw(void *ptr, Py_ssize_t size)
static
PyObject
*
D
_set
(
void
*
ptr
,
PyObject
*
value
,
Py_ssize_t
size
)
g
_set
(
void
*
ptr
,
PyObject
*
value
,
Py_ssize_t
size
)
{
long
double
x
;
...
...
@@ -1011,7 +1011,7 @@ D_set(void *ptr, PyObject *value, Py_ssize_t size)
}
static
PyObject
*
D
_get
(
void
*
ptr
,
Py_ssize_t
size
)
g
_get
(
void
*
ptr
,
Py_ssize_t
size
)
{
long
double
val
;
memcpy
(
&
val
,
ptr
,
sizeof
(
long
double
));
...
...
@@ -1612,7 +1612,7 @@ static struct fielddesc formattable[] = {
{
'B'
,
B_set
,
B_get
,
&
ffi_type_uchar
},
{
'c'
,
c_set
,
c_get
,
&
ffi_type_schar
},
{
'd'
,
d_set
,
d_get
,
&
ffi_type_double
,
d_set_sw
,
d_get_sw
},
{
'
D'
,
D_set
,
D
_get
,
&
ffi_type_longdouble
},
{
'
g'
,
g_set
,
g
_get
,
&
ffi_type_longdouble
},
{
'f'
,
f_set
,
f_get
,
&
ffi_type_float
,
f_set_sw
,
f_get_sw
},
{
'h'
,
h_set
,
h_get
,
&
ffi_type_sshort
,
h_set_sw
,
h_get_sw
},
{
'H'
,
H_set
,
H_get
,
&
ffi_type_ushort
,
H_set_sw
,
H_get_sw
},
...
...
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