summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-07-09 10:51:31 (GMT)
committerGuido van Rossum <guido@python.org>1993-07-09 10:51:31 (GMT)
commite22e6442b748f5f4703cb6f221e1e10b320d0295 (patch)
treeb464f80ce6b88f81a4b79cd3270f7990ee14ef4e /Modules/timemodule.c
parentd05eb8b0fc24c518abcd582e875393886f37689b (diff)
downloadcpython-e22e6442b748f5f4703cb6f221e1e10b320d0295.zip
cpython-e22e6442b748f5f4703cb6f221e1e10b320d0295.tar.gz
cpython-e22e6442b748f5f4703cb6f221e1e10b320d0295.tar.bz2
* config.c: different default PYTHONPATH for MS-DOS
* timemodule.c: change #ifdef TURBO_C into #ifdef MSDOS * posixmodule.c: MSDOS changes by Marcel van der Peijl (Digicash) * stropmodule.c: use C isspace(c) to test for whitespace; add whitespace, lowercase and uppercase variables to the module.
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 68c5ac7..5bf1340 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -174,7 +174,7 @@ extern long sys_milli();
#define DO_MILLI
#endif /* BSD_TIME */
-#ifdef TURBO_C
+#ifdef MSDOS
#define DO_MILLI
#endif
@@ -469,7 +469,7 @@ floatsleep(secs)
#endif /* unix */
-#ifdef TURBO_C
+#ifdef MSDOS
#ifndef CLOCKS_PER_SEC
#define CLOCKS_PER_SEC 55 /* 54.945 msec per tick (18.2 HZ clock) */
@@ -491,10 +491,6 @@ millitimer()
return ticks * CLOCKS_PER_SEC;/* XXX shouldn't this be different? */
}
-#endif /* TURBO_C */
-
-#ifdef MSDOS
-
floatsleep(secs)
double secs;
{
@@ -502,4 +498,5 @@ floatsleep(secs)
while( (clock()-t)/CLOCKS_PER_SEC<secs )
;
}
+
#endif /* MSDOS */