summaryrefslogtreecommitdiffstats
path: root/generic/tclDecls.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-19 08:41:15 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-04-19 08:41:15 (GMT)
commit9c56563bbe703e1bd7c267c6a43c8f62b978ae11 (patch)
tree391f40c9bb7a0b2c7f0ac555052b0e73c35e17f7 /generic/tclDecls.h
parentce72cf1a029fcf4ca5d5fd7e7bd1925cf53351de (diff)
parent67e2135f3ad85c23c2093c309e90204ee4b81d77 (diff)
downloadtcl-9c56563bbe703e1bd7c267c6a43c8f62b978ae11.zip
tcl-9c56563bbe703e1bd7c267c6a43c8f62b978ae11.tar.gz
tcl-9c56563bbe703e1bd7c267c6a43c8f62b978ae11.tar.bz2
Implement many Tcl_*Var* functions and Tcl_GetIndexFromObj as (faster/stack-saving) macros around resp their Tcl_*Var*2 equivalent and Tcl_GetIndexFromObjStruct
Diffstat (limited to 'generic/tclDecls.h')
-rw-r--r--generic/tclDecls.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/generic/tclDecls.h b/generic/tclDecls.h
index 2196f46..30e305b 100644
--- a/generic/tclDecls.h
+++ b/generic/tclDecls.h
@@ -6556,6 +6556,31 @@ extern TclStubs *tclStubsPtr;
#undef Tcl_PkgRequire
#define Tcl_PkgRequire(interp, name, version, exact) \
Tcl_PkgRequireEx(interp, name, version, exact, NULL)
+#undef Tcl_GetIndexFromObj
+#define Tcl_GetIndexFromObj(interp, objPtr, tablePtr, msg, flags, indexPtr) \
+ Tcl_GetIndexFromObjStruct(interp, objPtr, tablePtr, \
+ sizeof(char *), msg, flags, indexPtr)
+#undef Tcl_SetVar
+#define Tcl_SetVar(interp, varName, newValue, flags) \
+ Tcl_SetVar2(interp, varName, NULL, newValue, flags)
+#undef Tcl_UnsetVar
+#define Tcl_UnsetVar(interp, varName, flags) \
+ Tcl_UnsetVar2(interp, varName, NULL, flags)
+#undef Tcl_GetVar
+#define Tcl_GetVar(interp, varName, flags) \
+ Tcl_GetVar2(interp, varName, NULL, flags)
+#undef Tcl_TraceVar
+#define Tcl_TraceVar(interp, varName, flags, proc, clientData) \
+ Tcl_TraceVar2(interp, varName, NULL, flags, proc, clientData)
+#undef Tcl_UntraceVar
+#define Tcl_UntraceVar(interp, varName, flags, proc, clientData) \
+ Tcl_UntraceVar2(interp, varName, NULL, flags, proc, clientData)
+#undef Tcl_VarTraceInfo
+#define Tcl_VarTraceInfo(interp, varName, flags, proc, prevClientData) \
+ Tcl_VarTraceInfo2(interp, varName, NULL, flags, proc, prevClientData)
+#undef Tcl_UpVar
+#define Tcl_UpVar(interp, frameName, varName, localName, flags) \
+ Tcl_UpVar2(interp, frameName, varName, NULL, localName, flags)
/*
* Deprecated Tcl procedures: