summaryrefslogtreecommitdiffstats
path: root/win/winMain.c
Commit message (Collapse)AuthorAgeFilesLines
* Disable command line globbing on MinGW compiles, just as MSVC and MinGW-w64 ↵jan.nijtmans2013-10-011-0/+4
|\ | | | | | | don't enable command line globbing either by default.
| * Disable command line globbing on MinGW compiles, just as MSVC and MinGW-w64 ↵jan.nijtmans2013-10-011-0/+4
| | | | | | | | don't enable command line globbing either by default. (Accidently cleared execute permission on two files)
* | Make sure the stubbed variants of Tcl_ObjSetVar2/Tcl_NewStringObj are never ↵jan.nijtmans2013-02-221-1/+5
| | | | | | | | used in winMain.c/tkAppInit.c
* | Use (preferred) Tcl_ObjSetVar2 in stead of Tcl_SetVar in ↵jan.nijtmans2013-02-181-21/+25
| | | | | | | | | | tkAppInit.c/winMain.c. Remove unneeded use of TEXT() macro, as in tclAppInit.c
* | implement TkSetPixmapColormap and TkpPrintWindowId for cygwinjan.nijtmans2012-05-161-1/+1
|\ \ | |/ | | cleanup some more unused CYGWIN stuff
| * remove some unused CYGWIN stuffjan.nijtmans2012-05-141-132/+2
| |
* | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ | |/
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * Reverted to 1.15 for two reasons. 1) problem is best addressed in Tcl'sdavygrvy2003-12-121-7/+5
| | | | | | | | | | | | | | | DllMain() and 2) needs a MinGW custom assembly implimentation as it doesn't understand SEH syntax.
| | * (WishPanic) : placed ExitProcess() in a __try block (SEH) to catch anydavygrvy2003-12-111-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exceptions that might happen. As Tcl will call Tcl_Finalize from its DllMain due to the unload from ExitProcess() unloading Tcl, and if Tcl_Panic had gotten called in an __except block, this avoid the possibility of not being able to exit. Falls to TerminateProcess() in the __except case. Removed the #ifdef _MSC_VER around DebugBreak as that function exists in kernel32.dll and is not compiler dependent. I'd prefer to use if (IsDebuggerPresent()) DebugBreak(); but IsDebuggerPresent() isn't available in all kernel32.dll modules for all versions of windows.
| * | re-wrote TkpDisplayWarning such that it does not use an Tcl API calls any ↵nijtmans2010-11-241-20/+62
| | | | | | | | | | | | | | | | | | | | | more, so it works even with an ill-initialized Tcl Teach WishPanic how to thread UTF-8 in it's messagebox. Both of those changes backported from Tcl 8.6. No change in functionality.
| * | Add command line processing for CYGWIN, backported from trunk.nijtmans2010-05-311-2/+130
| | |
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-2/+2
| | | | | | | | | using useful casts internally.
* | | [Patch 3124554]: Move WishPanic from Tk to Tclnijtmans2010-12-161-69/+8
| | | | | | | | | | | | Remove special MessageBox'es here, since every panic-related thing is now handled correctly by Tcl
* | | use TkpDisplayWarning as panic proc on Windows, but restore panicnijtmans2010-11-241-9/+10
| | | | | | | | | | | | dialog title to exactly what it was in Tk 8.5 ("Fatal Error in Wish")
* | | re-write TkpDisplayWarning not to use any Tcl functions any more. This ↵nijtmans2010-11-241-7/+3
| | | | | | | | | | | | allows TkpDisplayWarning to be used as panic proc on Windows
* | | [FRQ 491789]: "setargv() doesn't support a unicode cmdline"nijtmans2010-11-181-60/+88
| | | | | | | | | | | | now implemented for cygwin and mingw32 too.
* | | Workaround for bug in some versions of mingw-w64nijtmans2010-11-171-2/+8
| | |
* | | Bring compilation under mingw-w64 a bit closer to reality (but don't break ↵nijtmans2010-11-171-3/+3
| | | | | | | | | | | | mingw32 build!)
* | | Bring compilation under mingw-w64 a bit closer to realitynijtmans2010-11-161-27/+27
| | |
* | | [FRQ 491789]: "setargv() doesn't support a unicodenijtmans2010-10-111-6/+6
| | | | | | | | | | | | cmdline" implemented for Tk on MSVC++
* | | Make Tcl_SetPanicProc and Tcl_GetStringResult callable without stubs, just ↵nijtmans2010-09-231-8/+5
| | | | | | | | | | | | as Tcl_SetVar.
* | | winMain should never be called with stubsnijtmans2010-09-231-1/+4
| | |
* | | Add -Wdeclaration-after-statementnijtmans2010-09-231-68/+85
| | | | | | | | | | | | | | | tkWinX.c,winMain.c: Make compilable with -DUNICODE tkAppInit.c,winMain.c: Many clean-ups in comments, so all (tcl|tk)AppInit.c variants use the same style.
* | | Make compilable with -DUNICODE, or mark files with a TODO which are not done ↵nijtmans2010-09-101-1/+7
| | | | | | | | | | | | | | | | | | yet. tkWinPort.h: mingw/cygwin fixes: <tchar.h> should always be included here.
* | | fix more gcc warnings: missing initializernijtmans2010-01-221-1/+137
| | | | | | | | | | | | | | | | | | | | | Eliminate use of __argc and __argv for CYGWIN Make cygwin configuration error into a warning: CYGWIN compilation works although there still are test failures.
* | | Bug fix for #2875562nijtmans2009-10-211-1/+4
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-3/+3
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * win/winMain.c: Replaced incorrect comments in main() to descibedavygrvy2007-10-121-4/+3
| | | | | | | | | | | | why the console widget does not need to be created for this application entry point (if used). Must have been a bad copy/paste of WinMain() from 10 years back.
* | header cleanupdgp2007-09-071-3/+2
| |
* | ANSIficationdkf2005-12-021-54/+64
| |
* | * win/winMain.c (WishPanic): Replaced TCL_VARARGS* macros withdgp2005-09-131-5/+4
| | | | | | | | direct use of stdarg.h conventions.
* | #include <malloc.h> has no purpose.davygrvy2004-02-021-2/+1
| |
* | * win/winMain.c: Removed our custom setargv() in favor ofdavygrvy2004-02-011-165/+8
| | | | | | | | the exported __argc and __argv exported by the c-runtime.
* | * generic/tkEvent.c: Added three new functions: TkCreateExitHandler,davygrvy2003-12-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkInt.h: TkDeleteExitHandler, and TkFinalize. This adds * generic/tkMenu.c: an insertion point so Tk's exit handlers can be * generic/tkWindow.c: called on their own from tk85.dll's DllMain * mac/tkMacButton.c: for DLL_PROCESS_DETACH. These are private to * unix/tkUnixEvent.c: the binary and not exported. It is possible * win/tkWin32Dll.c: the Windows OS can unload Tk _prior_ to Tcl * win/tkWinEmbed.c: under some conditions such as ExitProcess(). * win/tkWinMenu.c: This avoids a dangling pointer problem when Tcl * win/tkWinX.c: does Tcl_Finalize after Tk has been unloaded. * win/winMain.c: DllMain's DLL_PROCESS_DETACH now protected with SEH as DeleteWindowsExitProc is causing an exception of its own under some teardown conditions. AT&T assembly syntax has not been added for MinGW yet. [Tcl Patch 858493]
* | fixed bad commit from before. my mistake. This is 1.16 now.davygrvy2003-12-121-4/+45
| |
* | Reverted to 1.15 for two reasons. 1) problem is best addressed in Tcl'sdavygrvy2003-12-121-45/+4
| | | | | | | | | | DllMain() and 2) needs a MinGW custom assembly implimentation as it doesn't understand SEH syntax.
* | * win/makefile.vc: Applied patches from tcl bug #801467 frompatthoyts2003-10-141-2/+43
|/ | | | * win/winMain.c: Joe Mistachkin
* * win/winMain.c (Tcl_AppInit): Calls Registry_Init() anddavygrvy2002-11-041-1/+17
| | | | | | | | | | | | | Dde_Init() when STATIC_BUILD and TCL_USE_STATIC_PACKAGES macros are set. * win/makefile.vc: linkexten option now sets the TCL_USE_STATIC_PACKAGES macro which also adds the registry and dde static lib files to the link of the shell. [Patch 479697] * win/rules.vc: Matches the one from Tcl. * win/buildall.vc.bat: More useful commentary.
* * win/winMain.c (WinMain, main): remove obsolete SetMessageQueue callhobbs2002-10-191-21/+1
|
* 2002-09-18 Mumit Khan <khan@nanotech.wisc.edu>hobbs2002-09-271-2/+3
| | | | | | | | | | | | | | | | Added basic Cygwin support. * win/tcl.m4 (SC_PATH_TCLCONFIG): Support one-tree build. (SC_PATH_TKCONFIG): Likewise. (SC_PROG_TCLSH): Likewise. (SC_CONFIG_CFLAGS): Assume real Cygwin port and remove -mno-cygwin flags. Add -mwin32 to extra_cflags and extra_ldflags. Remove ``-e _WinMain@16'' from LDFLAGS_WINDOW. * win/configure: Regenerate. * win/tkWinPort.h (tchar.h): Do not include on Cygwin. (_T): Define for Cygwin. * win/winMain.c (main): Conditionally define.
* * win/Makefile.in: Removed dependence on the (parts of) thedgp2002-08-261-17/+1
| | | | | * win/winMain.c: tcltest executable on Windows. It was not used, and the dependency complicated the Makefile. [Bug 592638].
* * win/winMain.c (WishPanic): fixed CONST changes to go withhobbs2001-08-041-5/+5
| | | | CONST-ification in Tcl.
* * library/choosedir.tcl (::tk::dialog::file::chooseDir::Config):hobbs2000-04-191-23/+23
| | | | | | | | | * library/tkfbox.tcl (::tk::dialog::file::Config): removed the extraneous glob on -initialdir after file isdir already returned 1 and moved cd trick into this case as the else already uses [pwd]. [Bug: 5181] * win/winMain.c: moved extern call out of WinMain func
* * generic/tkMain.c :redman1999-12-021-9/+50
| | | | | | | * unix/tkAppInit.c: * win/winMain.c: Added added hooks into the main() code for supporting TclPro and other "big" shells more easily without requiring a copy of the main() code.
* * win/winMain.c: corrected winMain to not do a DebugBreak whenhobbs1999-11-101-2/+6
| | | | returning an error message from the top level
* Rename TkConsoleCreate_() to Tk_InitConsoleChannels() and make theredman1999-04-281-4/+4
| | | | | | function public. Add an interp argument and init the Tcl stubs. Rename TkConsoleInit() to Tk_CreateConsoleWindow() Remove TkConsoleCreate() (no underbar)
* * Merged 8.1 branch into the main trunkstanton1999-04-161-29/+95
|