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
a597dde3
Kaydet (Commit)
a597dde3
authored
Ock 10, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cosmetic changes so these modules will work with the strict new naming scheme
üst
6c1874fc
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
30 deletions
+23
-30
_cursesmodule.c
Modules/_cursesmodule.c
+1
-1
_tkinter.c
Modules/_tkinter.c
+4
-4
mpzmodule.c
Modules/mpzmodule.c
+1
-2
rotormodule.c
Modules/rotormodule.c
+5
-5
signalmodule.c
Modules/signalmodule.c
+6
-7
socketmodule.c
Modules/socketmodule.c
+5
-5
syslogmodule.c
Modules/syslogmodule.c
+1
-4
threadmodule.c
Modules/threadmodule.c
+0
-2
No files found.
Modules/_cursesmodule.c
Dosyayı görüntüle @
a597dde3
...
...
@@ -953,7 +953,7 @@ PyCursesWindow_GetAttr(self, name)
PyCursesWindowObject
*
self
;
char
*
name
;
{
return
findm
ethod
(
PyCursesWindow_Methods
,
(
PyObject
*
)
self
,
name
);
return
Py_FindM
ethod
(
PyCursesWindow_Methods
,
(
PyObject
*
)
self
,
name
);
}
/* --------------- PAD routines ---------------- */
...
...
Modules/_tkinter.c
Dosyayı görüntüle @
a597dde3
...
...
@@ -744,7 +744,7 @@ Tkapp_DeleteCommand (self, args)
/** File Handler **/
void
static
void
FileHandler
(
clientData
,
mask
)
ClientData
clientData
;
/* Is: (func, file) */
int
mask
;
...
...
@@ -770,7 +770,7 @@ GetFileNo (file)
PyObject
*
file
;
/* Either an int >= 0 or an object with a
.fileno() method that returns an int >= 0 */
{
o
bject
*
meth
,
*
args
,
*
res
;
PyO
bject
*
meth
,
*
args
,
*
res
;
int
id
;
if
(
PyInt_Check
(
file
))
{
id
=
PyInt_AsLong
(
file
);
...
...
@@ -933,7 +933,7 @@ Tktt_GetAttr (self, name)
static
PyTypeObject
Tktt_Type
=
{
OB
_HEAD_INIT
(
&
PyType_Type
)
PyObject
_HEAD_INIT
(
&
PyType_Type
)
0
,
/*ob_size */
"tktimertoken"
,
/*tp_name */
sizeof
(
TkttObject
),
/*tp_basicsize */
...
...
@@ -1122,7 +1122,7 @@ Tkapp_GetAttr (self, name)
static
PyTypeObject
Tkapp_Type
=
{
OB
_HEAD_INIT
(
&
PyType_Type
)
PyObject
_HEAD_INIT
(
&
PyType_Type
)
0
,
/*ob_size */
"tkapp"
,
/*tp_name */
sizeof
(
TkappObject
),
/*tp_basicsize */
...
...
Modules/mpzmodule.c
Dosyayı görüntüle @
a597dde3
...
...
@@ -34,8 +34,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* MPZ objects */
#include "allobjects.h"
#include "modsupport.h"
/* For getargs() etc. */
#include "rename1.h"
#include <assert.h>
#include <sys/types.h>
/* For size_t */
...
...
Modules/rotormodule.c
Dosyayı görüntüle @
a597dde3
...
...
@@ -57,8 +57,8 @@ NOTE: you MUST use the SAME key in rotor.newrotor()
#include "Python.h"
#include <stdio.h>
#include <math.h>
#define TRUE 1
#define FALSE 0
...
...
@@ -217,7 +217,7 @@ PyRotor_New(num_rotors, key)
goto
fail
;
return
xp
;
fail
:
DECREF
(
xp
);
Py_
DECREF
(
xp
);
return
(
PyRotorObject
*
)
PyErr_NoMemory
();
}
...
...
@@ -736,7 +736,7 @@ PyRotor_SetKey(self, args)
return
Py_None
;
}
static
struct
methodlist
PyRotor_Methods
[]
=
{
static
struct
PyMethodDef
PyRotor_Methods
[]
=
{
{
"encrypt"
,
(
PyCFunction
)
PyRotor_Encrypt
},
{
"encryptmore"
,
(
PyCFunction
)
PyRotor_EncryptMore
},
{
"decrypt"
,
(
PyCFunction
)
PyRotor_Decrypt
},
...
...
@@ -756,7 +756,7 @@ PyRotor_GetAttr(s, name)
}
static
PyTypeObject
PyRotor_Type
=
{
PyObject_HEAD_INIT
(
&
Typet
ype
)
PyObject_HEAD_INIT
(
&
PyType_T
ype
)
0
,
/*ob_size*/
"rotor"
,
/*tp_name*/
sizeof
(
PyRotorObject
),
/*tp_size*/
...
...
@@ -793,7 +793,7 @@ PyRotor_Rotor(self, args)
return
(
PyObject
*
)
r
;
}
static
struct
methodlist
PyRotor_Rotor_Methods
[]
=
{
static
struct
PyMethodDef
PyRotor_Rotor_Methods
[]
=
{
{
"newrotor"
,
(
PyCFunction
)
PyRotor_Rotor
},
{
NULL
,
NULL
}
/* Sentinel */
};
...
...
Modules/signalmodule.c
Dosyayı görüntüle @
a597dde3
...
...
@@ -28,7 +28,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "intrcheck.h"
#include <signal.h>
#include <errno.h>
#ifndef SIG_ERR
#define SIG_ERR ((RETSIGTYPE (*)())-1)
...
...
@@ -130,16 +129,16 @@ PySignal_Alarm(self, args)
return
PyInt_FromLong
(
alarm
(
t
));
}
static
o
bject
*
static
PyO
bject
*
PySignal_Pause
(
self
,
args
)
PyObject
*
self
;
/* Not used */
PyObject
*
args
;
{
if
(
!
PyArg_NoArgs
(
args
))
return
NULL
;
BGN_SAVE
Py_BEGIN_ALLOW_THREADS
pause
();
END_SAVE
Py_END_ALLOW_THREADS
Py_INCREF
(
Py_None
);
return
Py_None
;
}
...
...
@@ -418,7 +417,7 @@ sigcheck()
if
(
get_thread_ident
()
!=
main_thread
)
return
0
;
#endif
f
=
getf
rame
();
f
=
PyEval_GetF
rame
();
if
(
f
==
(
PyObject
*
)
NULL
)
f
=
Py_None
;
for
(
i
=
1
;
i
<
NSIG
;
i
++
)
{
...
...
@@ -446,13 +445,13 @@ sigcheck()
/* Replacement for intrcheck.c functionality */
void
initintr
()
PyOS_InitInterrupts
()
{
initsignal
();
}
int
intrcheck
()
PyOS_InterruptOccurred
()
{
if
(
PySignal_SignalHandlerArray
[
SIGINT
].
tripped
)
{
#ifdef WITH_THREAD
...
...
Modules/socketmodule.c
Dosyayı görüntüle @
a597dde3
...
...
@@ -580,7 +580,7 @@ BUILD_FUNC_DEF_2(PySocketSock_getsockopt,PySocketSockObject *,s, PyObject *,args
if
(
buf
==
NULL
)
return
NULL
;
res
=
getsockopt
(
s
->
sock_fd
,
level
,
optname
,
(
ANY
*
)
getstringvalue
(
buf
),
&
buflen
);
(
ANY
*
)
PyString_AsString
(
buf
),
&
buflen
);
if
(
res
<
0
)
{
Py_DECREF
(
buf
);
return
PySocket_Err
();
...
...
@@ -732,7 +732,7 @@ BUILD_FUNC_DEF_2(PySocketSock_listen,PySocketSockObject *,s, PyObject *,args)
static
PyObject
*
BUILD_FUNC_DEF_2
(
PySocketSock_makefile
,
PySocketSockObject
*
,
s
,
PyObject
*
,
args
)
{
extern
int
fclose
PROTO
((
FILE
*
));
extern
int
fclose
P
y_P
ROTO
((
FILE
*
));
char
*
mode
;
int
fd
;
FILE
*
fp
;
...
...
@@ -762,7 +762,7 @@ BUILD_FUNC_DEF_2(PySocketSock_recv,PySocketSockObject *,s, PyObject *,args)
if
(
buf
==
NULL
)
return
NULL
;
Py_BEGIN_ALLOW_THREADS
n
=
recv
(
s
->
sock_fd
,
getstringvalue
(
buf
),
len
,
flags
);
n
=
recv
(
s
->
sock_fd
,
PyString_AsString
(
buf
),
len
,
flags
);
Py_END_ALLOW_THREADS
if
(
n
<
0
)
return
PySocket_Err
();
...
...
@@ -937,12 +937,12 @@ BUILD_FUNC_DEF_1(PySocketSock_repr,PySocketSockObject *,s)
PyObject
*
addro
;
struct
sockaddr
*
addr
;
char
buf
[
512
];
o
bject
*
t
,
*
comma
,
*
v
;
PyO
bject
*
t
,
*
comma
,
*
v
;
int
i
,
len
;
sprintf
(
buf
,
"<socket object, fd=%d, family=%d, type=%d, protocol=%d>"
,
s
->
sock_fd
,
s
->
sock_family
,
s
->
sock_type
,
s
->
sock_proto
);
t
=
newstringobject
(
buf
);
t
=
PyString_FromString
(
buf
);
return
t
;
}
...
...
Modules/syslogmodule.c
Dosyayı görüntüle @
a597dde3
...
...
@@ -24,13 +24,10 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* syslog module */
#include "allobjects.h"
#include "modsupport.h"
#include "Python.h"
#include <syslog.h>
#include "rename1.h"
static
PyObject
*
syslog_openlog
(
self
,
args
)
PyObject
*
self
;
...
...
Modules/threadmodule.c
Dosyayı görüntüle @
a597dde3
...
...
@@ -26,8 +26,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Interface to Sjoerd's portable C thread library */
#include "allobjects.h"
#include "modsupport.h"
#include "ceval.h"
#ifndef WITH_THREAD
Error
!
The
rest
of
Python
is
not
compiled
with
thread
support
.
...
...
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