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
719f5fa8
Kaydet (Commit)
719f5fa8
authored
Mar 27, 1992
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lint fix
üst
dcc6ef21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
intobject.c
Objects/intobject.c
+3
-2
stringobject.c
Objects/stringobject.c
+8
-1
No files found.
Objects/intobject.c
Dosyayı görüntüle @
719f5fa8
...
...
@@ -114,11 +114,12 @@ getintvalue(op)
/* Methods */
/* ARGSUSED */
static
int
int_print
(
v
,
fp
,
flags
)
intobject
*
v
;
FILE
*
fp
;
int
flags
;
int
flags
;
/* Not used but required by interface */
{
fprintf
(
fp
,
"%ld"
,
v
->
ob_ival
);
return
0
;
...
...
@@ -239,7 +240,7 @@ int_mod(x, y)
long
d
,
m
;
if
(
i_divmod
(
x
,
y
,
&
d
,
&
m
)
<
0
)
return
NULL
;
newintobject
(
m
);
return
newintobject
(
m
);
}
static
object
*
...
...
Objects/stringobject.c
Dosyayı görüntüle @
719f5fa8
...
...
@@ -60,6 +60,13 @@ newstringobject(str)
return
(
object
*
)
op
;
}
void
stringdealloc
(
op
)
object
*
op
;
{
DEL
(
op
);
}
unsigned
int
getstringsize
(
op
)
register
object
*
op
;
...
...
@@ -305,7 +312,7 @@ typeobject Stringtype = {
"string"
,
sizeof
(
stringobject
),
sizeof
(
char
),
free
,
/*tp_dealloc*/
stringdealloc
,
/*tp_dealloc*/
stringprint
,
/*tp_print*/
0
,
/*tp_getattr*/
0
,
/*tp_setattr*/
...
...
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