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
6f489d98
Kaydet (Commit)
6f489d98
authored
Haz 28, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Slightly different Windows ifdefs
üst
919c5762
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
selectmodule.c
Modules/selectmodule.c
+1
-1
socketmodule.c
Modules/socketmodule.c
+4
-4
import.c
Python/import.c
+2
-3
sysmodule.c
Python/sysmodule.c
+1
-1
No files found.
Modules/selectmodule.c
Dosyayı görüntüle @
6f489d98
...
...
@@ -34,7 +34,7 @@ have any value except INVALID_SOCKET.
#include <sys/types.h>
#ifdef
_MSC_VER
#ifdef
MS_WINDOWS
#include <winsock.h>
#else
#include "myselect.h"
/* Also includes mytime.h */
...
...
Modules/socketmodule.c
Dosyayı görüntüle @
6f489d98
...
...
@@ -82,7 +82,7 @@ Socket methods:
#include "mytime.h"
#include <signal.h>
#ifndef
_MSC_VER
#ifndef
MS_WINDOWS
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
...
...
@@ -487,7 +487,7 @@ BUILD_FUNC_DEF_2(PySocketSock_setblocking,PySocketSockObject*,s,PyObject*,args)
if
(
!
PyArg_GetInt
(
args
,
&
block
))
return
NULL
;
Py_BEGIN_ALLOW_THREADS
#ifndef
_MSC_VER
#ifndef
MS_WINDOWS
delay_flag
=
fcntl
(
s
->
sock_fd
,
F_GETFL
,
0
);
if
(
block
)
delay_flag
&=
(
~
O_NDELAY
);
...
...
@@ -1108,7 +1108,7 @@ static PyObject *
BUILD_FUNC_DEF_2
(
PySocket_socket
,
PyObject
*
,
self
,
PyObject
*
,
args
)
{
PySocketSockObject
*
s
;
#ifdef
_MSC_VER
#ifdef
MS_WINDOWS
SOCKET
fd
;
#else
int
fd
;
...
...
@@ -1119,7 +1119,7 @@ BUILD_FUNC_DEF_2(PySocket_socket,PyObject *,self, PyObject *,args)
Py_BEGIN_ALLOW_THREADS
fd
=
socket
(
family
,
type
,
proto
);
Py_END_ALLOW_THREADS
#ifdef
_MSC_VER
#ifdef
MS_WINDOWS
if
(
fd
==
INVALID_SOCKET
)
#else
if
(
fd
<
0
)
...
...
Python/import.c
Dosyayı görüntüle @
6f489d98
...
...
@@ -415,7 +415,7 @@ find_module(name, path, buf, buflen, p_fp)
struct
filedescr
*
fdp
;
FILE
*
fp
=
NULL
;
#ifdef
NT
#ifdef
PYTHONWIN
if
((
fp
=
PyWin_FindRegisteredModule
(
name
,
&
fdp
,
buf
,
buflen
))
!=
NULL
)
{
*
p_fp
=
fp
;
return
fdp
;
...
...
@@ -463,12 +463,11 @@ find_module(name, path, buf, buflen, p_fp)
buf
[
len
++
]
=
ch
;
}
else
/* Not in dos_8x3, use the full name */
#e
lse
#e
ndif
{
strcpy
(
buf
+
len
,
name
);
len
+=
namelen
;
}
#endif
for
(
fdp
=
import_filetab
;
fdp
->
suffix
!=
NULL
;
fdp
++
)
{
strcpy
(
buf
+
len
,
fdp
->
suffix
);
if
(
verbose
>
1
)
...
...
Python/sysmodule.c
Dosyayı görüntüle @
6f489d98
...
...
@@ -269,7 +269,7 @@ initsys()
dictinsert
(
sysdict
,
"builtin_module_names"
,
v
=
list_builtin_module_names
());
XDECREF
(
v
);
#ifdef
NT
#ifdef
PYTHONWIN
dictinsert
(
sysdict
,
"dllhandle"
,
v
=
newintobject
((
int
)
PyWin_DLLhModule
));
XDECREF
(
v
);
dictinsert
(
sysdict
,
"winver"
,
v
=
newstringobject
(
WIN32_PATCH_LEVEL
));
...
...
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