Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Undue a screwup
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Feb 29, 2016
1 parent ccc5ae4 commit cd2a484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
15 changes: 3 additions & 12 deletions Patches/Python/Include/ceval.h
@@ -1,5 +1,5 @@
diff --git a/Include/ceval.h b/Include/ceval.h
index ec62571..71b904d 100644
index b5373a9..97dab63 100644
--- a/Include/ceval.h
+++ b/Include/ceval.h
@@ -10,6 +10,11 @@ extern "C" {
Expand All @@ -14,24 +14,15 @@ index ec62571..71b904d 100644
/* Inline this */
#define PyEval_CallObject(func,arg) \
PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL)
@@ -82,6 +87,12 @@ PyAPI_FUNC(int) Py_GetRecursionLimit(void);
PyAPI_FUNC(int) _Py_CheckRecursiveCall(char *where);
@@ -82,6 +87,11 @@ PyAPI_FUNC(int) Py_GetRecursionLimit(void);
PyAPI_FUNC(int) _Py_CheckRecursiveCall(const char *where);
PyAPI_DATA(int) _Py_CheckRecursionLimit;

+/* Checks to see if periodic work needs to be done, such as releasing the GIL,
+ make any pending calls, or raising an asychronous exception. Returns true
+ if an error occurred or false on success. */
+PyAPI_FUNC(int) _PyEval_PeriodicWork(void);
+
+
#ifdef USE_STACKCHECK
/* With USE_STACKCHECK, we artificially decrement the recursion limit in order
to trigger regular stack checks in _Py_CheckRecursiveCall(), except if
@@ -113,6 +124,7 @@ PyAPI_FUNC(const char *) PyEval_GetFuncDesc(PyObject *);
PyAPI_FUNC(PyObject *) PyEval_GetCallStats(PyObject *);
PyAPI_FUNC(PyObject *) PyEval_EvalFrame(struct _frame *);
PyAPI_FUNC(PyObject *) PyEval_EvalFrameEx(struct _frame *f, int exc);
+PyAPI_FUNC(PyObject *) PyEval_EvalFrameEx_NoJit(struct _frame *f, int exc);

/* Interface for threads.

2 changes: 1 addition & 1 deletion Python
Submodule Python updated 728 files

0 comments on commit cd2a484

Please sign in to comment.