diff options
author | Guido van Rossum <guido@python.org> | 1995-01-09 17:53:26 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-09 17:53:26 (GMT) |
commit | 6135a87f2b1474be6caf1bf776024d0c6d10a6d1 (patch) | |
tree | e0b23d5b7b9587a76917894a601f311514c80a8b /Include | |
parent | 2565bff40a6d7d06c29b7d7a7a580f78b1d4f169 (diff) | |
download | cpython-6135a87f2b1474be6caf1bf776024d0c6d10a6d1.zip cpython-6135a87f2b1474be6caf1bf776024d0c6d10a6d1.tar.gz cpython-6135a87f2b1474be6caf1bf776024d0c6d10a6d1.tar.bz2 |
__builtins__ mods (and sys_checkinterval for ceval.c)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/bltinmodule.h | 4 | ||||
-rw-r--r-- | Include/ceval.h | 2 | ||||
-rw-r--r-- | Include/frameobject.h | 2 | ||||
-rwxr-xr-x | Include/rename1.h | 5 |
4 files changed, 8 insertions, 5 deletions
diff --git a/Include/bltinmodule.h b/Include/bltinmodule.h index c94cf63..2f4c120 100644 --- a/Include/bltinmodule.h +++ b/Include/bltinmodule.h @@ -30,9 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. /* Built-in module interface */ -extern object *getbuiltin PROTO((object *)); -extern object *getbuiltins PROTO((char *)); -extern int setbuiltin PROTO((char *, object *)); +extern object *getbuiltindict PROTO(()); #ifdef __cplusplus } diff --git a/Include/ceval.h b/Include/ceval.h index 796b11a..d1020aa 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -32,10 +32,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. object *call_object PROTO((object *, object *)); +object *getbuiltins PROTO((void)); object *getglobals PROTO((void)); object *getlocals PROTO((void)); object *getowner PROTO((void)); object *getframe PROTO((void)); +int getrestricted PROTO((void)); void flushline PROTO((void)); diff --git a/Include/frameobject.h b/Include/frameobject.h index f8ad710..2179de8 100644 --- a/Include/frameobject.h +++ b/Include/frameobject.h @@ -40,6 +40,7 @@ typedef struct _frame { OB_HEAD struct _frame *f_back; /* previous frame, or NULL */ codeobject *f_code; /* code segment */ + object *f_builtins; /* builtin symbol table (dictobject) */ object *f_globals; /* global symbol table (dictobject) */ object *f_locals; /* local symbol table (dictobject) */ object *f_owner; /* owner (e.g. class or module) or NULL */ @@ -52,6 +53,7 @@ typedef struct _frame { int f_iblock; /* index in f_blockstack */ int f_lasti; /* Last instruction if called */ int f_lineno; /* Current line number */ + int f_restricted; /* Flag set if restricted operations in this scope */ object *f_trace; /* Trace function */ } frameobject; diff --git a/Include/rename1.h b/Include/rename1.h index 2ae9326..90f129f 100755 --- a/Include/rename1.h +++ b/Include/rename1.h @@ -269,6 +269,7 @@ typedef struct methodlist PyMethodDef; #define PyEval_CallObject call_object #define PyEval_EvalCode eval_code #define Py_FlushLine flushline +#define PyEval_GetBuiltins getbuiltins #define PyEval_GetGlobals getglobals #define PyEval_GetLocals getlocals #define PyEval_InitThreads init_save_thread @@ -287,7 +288,7 @@ typedef struct methodlist PyMethodDef; #define PyImport_Init initimport #define PyImport_ReloadModule reload_module #define PyNumber_Coerce coerce -#define PyBuiltin_GetObject getbuiltin +#define PyBuiltin_GetDict getbuiltindict #define PyBuiltin_Init initbuiltin #define PyMarshal_Init initmarshal #define PyMarshal_ReadLongFromFile rd_long @@ -317,7 +318,7 @@ typedef struct methodlist PyMethodDef; #define PyRun_InteractiveLoop run_tty_loop #define PyMember_Get getmember #define PyMember_Set setmember -#define Py_InitModule initmodule +#define Py_InitModule(name, methods) initmodule(name, methods) #define Py_BuildValue mkvalue #define Py_VaBuildValue vmkvalue #define PyArg_Parse getargs |