From: Fred Drake Date: Thu, 31 Aug 2000 05:38:39 +0000 (+0000) Subject: Add a comment explaining the return value of PyOS_CheckStack(). X-Git-Tag: v2.0b1~153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8de31cbd094bf9e909e1cb12a19c6c3ca854dd7;p=python Add a comment explaining the return value of PyOS_CheckStack(). --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 8f7fc0c90f..48a033fd04 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -903,7 +903,7 @@ run_pyc_file(FILE *fp, char *filename, PyObject *globals, PyObject *locals) PyCodeObject *co; PyObject *v; long magic; - long PyImport_GetMagicNumber(); + long PyImport_GetMagicNumber(void); magic = PyMarshal_ReadLongFromFile(fp); if (magic != PyImport_GetMagicNumber()) { @@ -1201,6 +1201,9 @@ Py_FdIsInteractive(FILE *fp, char *filename) #include #include +/* + * Return non-zero when we run out of memory on the stack; zero otherwise. + */ int PyOS_CheckStack() {