diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-04-19 09:12:12 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-04-19 09:12:12 (GMT) |
commit | dd4889f94d70d9325d36c4970391efb406ada6e7 (patch) | |
tree | 872634530c2cccde47226c2b64e3f75924c77ba4 /generic/tclDecls.h | |
parent | 55231e2717aa409f40fd9c935df6376ba576c73f (diff) | |
parent | c32c2187f7c4b81257f65a9319fb5ee4827eb8d4 (diff) | |
download | tcl-dd4889f94d70d9325d36c4970391efb406ada6e7.zip tcl-dd4889f94d70d9325d36c4970391efb406ada6e7.tar.gz tcl-dd4889f94d70d9325d36c4970391efb406ada6e7.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
FossilOrigin-Name: 73c89b805b651ceb85373fb7c197952bdab98f60
Diffstat (limited to 'generic/tclDecls.h')
-rw-r--r-- | generic/tclDecls.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/generic/tclDecls.h b/generic/tclDecls.h index 5fda514..0870377 100644 --- a/generic/tclDecls.h +++ b/generic/tclDecls.h @@ -3818,6 +3818,31 @@ extern const 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: |