Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Use Tcl_EvalObjv in any Tcl version, not only when compiled with Tcl 8.6 headers. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | pending-review |
Files: | files | file ages | folders |
SHA1: |
92fd8ddc1308fc04ba83f46be30001b5 |
User & Date: | jan.nijtmans 2013-09-17 09:00:50.433 |
Context
2013-09-17
| ||
09:00 | Use Tcl_EvalObjv in any Tcl version, not only when compiled with Tcl 8.6 headers. ... (Closed-Leaf check-in: 92fd8ddc user: jan.nijtmans tags: pending-review) | |
08:43 | new clean-zlib, clean-openssl and clean-tcl targets in the mingw makefiles. ... (check-in: 9112867c user: jan.nijtmans tags: pending-review) | |
Changes
Changes to src/th_tcl.c.
︙ | ︙ | |||
21 22 23 24 25 26 27 | #include "config.h" #ifdef FOSSIL_ENABLE_TCL #include "th.h" #include "tcl.h" | < < < < < < < < < < < < | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #include "config.h" #ifdef FOSSIL_ENABLE_TCL #include "th.h" #include "tcl.h" /* ** These macros are designed to reduce the redundant code required to marshal ** arguments from TH1 to Tcl. */ #define USE_ARGV_TO_OBJV() \ int objc; \ Tcl_Obj **objv; \ |
︙ | ︙ | |||
419 420 421 422 423 424 425 | Th_Interp *interp, void *ctx, int argc, const char **argv, int *argl ){ Tcl_Interp *tclInterp; | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 | Th_Interp *interp, void *ctx, int argc, const char **argv, int *argl ){ Tcl_Interp *tclInterp; int rc = TH_OK; int nResult; const char *zResult; USE_ARGV_TO_OBJV(); if( createTclInterp(interp, ctx)!=TH_OK ){ return TH_ERROR; } if( argc<2 ){ return Th_WrongNumArgs(interp, "tclInvoke command ?arg ...?"); } tclInterp = GET_CTX_TCL_INTERP(ctx); if( !tclInterp || Tcl_InterpDeleted(tclInterp) ){ Th_ErrorMessage(interp, "invalid Tcl interpreter", (const char *)"", 0); return TH_ERROR; } rc = notifyPreOrPostEval(0, interp, ctx, argc, argv, argl, rc); if( rc!=TH_OK ){ return rc; } Tcl_Preserve((ClientData)tclInterp); COPY_ARGV_TO_OBJV(); rc = Tcl_EvalObjv(tclInterp, objc, objv, 0); FREE_ARGV_TO_OBJV(); zResult = getTclResult(tclInterp, &nResult); Th_SetResult(interp, zResult, nResult); Tcl_Release((ClientData)tclInterp); rc = notifyPreOrPostEval(1, interp, ctx, argc, argv, argl, rc); return rc; } |
︙ | ︙ |