summaryrefslogtreecommitdiffstats
path: root/generic/tclNRE.h
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2008-07-21 16:25:58 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2008-07-21 16:25:58 (GMT)
commit1d5e719008a7c51b66cc13a0a30991af762353c1 (patch)
tree8fd30c46b1bdb91d7e870818b760478eb06a9f16 /generic/tclNRE.h
parent884b6dff3c37ee13afd4737b75fd7c23ed011c5d (diff)
downloadtcl-1d5e719008a7c51b66cc13a0a30991af762353c1.zip
tcl-1d5e719008a7c51b66cc13a0a30991af762353c1.tar.gz
tcl-1d5e719008a7c51b66cc13a0a30991af762353c1.tar.bz2
* generic/tcl.decls: Changed the implementation of
* generic/tclBasic.c: [namespace import]; removed * generic/tclDecls.h: Tcl_NRObjProc, replaced with * generic/tclExecute.c: Tcl_NRCmdSwap (proposed public * generic/tclInt.h: NRE API). This should fix * generic/tclNRE.h: [Bug 582506]. * generic/tclNamesp.c: * generic/tclStubInit.c:
Diffstat (limited to 'generic/tclNRE.h')
-rw-r--r--generic/tclNRE.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/generic/tclNRE.h b/generic/tclNRE.h
index 4d44ab2..e0d692d 100644
--- a/generic/tclNRE.h
+++ b/generic/tclNRE.h
@@ -11,7 +11,7 @@
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* // FIXME: RCS numbering?
- * RCS: @(#) $Id: tclNRE.h,v 1.5 2008/07/21 03:43:32 msofer Exp $
+ * RCS: @(#) $Id: tclNRE.h,v 1.6 2008/07/21 16:26:08 msofer Exp $
*/
@@ -108,9 +108,9 @@ typedef struct TEOV_record {
int flags;
} obj;
struct {
- Tcl_ObjCmdProc *objProc;
- ClientData clientData;
- } objProc;
+ int objc;
+ Tcl_Obj **objv;
+ } objcv;
} data;
#if !USE_SMALL_ALLOC
/* Extra checks: can disappear later */
@@ -126,11 +126,11 @@ typedef struct TEOV_record {
#define TCL_NR_NO_TYPE 0 /* for internal (cleanup) use only */
#define TCL_NR_BC_TYPE 2 /* procs, lambdas, TclOO+Itcl sometime ... */
-#define TCL_NR_OBJPROC_TYPE 4 /* ns-imports (cmdd redirect) */
+#define TCL_NR_CMDSWAP_TYPE 4 /* ns-imports (cmdd redirect) */
#define TCL_NR_TAILCALL_TYPE 6
#define TCL_NR_TEBC_SWAPENV_TYPE 8 /* continuations, micro-threads !? */
-#define TCL_NR_CMD_TYPE 1 /* i-alias, ns-ens use this */
+#define TCL_NR_CMD_TYPE 1 /* i-alias, ns-ens use this */
#define TCL_NR_SCRIPT_TYPE 3 /* ns-eval, uplevel use this */
#define TCL_NR_HAS_OBJ(TYPE) ((TYPE) & 1)
@@ -223,9 +223,6 @@ typedef struct TEOV_record {
TCLNR_FREE(((Tcl_Interp *)iPtr), recordPtr); \
}
-#define VALID_NEW_REQUEST(recordPtr) \
- ( (recordPtr)->callbackPtr || ((recordPtr)->type != TCL_NR_NO_TYPE))
-
#define CHECK_VALID_RETURN(iPtr, recordPtr) \
((TOP_RECORD(iPtr) == recordPtr) && \
CHECK_EXTRA(iPtr, recordPtr))