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
cac6c721
Kaydet (Commit)
cac6c721
authored
Eyl 06, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Some changes for better Windows portability.
üst
3469e997
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
timemodule.c
Modules/timemodule.c
+11
-7
No files found.
Modules/timemodule.c
Dosyayı görüntüle @
cac6c721
...
@@ -59,14 +59,18 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -59,14 +59,18 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#ifdef __WATCOMC__
#ifdef __WATCOMC__
#include <i86.h>
#include <i86.h>
#else
#else
#ifdef
_M_IX86
#ifdef
MS_WINDOWS
#include <windows.h>
#include <windows.h>
#define timezone _timezone
#define timezone _timezone
#ifndef tzname
#define tzname _tzname
#define tzname _tzname
#define daylight _daylight
#define altzone _altzone
#endif
#endif
#ifndef daylight
#define daylight _daylight
#endif
#endif
#define altzone _altzone
#endif
/* MS_WINDOWS */
#endif
/* !__WATCOMC__ */
/* Forward declarations */
/* Forward declarations */
static
int
floatsleep
PROTO
((
double
));
static
int
floatsleep
PROTO
((
double
));
...
@@ -263,7 +267,7 @@ time_ctime(self, args)
...
@@ -263,7 +267,7 @@ time_ctime(self, args)
char
*
p
;
char
*
p
;
if
(
!
getargs
(
args
,
"d"
,
&
dt
))
if
(
!
getargs
(
args
,
"d"
,
&
dt
))
return
NULL
;
return
NULL
;
tt
=
dt
;
tt
=
(
time_t
)
dt
;
p
=
ctime
(
&
tt
);
p
=
ctime
(
&
tt
);
if
(
p
[
24
]
==
'\n'
)
if
(
p
[
24
]
==
'\n'
)
p
[
24
]
=
'\0'
;
p
[
24
]
=
'\0'
;
...
@@ -469,13 +473,13 @@ floatsleep(secs)
...
@@ -469,13 +473,13 @@ floatsleep(secs)
break
;
break
;
}
}
#else
/* !MSDOS */
#else
/* !MSDOS */
#ifdef
_M_IX86
#ifdef
MS_WINDOWS
/* XXX Can't interrupt this sleep */
/* XXX Can't interrupt this sleep */
Sleep
((
int
)(
secs
*
1000
));
Sleep
((
int
)(
secs
*
1000
));
#else
/*
_M_IX86
*/
#else
/*
!MS_WINDOWS
*/
/* XXX Can't interrupt this sleep */
/* XXX Can't interrupt this sleep */
sleep
((
int
)
secs
);
sleep
((
int
)
secs
);
#endif
/*
_M_IX86
*/
#endif
/*
!MS_WINDOWS
*/
#endif
/* !MSDOS */
#endif
/* !MSDOS */
#endif
/* !__WATCOMC__ */
#endif
/* !__WATCOMC__ */
#endif
/* !macintosh */
#endif
/* !macintosh */
...
...
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