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
6a35bf6c
Kaydet (Commit)
6a35bf6c
authored
Eki 08, 2016
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Silenced compiler warnings.
üst
0ea51b18
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
12 deletions
+10
-12
getpath.c
Modules/getpath.c
+3
-5
socketmodule.c
Modules/socketmodule.c
+4
-4
codeobject.c
Objects/codeobject.c
+0
-1
pgen.c
Parser/pgen.c
+3
-2
No files found.
Modules/getpath.c
Dosyayı görüntüle @
6a35bf6c
...
...
@@ -329,11 +329,9 @@ search_for_exec_prefix(char *argv0_path, char *home)
n
=
fread
(
rel_builddir_path
,
1
,
MAXPATHLEN
,
f
);
rel_builddir_path
[
n
]
=
'\0'
;
fclose
(
f
);
if
(
n
>=
0
)
{
strcpy
(
exec_prefix
,
argv0_path
);
joinpath
(
exec_prefix
,
rel_builddir_path
);
return
-
1
;
}
strcpy
(
exec_prefix
,
argv0_path
);
joinpath
(
exec_prefix
,
rel_builddir_path
);
return
-
1
;
}
}
...
...
Modules/socketmodule.c
Dosyayı görüntüle @
6a35bf6c
...
...
@@ -3472,7 +3472,7 @@ socket_gethostbyname_ex(PyObject *self, PyObject *args)
int
buf_len
=
(
sizeof
buf
)
-
1
;
int
errnop
;
#endif
#if
defined(HAVE_GETHOSTBYNAME_R_3_ARG) || defined(HAVE_GETHOSTBYNAME_R_6_ARG)
#if
def HAVE_GETHOSTBYNAME_R_3_ARG
int
result
;
#endif
#endif
/* HAVE_GETHOSTBYNAME_R */
...
...
@@ -3484,7 +3484,7 @@ socket_gethostbyname_ex(PyObject *self, PyObject *args)
Py_BEGIN_ALLOW_THREADS
#ifdef HAVE_GETHOSTBYNAME_R
#if defined(HAVE_GETHOSTBYNAME_R_6_ARG)
result
=
gethostbyname_r
(
name
,
&
hp_allocated
,
buf
,
buf_len
,
gethostbyname_r
(
name
,
&
hp_allocated
,
buf
,
buf_len
,
&
h
,
&
errnop
);
#elif defined(HAVE_GETHOSTBYNAME_R_5_ARG)
h
=
gethostbyname_r
(
name
,
&
hp_allocated
,
buf
,
buf_len
,
&
errnop
);
...
...
@@ -3548,7 +3548,7 @@ socket_gethostbyaddr(PyObject *self, PyObject *args)
int
buf_len
=
(
sizeof
buf
)
-
1
;
int
errnop
;
#endif
#if
defined(HAVE_GETHOSTBYNAME_R_3_ARG) || defined(HAVE_GETHOSTBYNAME_R_6_ARG)
#if
def HAVE_GETHOSTBYNAME_R_3_ARG
int
result
;
#endif
#endif
/* HAVE_GETHOSTBYNAME_R */
...
...
@@ -3581,7 +3581,7 @@ socket_gethostbyaddr(PyObject *self, PyObject *args)
Py_BEGIN_ALLOW_THREADS
#ifdef HAVE_GETHOSTBYNAME_R
#if defined(HAVE_GETHOSTBYNAME_R_6_ARG)
result
=
gethostbyaddr_r
(
ap
,
al
,
af
,
gethostbyaddr_r
(
ap
,
al
,
af
,
&
hp_allocated
,
buf
,
buf_len
,
&
h
,
&
errnop
);
#elif defined(HAVE_GETHOSTBYNAME_R_5_ARG)
...
...
Objects/codeobject.c
Dosyayı görüntüle @
6a35bf6c
...
...
@@ -95,7 +95,6 @@ PyCode_New(int argcount, int nlocals, int stacksize, int flags,
PyObject
*
lnotab
)
{
PyCodeObject
*
co
;
Py_ssize_t
i
;
/* Check argument types */
if
(
argcount
<
0
||
nlocals
<
0
||
code
==
NULL
||
...
...
Parser/pgen.c
Dosyayı görüntüle @
6a35bf6c
...
...
@@ -136,11 +136,12 @@ addnfa(nfagrammar *gr, char *name)
static
char
REQNFMT
[]
=
"metacompile: less than %d children
\n
"
;
#define REQN(i, count) \
#define REQN(i, count)
do {
\
if (i < count) { \
fprintf(stderr, REQNFMT, count); \
Py_FatalError("REQN"); \
} else
} \
} while (0)
#else
#define REQN(i, count)
/* empty */
...
...
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