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
d6f63818
Kaydet (Commit)
d6f63818
authored
Eki 12, 2007
tarafından
Thomas Heller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix ctypes on 32-bit systems when Python is configured --with-system-ffi.
See also
https://bugs.launchpad.net/bugs/72505
.
üst
163048ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
NEWS
Misc/NEWS
+3
-0
cfield.c
Modules/_ctypes/cfield.c
+10
-6
No files found.
Misc/NEWS
Dosyayı görüntüle @
d6f63818
...
...
@@ -32,6 +32,9 @@ Core and builtins
Library
-------
- ctypes will now work correctly on 32-bit systems when Python is
configured with --with-system-ffi.
- Bug #1777530: ctypes.util.find_library uses dump(1) instead of
objdump(1) on Solaris.
...
...
Modules/_ctypes/cfield.c
Dosyayı görüntüle @
d6f63818
...
...
@@ -1549,17 +1549,21 @@ static struct fielddesc formattable[] = {
/* XXX Hm, sizeof(int) == sizeof(long) doesn't hold on every platform */
/* As soon as we can get rid of the type codes, this is no longer a problem */
#if SIZEOF_LONG == 4
{
'l'
,
l_set
,
l_get
,
&
ffi_type_sint
,
l_set_sw
,
l_get_sw
},
{
'L'
,
L_set
,
L_get
,
&
ffi_type_uint
,
L_set_sw
,
L_get_sw
},
{
'l'
,
l_set
,
l_get
,
&
ffi_type_sint
32
,
l_set_sw
,
l_get_sw
},
{
'L'
,
L_set
,
L_get
,
&
ffi_type_uint
32
,
L_set_sw
,
L_get_sw
},
#elif SIZEOF_LONG == 8
{
'l'
,
l_set
,
l_get
,
&
ffi_type_s
long
,
l_set_sw
,
l_get_sw
},
{
'L'
,
L_set
,
L_get
,
&
ffi_type_u
long
,
L_set_sw
,
L_get_sw
},
{
'l'
,
l_set
,
l_get
,
&
ffi_type_s
int64
,
l_set_sw
,
l_get_sw
},
{
'L'
,
L_set
,
L_get
,
&
ffi_type_u
int64
,
L_set_sw
,
L_get_sw
},
#else
# error
#endif
#ifdef HAVE_LONG_LONG
{
'q'
,
q_set
,
q_get
,
&
ffi_type_slong
,
q_set_sw
,
q_get_sw
},
{
'Q'
,
Q_set
,
Q_get
,
&
ffi_type_ulong
,
Q_set_sw
,
Q_get_sw
},
#if SIZEOF_LONG_LONG == 8
{
'q'
,
q_set
,
q_get
,
&
ffi_type_sint64
,
q_set_sw
,
q_get_sw
},
{
'Q'
,
Q_set
,
Q_get
,
&
ffi_type_uint64
,
Q_set_sw
,
Q_get_sw
},
#else
# error
#endif
#endif
{
'P'
,
P_set
,
P_get
,
&
ffi_type_pointer
},
{
'z'
,
z_set
,
z_get
,
&
ffi_type_pointer
},
...
...
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