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
e89b1569
Kaydet (Commit)
e89b1569
authored
Tem 10, 2000
tarafından
Peter Schneider-Kamp
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ANSI-fication
üst
c4bc0e08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
32 deletions
+11
-32
signalmodule.c
Modules/signalmodule.c
+6
-17
timingmodule.c
Modules/timingmodule.c
+5
-15
No files found.
Modules/signalmodule.c
Dosyayı görüntüle @
e89b1569
...
@@ -97,9 +97,7 @@ static RETSIGTYPE (*old_siginthandler)() = SIG_DFL;
...
@@ -97,9 +97,7 @@ static RETSIGTYPE (*old_siginthandler)() = SIG_DFL;
static
PyObject
*
static
PyObject
*
signal_default_int_handler
(
self
,
arg
)
signal_default_int_handler
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
self
;
PyObject
*
arg
;
{
{
PyErr_SetNone
(
PyExc_KeyboardInterrupt
);
PyErr_SetNone
(
PyExc_KeyboardInterrupt
);
return
NULL
;
return
NULL
;
...
@@ -113,8 +111,7 @@ It raises KeyboardInterrupt.";
...
@@ -113,8 +111,7 @@ It raises KeyboardInterrupt.";
static
RETSIGTYPE
static
RETSIGTYPE
signal_handler
(
sig_num
)
signal_handler
(
int
sig_num
)
int
sig_num
;
{
{
#ifdef WITH_THREAD
#ifdef WITH_THREAD
/* See NOTES section above */
/* See NOTES section above */
...
@@ -146,9 +143,7 @@ signal_handler(sig_num)
...
@@ -146,9 +143,7 @@ signal_handler(sig_num)
#ifdef HAVE_ALARM
#ifdef HAVE_ALARM
static
PyObject
*
static
PyObject
*
signal_alarm
(
self
,
args
)
signal_alarm
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
self
;
/* Not used */
PyObject
*
args
;
{
{
int
t
;
int
t
;
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
t
))
if
(
!
PyArg_Parse
(
args
,
"i"
,
&
t
))
...
@@ -165,9 +160,7 @@ Arrange for SIGALRM to arrive after the given number of seconds.";
...
@@ -165,9 +160,7 @@ Arrange for SIGALRM to arrive after the given number of seconds.";
#ifdef HAVE_PAUSE
#ifdef HAVE_PAUSE
static
PyObject
*
static
PyObject
*
signal_pause
(
self
,
args
)
signal_pause
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
self
;
/* Not used */
PyObject
*
args
;
{
{
if
(
!
PyArg_NoArgs
(
args
))
if
(
!
PyArg_NoArgs
(
args
))
return
NULL
;
return
NULL
;
...
@@ -193,9 +186,7 @@ Wait until a signal arrives.";
...
@@ -193,9 +186,7 @@ Wait until a signal arrives.";
static
PyObject
*
static
PyObject
*
signal_signal
(
self
,
args
)
signal_signal
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
self
;
/* Not used */
PyObject
*
args
;
{
{
PyObject
*
obj
;
PyObject
*
obj
;
int
sig_num
;
int
sig_num
;
...
@@ -253,9 +244,7 @@ the first is the signal number, the second is the interrupted stack frame.";
...
@@ -253,9 +244,7 @@ the first is the signal number, the second is the interrupted stack frame.";
static
PyObject
*
static
PyObject
*
signal_getsignal
(
self
,
args
)
signal_getsignal
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
self
;
/* Not used */
PyObject
*
args
;
{
{
int
sig_num
;
int
sig_num
;
PyObject
*
old_handler
;
PyObject
*
old_handler
;
...
...
Modules/timingmodule.c
Dosyayı görüntüle @
e89b1569
...
@@ -8,9 +8,7 @@
...
@@ -8,9 +8,7 @@
#include "timing.h"
#include "timing.h"
static
PyObject
*
static
PyObject
*
start_timing
(
self
,
args
)
start_timing
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
self
;
PyObject
*
args
;
{
{
if
(
!
PyArg_Parse
(
args
,
""
))
if
(
!
PyArg_Parse
(
args
,
""
))
return
NULL
;
return
NULL
;
...
@@ -21,9 +19,7 @@ start_timing(self, args)
...
@@ -21,9 +19,7 @@ start_timing(self, args)
}
}
static
PyObject
*
static
PyObject
*
finish_timing
(
self
,
args
)
finish_timing
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
self
;
PyObject
*
args
;
{
{
if
(
!
PyArg_Parse
(
args
,
""
))
if
(
!
PyArg_Parse
(
args
,
""
))
return
NULL
;
return
NULL
;
...
@@ -34,9 +30,7 @@ finish_timing(self, args)
...
@@ -34,9 +30,7 @@ finish_timing(self, args)
}
}
static
PyObject
*
static
PyObject
*
seconds
(
self
,
args
)
seconds
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
self
;
PyObject
*
args
;
{
{
if
(
!
PyArg_Parse
(
args
,
""
))
if
(
!
PyArg_Parse
(
args
,
""
))
return
NULL
;
return
NULL
;
...
@@ -46,9 +40,7 @@ seconds(self, args)
...
@@ -46,9 +40,7 @@ seconds(self, args)
}
}
static
PyObject
*
static
PyObject
*
milli
(
self
,
args
)
milli
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
self
;
PyObject
*
args
;
{
{
if
(
!
PyArg_Parse
(
args
,
""
))
if
(
!
PyArg_Parse
(
args
,
""
))
return
NULL
;
return
NULL
;
...
@@ -57,9 +49,7 @@ milli(self, args)
...
@@ -57,9 +49,7 @@ milli(self, args)
}
}
static
PyObject
*
static
PyObject
*
micro
(
self
,
args
)
micro
(
PyObject
*
self
,
PyObject
*
args
)
PyObject
*
self
;
PyObject
*
args
;
{
{
if
(
!
PyArg_Parse
(
args
,
""
))
if
(
!
PyArg_Parse
(
args
,
""
))
return
NULL
;
return
NULL
;
...
...
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