summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-31 05:38:39 +0000
committerFred Drake <fdrake@acm.org>2000-08-31 05:38:39 +0000
commit70490f71773085b3c7712a0238f16e39ebd12ff3 (patch)
tree1958c7004d68a8d7552296e834a1aa271a1a54e7 /Python/pythonrun.c
parent468f55f2eab4127a7f432a8306989a4127f7a39d (diff)
downloadcpython-70490f71773085b3c7712a0238f16e39ebd12ff3.tar.gz
Add a comment explaining the return value of PyOS_CheckStack().
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c5
1 files changed, 4 insertions, 1 deletions
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 <malloc.h>
#include <excpt.h>
+/*
+ * Return non-zero when we run out of memory on the stack; zero otherwise.
+ */
int
PyOS_CheckStack()
{