diff options
author | Skip Montanaro <skip@pobox.com> | 2004-02-10 16:50:21 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2004-02-10 16:50:21 (GMT) |
commit | 7befb9966e1435475a9d2e9d3cc3670564ce77aa (patch) | |
tree | 4e33029bfd72bb8eaa72f9fdd5c1712e5ecdb97b /Python | |
parent | 05eb40128e305e07527d317e3964e8a1160d0961 (diff) | |
download | cpython-7befb9966e1435475a9d2e9d3cc3670564ce77aa.zip cpython-7befb9966e1435475a9d2e9d3cc3670564ce77aa.tar.gz cpython-7befb9966e1435475a9d2e9d3cc3670564ce77aa.tar.bz2 |
remove support for missing ANSI C header files (limits.h, stddef.h, etc).
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 11 | ||||
-rw-r--r-- | Python/pythonrun.c | 4 | ||||
-rw-r--r-- | Python/thread.c | 6 |
3 files changed, 0 insertions, 21 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index f2d79e7..cf5e9ec 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -806,17 +806,6 @@ eval_frame(PyFrameObject *f) goto on_error; } } -#if !defined(HAVE_SIGNAL_H) - /* If we have true signals, the signal handler - will call Py_AddPendingCall() so we don't - have to call PyErr_CheckSignals(). On the - Mac and DOS, alas, we have to call it. */ - if (PyErr_CheckSignals()) { - why = WHY_EXCEPTION; - goto on_error; - } -#endif - #ifdef WITH_THREAD if (interpreter_lock) { /* Give another thread a chance */ diff --git a/Python/pythonrun.c b/Python/pythonrun.c index eedb562..224b3c8 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -13,9 +13,7 @@ #include "eval.h" #include "marshal.h" -#ifdef HAVE_SIGNAL_H #include <signal.h> -#endif #ifdef HAVE_LANGINFO_H #include <locale.h> @@ -1563,7 +1561,6 @@ Py_Exit(int sts) static void initsigs(void) { -#ifdef HAVE_SIGNAL_H #ifdef SIGPIPE signal(SIGPIPE, SIG_IGN); #endif @@ -1573,7 +1570,6 @@ initsigs(void) #ifdef SIGXFSZ signal(SIGXFSZ, SIG_IGN); #endif -#endif /* HAVE_SIGNAL_H */ PyOS_InitInterrupts(); /* May imply initsignal() */ } diff --git a/Python/thread.c b/Python/thread.c index 016ccba..8bc958f 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -11,13 +11,7 @@ #include <stdio.h> #endif -#ifdef HAVE_STDLIB_H #include <stdlib.h> -#else -#ifdef Py_DEBUG -extern char *getenv(const char *); -#endif -#endif #ifdef __sgi #ifndef HAVE_PTHREAD_H /* XXX Need to check in configure.in */ |