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
27489d4c
Kaydet (Commit)
27489d4c
authored
Ara 12, 2000
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Optionally weed out duplicate prototypes for the same function (which
happens because the scanner ignores preprocessor #ifs).
üst
c1a4a047
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
bgenGenerator.py
Tools/bgen/bgen/bgenGenerator.py
+4
-0
bgenGeneratorGroup.py
Tools/bgen/bgen/bgenGeneratorGroup.py
+5
-1
bgenObjectDefinition.py
Tools/bgen/bgen/bgenObjectDefinition.py
+2
-2
No files found.
Tools/bgen/bgen/bgenGenerator.py
Dosyayı görüntüle @
27489d4c
...
@@ -67,6 +67,10 @@ class BaseFunctionGenerator:
...
@@ -67,6 +67,10 @@ class BaseFunctionGenerator:
def
docstring
(
self
):
def
docstring
(
self
):
return
None
return
None
def
__cmp__
(
self
,
other
):
if
not
hasattr
(
other
,
'name'
):
return
cmp
(
id
(
self
),
id
(
other
))
return
cmp
(
self
.
name
,
other
.
name
)
_stringify_map
=
{
'
\n
'
:
'
\\
n'
,
'
\t
'
:
'
\\
t'
,
'
\r
'
:
'
\\
r'
,
'
\b
'
:
'
\\
b'
,
_stringify_map
=
{
'
\n
'
:
'
\\
n'
,
'
\t
'
:
'
\\
t'
,
'
\r
'
:
'
\\
r'
,
'
\b
'
:
'
\\
b'
,
'
\
e'
:
'
\\
e'
,
'
\a
'
:
'
\\
a'
,
'
\f
'
:
'
\\
f'
,
'"'
:
'
\\
"'
}
'
\
e'
:
'
\\
e'
,
'
\a
'
:
'
\\
a'
,
'
\f
'
:
'
\\
f'
,
'"'
:
'
\\
"'
}
...
...
Tools/bgen/bgen/bgenGeneratorGroup.py
Dosyayı görüntüle @
27489d4c
...
@@ -6,7 +6,11 @@ class GeneratorGroup:
...
@@ -6,7 +6,11 @@ class GeneratorGroup:
self
.
prefix
=
prefix
self
.
prefix
=
prefix
self
.
generators
=
[]
self
.
generators
=
[]
def
add
(
self
,
g
):
def
add
(
self
,
g
,
dupcheck
=
0
):
if
dupcheck
:
if
g
in
self
.
generators
:
print
'DUP'
,
g
.
name
return
g
.
setprefix
(
self
.
prefix
)
g
.
setprefix
(
self
.
prefix
)
self
.
generators
.
append
(
g
)
self
.
generators
.
append
(
g
)
...
...
Tools/bgen/bgen/bgenObjectDefinition.py
Dosyayı görüntüle @
27489d4c
...
@@ -23,9 +23,9 @@ class ObjectDefinition(GeneratorGroup):
...
@@ -23,9 +23,9 @@ class ObjectDefinition(GeneratorGroup):
self
.
static
=
"static "
# set to "" to make <type>_New and <type>_Convert public
self
.
static
=
"static "
# set to "" to make <type>_New and <type>_Convert public
self
.
basechain
=
"NULL"
# set to &<basetype>_chain to chain methods
self
.
basechain
=
"NULL"
# set to &<basetype>_chain to chain methods
def
add
(
self
,
g
):
def
add
(
self
,
g
,
dupcheck
=
0
):
g
.
setselftype
(
self
.
objecttype
,
self
.
itselftype
)
g
.
setselftype
(
self
.
objecttype
,
self
.
itselftype
)
GeneratorGroup
.
add
(
self
,
g
)
GeneratorGroup
.
add
(
self
,
g
,
dupcheck
)
def
reference
(
self
):
def
reference
(
self
):
# In case we are referenced from a module
# In case we are referenced from a module
...
...
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