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
b30111f2
Kaydet (Commit)
b30111f2
authored
Ock 06, 2011
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Support comment lines and missing indices in typeslots.h.
üst
c83bc3c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
typeslots.py
Objects/typeslots.py
+6
-1
No files found.
Objects/typeslots.py
Dosyayı görüntüle @
b30111f2
...
@@ -7,6 +7,8 @@ print("/* Generated by typeslots.py $Revision$ */")
...
@@ -7,6 +7,8 @@ print("/* Generated by typeslots.py $Revision$ */")
res
=
{}
res
=
{}
for
line
in
sys
.
stdin
:
for
line
in
sys
.
stdin
:
m
=
re
.
match
(
"#define Py_([a-z_]+) ([0-9]+)"
,
line
)
m
=
re
.
match
(
"#define Py_([a-z_]+) ([0-9]+)"
,
line
)
if
not
m
:
continue
member
=
m
.
group
(
1
)
member
=
m
.
group
(
1
)
if
member
.
startswith
(
"tp_"
):
if
member
.
startswith
(
"tp_"
):
member
=
"ht_type."
+
member
member
=
"ht_type."
+
member
...
@@ -22,4 +24,7 @@ for line in sys.stdin:
...
@@ -22,4 +24,7 @@ for line in sys.stdin:
M
=
max
(
res
.
keys
())
+
1
M
=
max
(
res
.
keys
())
+
1
for
i
in
range
(
1
,
M
):
for
i
in
range
(
1
,
M
):
print
(
"offsetof(PyHeapTypeObject,
%
s),"
%
res
[
i
])
if
i
in
res
:
print
(
"offsetof(PyHeapTypeObject,
%
s),"
%
res
[
i
])
else
:
print
(
"0,"
)
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