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
09eef173
Kaydet (Commit)
09eef173
authored
Kas 21, 2005
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Enable optional "const" argument to _New routines.
üst
7bcabc60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bgenObjectDefinition.py
Tools/bgen/bgen/bgenObjectDefinition.py
+3
-2
No files found.
Tools/bgen/bgen/bgenObjectDefinition.py
Dosyayı görüntüle @
09eef173
...
@@ -7,6 +7,7 @@ class ObjectDefinition(GeneratorGroup):
...
@@ -7,6 +7,7 @@ class ObjectDefinition(GeneratorGroup):
tp_flags
=
"Py_TPFLAGS_DEFAULT"
tp_flags
=
"Py_TPFLAGS_DEFAULT"
basetype
=
None
basetype
=
None
argref
=
""
# set to "*" if arg to <type>_New should be pointer
argref
=
""
# set to "*" if arg to <type>_New should be pointer
argconst
=
""
# set to "const " if arg to <type>_New should be const
def
__init__
(
self
,
name
,
prefix
,
itselftype
):
def
__init__
(
self
,
name
,
prefix
,
itselftype
):
"""ObjectDefinition constructor. May be extended, but do not override.
"""ObjectDefinition constructor. May be extended, but do not override.
...
@@ -97,8 +98,8 @@ class ObjectDefinition(GeneratorGroup):
...
@@ -97,8 +98,8 @@ class ObjectDefinition(GeneratorGroup):
def
outputNew
(
self
):
def
outputNew
(
self
):
Output
()
Output
()
Output
(
"
%
sPyObject *
%
s_New(
%
s
%
sitself)"
,
self
.
static
,
self
.
prefix
,
Output
(
"
%
sPyObject *
%
s_New(
%
s
%
s
%
sitself)"
,
self
.
static
,
self
.
prefix
,
self
.
itselftype
,
self
.
argref
)
self
.
argconst
,
self
.
itselftype
,
self
.
argref
)
OutLbrace
()
OutLbrace
()
Output
(
"
%
s *it;"
,
self
.
objecttype
)
Output
(
"
%
s *it;"
,
self
.
objecttype
)
self
.
outputCheckNewArg
()
self
.
outputCheckNewArg
()
...
...
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