diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2004-12-14 21:11:42 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2004-12-14 21:11:42 (GMT) |
commit | bd20925e673c0a425280fc0163ce6febaf8c1e31 (patch) | |
tree | 107f654f002e993a551fe1925e706a97939c8a44 /generic/tclInt.h | |
parent | e648edc8fd0e8e6aa1d499e3392456a056f5acce (diff) | |
download | tcl-bd20925e673c0a425280fc0163ce6febaf8c1e31.zip tcl-bd20925e673c0a425280fc0163ce6febaf8c1e31.tar.gz tcl-bd20925e673c0a425280fc0163ce6febaf8c1e31.tar.bz2 |
changing the isProcCallFrame field of the CallFrame struct from a 0/1 field
to flags. Should be perfectly backwards compatible.
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r-- | generic/tclInt.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index 983cceb..38be9d5 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclInt.h,v 1.206 2004/12/11 14:41:46 msofer Exp $ + * RCS: @(#) $Id: tclInt.h,v 1.207 2004/12/14 21:11:46 msofer Exp $ */ #ifndef _TCLINT @@ -775,13 +775,13 @@ typedef struct AssocData { typedef struct CallFrame { Namespace *nsPtr; /* Points to the namespace used to resolve * commands and global variables. */ - int isProcCallFrame; /* If nonzero, the frame was pushed to - * execute a Tcl procedure and may have - * local vars. If 0, the frame was pushed - * to execute a namespace command and var - * references are treated as references to - * namespace vars; varTablePtr and - * compiledLocals are ignored. */ + int isProcCallFrame; /* If 0, the frame was pushed to execute a + * namespace command and var references are + * treated as references to namespace vars; + * varTablePtr and compiledLocals are ignored. + * If FRAME_IS_PROC is set, the frame was + * pushed to execute a Tcl procedure and may + * have local vars. */ int objc; /* This and objv below describe the * arguments for this procedure call. */ Tcl_Obj *CONST *objv; /* Array of argument objects. */ @@ -818,6 +818,8 @@ typedef struct CallFrame { * using an index into this array. */ } CallFrame; +#define FRAME_IS_PROC 0x1 + /* *---------------------------------------------------------------- * Data structures and procedures related to TclHandles, which |