From: Martin v. Löwis Date: Sat, 4 May 2002 13:13:41 +0000 (+0000) Subject: Rename posix_WCONTINUED to posix_WIFCONTINUED, call WIFCONTINUED inside, X-Git-Tag: v2.3c1~5724 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b41b0d6a70330153952477baec47ec8c2efdc18;p=python Rename posix_WCONTINUED to posix_WIFCONTINUED, call WIFCONTINUED inside, add it to the posix_methods. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 03622b7535..9d7c3c20a3 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -4857,7 +4857,7 @@ Return True if the process returning 'status' was continued from a\n\ job control stop."; static PyObject * -posix_WCONTINUED(PyObject *self, PyObject *args) +posix_WIFCONTINUED(PyObject *self, PyObject *args) { #ifdef UNION_WAIT union wait status; @@ -4873,7 +4873,7 @@ posix_WCONTINUED(PyObject *self, PyObject *args) return NULL; } - return PyBool_FromLong(WCONTINUED(status)); + return PyBool_FromLong(WIFCONTINUED(status)); #undef status_i } #endif /* WIFCONTINUED */ @@ -6465,6 +6465,9 @@ static PyMethodDef posix_methods[] = { #ifdef WCOREDUMP {"WCOREDUMP", posix_WCOREDUMP, METH_VARARGS, posix_WCOREDUMP__doc__}, #endif /* WCOREDUMP */ +#ifdef WIFCONTINUED + {"WIFCONTINUED",posix_WIFCONTINUED, METH_VARARGS, posix_WIFCONTINUED__doc__}, +#endif /* WIFCONTINUED */ #ifdef WIFSTOPPED {"WIFSTOPPED", posix_WIFSTOPPED, METH_VARARGS, posix_WIFSTOPPED__doc__}, #endif /* WIFSTOPPED */