| ︙ | | |
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
+
|
*/
#if defined(USE_TCL_STUBS)
# if defined(_WIN32)
# if !defined(WIN32_LEAN_AND_MEAN)
# define WIN32_LEAN_AND_MEAN
# endif
# if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0502)
# undef _WIN32_WINNT
# define _WIN32_WINNT 0x0502 /* SetDllDirectory, Windows XP SP2 */
# endif
# include <windows.h>
# ifndef TCL_DIRECTORY_SEP
# define TCL_DIRECTORY_SEP '\\'
# endif
# ifndef TCL_LIBRARY_NAME
|
| ︙ | | |
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
|
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
|
-
+
|
/*
** Returns a name for a Tcl return code.
*/
static const char *getTclReturnCodeName(
int rc,
int nullIfOk
){
static char zRc[32];
static char zRc[TCL_INTEGER_SPACE + 17]; /* "Tcl return code\0" */
switch( rc ){
case TCL_OK: return nullIfOk ? 0 : "TCL_OK";
case TCL_ERROR: return "TCL_ERROR";
case TCL_RETURN: return "TCL_RETURN";
case TCL_BREAK: return "TCL_BREAK";
case TCL_CONTINUE: return "TCL_CONTINUE";
|
| ︙ | | |
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
|
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
|
-
+
|
tcl_FindExecutableProc *xFindExecutable; /* Tcl_FindExecutable() pointer. */
tcl_CreateInterpProc *xCreateInterp; /* Tcl_CreateInterp() pointer. */
tcl_DeleteInterpProc *xDeleteInterp; /* Tcl_DeleteInterp() pointer. */
tcl_FinalizeProc *xFinalize; /* Tcl_Finalize() pointer. */
Tcl_Interp *interp; /* The on-demand created Tcl interpreter. */
int useObjProc; /* Non-zero if an objProc can be called directly. */
int useTip285; /* Non-zero if TIP #285 is available. */
char *setup; /* The optional Tcl setup script. */
const char *setup; /* The optional Tcl setup script. */
tcl_NotifyProc *xPreEval; /* Optional, called before Tcl_Eval*(). */
void *pPreContext; /* Optional, provided to xPreEval(). */
tcl_NotifyProc *xPostEval; /* Optional, called after Tcl_Eval*(). */
void *pPostContext; /* Optional, provided to xPostEval(). */
};
/*
|
| ︙ | | |
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
|
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
|
-
+
|
void *pContext
){
struct TclContext *tclContext = (struct TclContext *)pContext;
int argc;
char **argv;
char *argv0 = 0;
Tcl_Interp *tclInterp;
char *setup;
const char *setup;
if( !tclContext ){
Th_ErrorMessage(interp,
"invalid Tcl context", (const char *)"", 0);
return TH_ERROR;
}
if( tclContext->interp ){
|
| ︙ | | |