mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Add a comment explaining the return value of PyOS_CheckStack().
This commit is contained in:
parent
8ce159aef5
commit
e8de31cbd0
1 changed files with 4 additions and 1 deletions
|
@ -903,7 +903,7 @@ run_pyc_file(FILE *fp, char *filename, PyObject *globals, PyObject *locals)
|
||||||
PyCodeObject *co;
|
PyCodeObject *co;
|
||||||
PyObject *v;
|
PyObject *v;
|
||||||
long magic;
|
long magic;
|
||||||
long PyImport_GetMagicNumber();
|
long PyImport_GetMagicNumber(void);
|
||||||
|
|
||||||
magic = PyMarshal_ReadLongFromFile(fp);
|
magic = PyMarshal_ReadLongFromFile(fp);
|
||||||
if (magic != PyImport_GetMagicNumber()) {
|
if (magic != PyImport_GetMagicNumber()) {
|
||||||
|
@ -1201,6 +1201,9 @@ Py_FdIsInteractive(FILE *fp, char *filename)
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <excpt.h>
|
#include <excpt.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return non-zero when we run out of memory on the stack; zero otherwise.
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
PyOS_CheckStack()
|
PyOS_CheckStack()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue