mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
remove support for missing ANSI C header files (limits.h, stddef.h, etc).
This commit is contained in:
parent
05eb40128e
commit
7befb9966e
18 changed files with 17 additions and 139 deletions
|
@ -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 */
|
||||
|
|
|
@ -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() */
|
||||
}
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue