Differences From Artifact [7676f90af4]:
- File
kitsh/buildsrc/kitsh-0.0/winMain.c
— part of check-in
[f644c21488]
at
2010-09-26 04:40:28
on branch trunk
— Updated kitsh to support Windows
Removed executable bit from boot.tcl
Updated licensing
Added documentation regarding statically linking to Tk
Updated win32 build test to pass in path to zlib (user: rkeene, size: 9907) [annotate] [blame] [check-ins using]
To Artifact [34460f486a]:
- File
kitsh/buildsrc/kitsh-0.0/winMain.c
— part of check-in
[5dc6b2220b]
at
2010-09-26 04:46:35
on branch trunk
— Cleaned up winMain
Updated main to return in failure if Tcl_Main() returns (user: rkeene, size: 8648) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
32 33 34 35 36 37 38 | /* * Forward declarations for procedures defined later in this file: */ static void setargv _ANSI_ARGS_((int *argcPtr, char ***argvPtr)); static Tcl_PanicProc WishPanic; | < < < < | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | /* * Forward declarations for procedures defined later in this file: */ static void setargv _ANSI_ARGS_((int *argcPtr, char ***argvPtr)); static Tcl_PanicProc WishPanic; static BOOL consoleRequired = TRUE; /* * The following #if block allows you to change the AppInit * function by using a #define of TCL_LOCAL_APPINIT instead * of rewriting this entire file. The #if checks for that * #define and uses Tcl_AppInit if it doesn't exist. |
︙ | ︙ | |||
210 211 212 213 214 215 216 | if (Dde_Init(interp) == TCL_ERROR) { return TCL_ERROR; } Tcl_StaticPackage(interp, "dde", Dde_Init, NULL); } #endif | < < < < < < < < | 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | if (Dde_Init(interp) == TCL_ERROR) { return TCL_ERROR; } Tcl_StaticPackage(interp, "dde", Dde_Init, NULL); } #endif Tcl_SetVar(interp, "tcl_rcFileName", "~/wishrc.tcl", TCL_GLOBAL_ONLY); return TCL_OK; error: MessageBeep(MB_ICONEXCLAMATION); MessageBox(NULL, Tcl_GetStringResult(interp), "Error in Wish", MB_ICONSTOP | MB_OK | MB_TASKMODAL | MB_SETFOREGROUND); |
︙ | ︙ | |||
380 381 382 383 384 385 386 | argSpace = arg + 1; } argv[argc] = NULL; *argcPtr = argc; *argvPtr = argv; } | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 368 369 370 371 372 373 374 375 | argSpace = arg + 1; } argv[argc] = NULL; *argcPtr = argc; *argvPtr = argv; } #endif |