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
3b4da59c
Kaydet (Commit)
3b4da59c
authored
Haz 19, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Renamed static pow() to powerop() to avoid name conflict in some compilers.
üst
d3901028
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ceval.c
Python/ceval.c
+4
-4
No files found.
Python/ceval.c
Dosyayı görüntüle @
3b4da59c
...
@@ -68,7 +68,7 @@ static int call_trace
...
@@ -68,7 +68,7 @@ static int call_trace
PROTO
((
object
**
,
object
**
,
frameobject
*
,
char
*
,
object
*
));
PROTO
((
object
**
,
object
**
,
frameobject
*
,
char
*
,
object
*
));
static
object
*
add
PROTO
((
object
*
,
object
*
));
static
object
*
add
PROTO
((
object
*
,
object
*
));
static
object
*
sub
PROTO
((
object
*
,
object
*
));
static
object
*
sub
PROTO
((
object
*
,
object
*
));
static
object
*
pow
PROTO
((
object
*
,
object
*
));
static
object
*
pow
erop
PROTO
((
object
*
,
object
*
));
static
object
*
mul
PROTO
((
object
*
,
object
*
));
static
object
*
mul
PROTO
((
object
*
,
object
*
));
static
object
*
divide
PROTO
((
object
*
,
object
*
));
static
object
*
divide
PROTO
((
object
*
,
object
*
));
static
object
*
mod
PROTO
((
object
*
,
object
*
));
static
object
*
mod
PROTO
((
object
*
,
object
*
));
...
@@ -665,7 +665,7 @@ eval_code2(co, globals, locals,
...
@@ -665,7 +665,7 @@ eval_code2(co, globals, locals,
case
BINARY_POWER
:
case
BINARY_POWER
:
w
=
POP
();
w
=
POP
();
v
=
POP
();
v
=
POP
();
x
=
pow
(
v
,
w
);
x
=
pow
erop
(
v
,
w
);
DECREF
(
v
);
DECREF
(
v
);
DECREF
(
w
);
DECREF
(
w
);
PUSH
(
x
);
PUSH
(
x
);
...
@@ -2201,11 +2201,11 @@ mod(v, w)
...
@@ -2201,11 +2201,11 @@ mod(v, w)
}
}
static
object
*
static
object
*
pow
(
v
,
w
)
pow
erop
(
v
,
w
)
object
*
v
,
*
w
;
object
*
v
,
*
w
;
{
{
object
*
res
;
object
*
res
;
BINOP
(
"__pow__"
,
"__rpow__"
,
pow
);
BINOP
(
"__pow__"
,
"__rpow__"
,
pow
erop
);
if
(
v
->
ob_type
->
tp_as_number
==
NULL
||
if
(
v
->
ob_type
->
tp_as_number
==
NULL
||
w
->
ob_type
->
tp_as_number
==
NULL
)
{
w
->
ob_type
->
tp_as_number
==
NULL
)
{
err_setstr
(
TypeError
,
"pow() requires numeric arguments"
);
err_setstr
(
TypeError
,
"pow() requires numeric arguments"
);
...
...
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