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
64182fe0
Kaydet (Commit)
64182fe0
authored
Nis 11, 2006
tarafından
Anthony Baxter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Some more changes to make code compile under a C++ compiler.
üst
7b782b61
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
gcmodule.c
Modules/gcmodule.c
+3
-2
getpath.c
Modules/getpath.c
+1
-1
main.c
Modules/main.c
+2
-2
posixmodule.c
Modules/posixmodule.c
+4
-4
pystrtod.c
Python/pystrtod.c
+1
-1
No files found.
Modules/gcmodule.c
Dosyayı görüntüle @
64182fe0
...
...
@@ -1281,7 +1281,8 @@ PyObject *
_PyObject_GC_Malloc
(
size_t
basicsize
)
{
PyObject
*
op
;
PyGC_Head
*
g
=
PyObject_MALLOC
(
sizeof
(
PyGC_Head
)
+
basicsize
);
PyGC_Head
*
g
=
(
PyGC_Head
*
)
PyObject_MALLOC
(
sizeof
(
PyGC_Head
)
+
basicsize
);
if
(
g
==
NULL
)
return
PyErr_NoMemory
();
g
->
gc
.
gc_refs
=
GC_UNTRACKED
;
...
...
@@ -1323,7 +1324,7 @@ _PyObject_GC_Resize(PyVarObject *op, Py_ssize_t nitems)
{
const
size_t
basicsize
=
_PyObject_VAR_SIZE
(
op
->
ob_type
,
nitems
);
PyGC_Head
*
g
=
AS_GC
(
op
);
g
=
PyObject_REALLOC
(
g
,
sizeof
(
PyGC_Head
)
+
basicsize
);
g
=
(
PyGC_Head
*
)
PyObject_REALLOC
(
g
,
sizeof
(
PyGC_Head
)
+
basicsize
);
if
(
g
==
NULL
)
return
(
PyVarObject
*
)
PyErr_NoMemory
();
op
=
(
PyVarObject
*
)
FROM_GC
(
g
);
...
...
Modules/getpath.c
Dosyayı görüntüle @
64182fe0
...
...
@@ -566,7 +566,7 @@ calculate_path(void)
bufsz
+=
strlen
(
exec_prefix
)
+
1
;
/* This is the only malloc call in this file */
buf
=
PyMem_Malloc
(
bufsz
);
buf
=
(
char
*
)
PyMem_Malloc
(
bufsz
);
if
(
buf
==
NULL
)
{
/* We can't exit, so print a warning and limp along */
...
...
Modules/main.c
Dosyayı görüntüle @
64182fe0
...
...
@@ -208,7 +208,7 @@ Py_Main(int argc, char **argv)
/* -c is the last option; following arguments
that look like options are left for the
command to interpret. */
command
=
malloc
(
strlen
(
_PyOS_optarg
)
+
2
);
command
=
(
char
*
)
malloc
(
strlen
(
_PyOS_optarg
)
+
2
);
if
(
command
==
NULL
)
Py_FatalError
(
"not enough memory to copy -c argument"
);
...
...
@@ -221,7 +221,7 @@ Py_Main(int argc, char **argv)
/* -m is the last option; following arguments
that look like options are left for the
module to interpret. */
module
=
malloc
(
strlen
(
_PyOS_optarg
)
+
2
);
module
=
(
char
*
)
malloc
(
strlen
(
_PyOS_optarg
)
+
2
);
if
(
module
==
NULL
)
Py_FatalError
(
"not enough memory to copy -m argument"
);
...
...
Modules/posixmodule.c
Dosyayı görüntüle @
64182fe0
...
...
@@ -6009,7 +6009,7 @@ static PyObject *
posix_putenv
(
PyObject
*
self
,
PyObject
*
args
)
{
char
*
s1
,
*
s2
;
char
*
new
;
char
*
new
env
;
PyObject
*
newstr
;
size_t
len
;
...
...
@@ -6040,9 +6040,9 @@ posix_putenv(PyObject *self, PyObject *args)
newstr
=
PyString_FromStringAndSize
(
NULL
,
(
int
)
len
-
1
);
if
(
newstr
==
NULL
)
return
PyErr_NoMemory
();
new
=
PyString_AS_STRING
(
newstr
);
PyOS_snprintf
(
new
,
len
,
"%s=%s"
,
s1
,
s2
);
if
(
putenv
(
new
))
{
new
env
=
PyString_AS_STRING
(
newstr
);
PyOS_snprintf
(
new
env
,
len
,
"%s=%s"
,
s1
,
s2
);
if
(
putenv
(
new
env
))
{
Py_DECREF
(
newstr
);
posix_error
();
return
NULL
;
...
...
Python/pystrtod.c
Dosyayı görüntüle @
64182fe0
...
...
@@ -101,7 +101,7 @@ PyOS_ascii_strtod(const char *nptr, char **endptr)
char
*
copy
,
*
c
;
/* We need to convert the '.' to the locale specific decimal point */
copy
=
malloc
(
end
-
nptr
+
1
+
decimal_point_len
);
copy
=
(
char
*
)
malloc
(
end
-
nptr
+
1
+
decimal_point_len
);
c
=
copy
;
memcpy
(
c
,
nptr
,
decimal_point_pos
-
nptr
);
...
...
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