summaryrefslogtreecommitdiff
path: root/Include/frameobject.h
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-06-12 02:11:18 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-06-12 02:11:18 +0000
commitb9845e72f9af2c47fbeeb0d27bd1659e38a9ffbd (patch)
tree4aa1710f2eafe066868bfe001317774344b0d1dd /Include/frameobject.h
parent2585ad58e6b8bbb54888f31f72536f55a3c77b29 (diff)
downloadcpython-git-b9845e72f9af2c47fbeeb0d27bd1659e38a9ffbd.tar.gz
Get rid of f_restricted too. Doc the other 4 ints that were already removed
at the NeedForSpeed sprint.
Diffstat (limited to 'Include/frameobject.h')
-rw-r--r--Include/frameobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/frameobject.h b/Include/frameobject.h
index cce598bee2..794f6515bd 100644
--- a/Include/frameobject.h
+++ b/Include/frameobject.h
@@ -41,8 +41,6 @@ typedef struct _frame {
/* As of 2.3 f_lineno is only valid when tracing is active (i.e. when
f_trace is set) -- at other times use PyCode_Addr2Line instead. */
int f_lineno; /* Current line number */
- int f_restricted; /* Flag set if restricted operations
- in this scope */
int f_iblock; /* index in f_blockstack */
PyTryBlock f_blockstack[CO_MAXBLOCKS]; /* for try and loop blocks */
PyObject *f_localsplus[1]; /* locals+stack, dynamically sized */
@@ -54,6 +52,8 @@ typedef struct _frame {
PyAPI_DATA(PyTypeObject) PyFrame_Type;
#define PyFrame_Check(op) ((op)->ob_type == &PyFrame_Type)
+#define PyFrame_IsRestricted(f) \
+ ((f)->f_builtins != (f)->f_tstate->interp->builtins)
PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,
PyObject *, PyObject *);