Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8de31c

Browse files
committed
Add a comment explaining the return value of PyOS_CheckStack().
1 parent 8ce159a commit e8de31c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Python/pythonrun.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ run_pyc_file(FILE *fp, char *filename, PyObject *globals, PyObject *locals)
903903
PyCodeObject *co;
904904
PyObject *v;
905905
long magic;
906-
long PyImport_GetMagicNumber();
906+
long PyImport_GetMagicNumber(void);
907907

908908
magic = PyMarshal_ReadLongFromFile(fp);
909909
if (magic != PyImport_GetMagicNumber()) {
@@ -1201,6 +1201,9 @@ Py_FdIsInteractive(FILE *fp, char *filename)
12011201
#include <malloc.h>
12021202
#include <excpt.h>
12031203

1204+
/*
1205+
* Return non-zero when we run out of memory on the stack; zero otherwise.
1206+
*/
12041207
int
12051208
PyOS_CheckStack()
12061209
{

0 commit comments

Comments
 (0)