diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-07-23 21:18:09 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-07-23 21:18:09 (GMT) |
commit | 4f1b2081e9dde910048ef679f5afe252023a4031 (patch) | |
tree | d0329ad8a22d260b10e05c31ca6291eb26f70b27 /Include | |
parent | 56055a474955811fd672e406d0a175349879759d (diff) | |
download | cpython-4f1b2081e9dde910048ef679f5afe252023a4031.zip cpython-4f1b2081e9dde910048ef679f5afe252023a4031.tar.gz cpython-4f1b2081e9dde910048ef679f5afe252023a4031.tar.bz2 |
Removed all instances of RETSIGTYPE from the source code: signal
handlers "return void", according to ANSI C.
Removed the new Py_RETURN_FROM_SIGNAL_HANDLER macro.
Left RETSIGTYPE in the config stuff, because it's not clear to
me that others aren't relying on it (e.g., extension modules).
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyport.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index ed8a28e..52807a9 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -23,11 +23,6 @@ Meaning: To be defined iff i>>j does not extend the sign bit when i is a signed integral type and i < 0. Used in: Py_ARITHMETIC_RIGHT_SHIFT -RETSIGTYPE -Meaning: Expands to void or int, depending on what the platform wants - signal handlers to return. Note that only void is ANSI! -Used in: Py_RETURN_FROM_SIGNAL_HANDLER - Py_DEBUG Meaning: Extra checks compiled in for debug mode. Used in: Py_SAFE_DOWNCAST @@ -66,18 +61,6 @@ extern "C" { */ #define Py_FORCE_EXPANSION(X) X -/* Py_RETURN_FROM_SIGNAL_HANDLER - * The return from a signal handler varies depending on whether RETSIGTYPE - * is int or void. The macro Py_RETURN_FROM_SIGNAL_HANDLER(VALUE) expands - * to - * return VALUE - * if RETSIGTYPE is int, else to nothing if RETSIGTYPE is void. - */ -#define int_PySIGRETURN(VALUE) return VALUE -#define void_PySIGRETURN(VALUE) -#define Py_RETURN_FROM_SIGNAL_HANDLER(VALUE) \ - Py_FORCE_EXPANSION(RETSIGTYPE) ## _PySIGRETURN(VALUE) - /* Py_SAFE_DOWNCAST(VALUE, WIDE, NARROW) * Cast VALUE to type NARROW from type WIDE. In Py_DEBUG mode, this * assert-fails if any information is lost. |