]> granicus.if.org Git - python/commitdiff
Add a comment explaining the return value of PyOS_CheckStack().
authorFred Drake <fdrake@acm.org>
Thu, 31 Aug 2000 05:38:39 +0000 (05:38 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 31 Aug 2000 05:38:39 +0000 (05:38 +0000)
Python/pythonrun.c

index 8f7fc0c90f3b47887512c9e6e9e4b6b319e28094..48a033fd04b061f4b3922da7f4ca648c3c2a3795 100644 (file)
@@ -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()
 {