summaryrefslogtreecommitdiffstats
path: root/generic/tkMain.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix [600b72bfbc789]: Unnecessary inclusion of tclInt.h in tkMain.c in ↵jan.nijtmans2015-10-061-3/+12
| | | | | | | Windows build The only thing needed from tclInt.h is the definition of TclIntPlatStubs. Including just a tiny part of this struct is enough to make it compile, without the need for tclInt.h FossilOrigin-Name: 6b85af584784e8be0ec601688d5c8c7fb8b53ac1
* Eliminate all usage of __WIN32__ macro: Some compilers (e.g. Clang/LLVM) ↵jan.nijtmans2014-02-101-4/+4
| | | | | | | don't define it, and _WIN32 is much more portable anyway. See: [http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#WindowsCygwinnonPOSIXandMinGW] FossilOrigin-Name: 9e254137a80dc4fb5afc12b6eca9112b54764181
* Add support for X11 GUI-mode on Cygwin64jan.nijtmans2013-06-061-1/+1
|\ | | | | FossilOrigin-Name: 27791af0294e92a9ca0d5e50cfbe51029ec1242b
| * Add support for X11 GUI-mode on Cygwin64jan.nijtmans2013-06-061-1/+1
| | | | | | FossilOrigin-Name: 43607baf6463735012f28407bea287cbdb7e9c31
| * merge release to 8.5; revert features not included in releasedgp2013-04-031-7/+1
| | | | | | FossilOrigin-Name: 2d26c9cb30bc1fd9ba1cfe81ff3b4cc7ff771cca
| * Easier solution, with proper protection and configure warnings.jan.nijtmans2013-03-281-1/+1
| | | | | | FossilOrigin-Name: 6af7f84015d02f01830fd5626a2078a5cb7d5ffe
| * Make compiling/running Tk8.5 against 8.6 headers work on Windows as well.jan.nijtmans2013-03-271-0/+6
| | | | | | | | | | In dynamic builds, Tcl_FindExecutable should always be taken from the stub table, even though the 8.6 headers tell otherwise. That's why in Tcl 8.6, the Tcl_FindExecutable() call moved from Tk_MainEx to the Tk_Main() macro. FossilOrigin-Name: f7c61c80f5ec6067ed8d0084580437776c71b3fc
* | Eliminate last use of Tcl_GetStringResultjan.nijtmans2013-02-151-1/+1
| | | | | | FossilOrigin-Name: 753122d100b4df1c7bb536844cdfb1c5fe7c7194
* | Use some more (void *)'s in FreeProc's, a step in the direction getting Tk ↵jan.nijtmans2013-01-261-3/+3
| | | | | | | | | | to work with "novem" FossilOrigin-Name: 9279332cf22a8ceeda1fd9c3c47628f162e85972
* | Bug [3601782]: Produce a nice error-message when the first Tcl_InitStubs() ↵jan.nijtmans2013-01-221-4/+7
|\ \ | |/ | | | | | | fails, in stead of simply abort() FossilOrigin-Name: f31886ee9b9e92049606f67c37db5a29f6653f6f
| * Bug [3601782]: Produce a nice error-message when the first Tcl_InitStubs() ↵jan.nijtmans2013-01-221-3/+6
| |\ | | | | | | | | | | | | fails, in stead of simply abort() FossilOrigin-Name: 8df0bd02827fe8254bfdef4491b87db32908939d
| | * Bug [3601782]: Produce a nice error-message when the first Tcl_InitStubs() ↵jan.nijtmans2013-01-221-3/+6
| | | | | | | | | | | | | | | fails, in stead of simply abort() FossilOrigin-Name: 6ecc1189e34999cc40e015f5d5ecb2abc46c0396
| * | fix commentjan.nijtmans2013-01-151-1/+1
| | | | | | | | | FossilOrigin-Name: 62c60529895621f57c25972943acc33c372e0812
* | | More flexible search for win32 tclConfig.sh, backported from TEA. jan.nijtmans2013-01-151-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | Don't use deprecated "case" any more. Don't do unnecessary Tcl_PkgRequire(..., "Tcl", ...), the preceding Tcl_InitStubs() call already does that, both for dynamic loaded as wel as the static case. Disallow Tk 8.6.x to be loaded in any Tcl 8.6 alpha/beta release. FossilOrigin-Name: dc77a27c545697cdcbb3a896f37d9ec68f0d8760
| * | Don't use deprecated "case" any more.jan.nijtmans2013-01-151-1/+1
| |\ \ | | |/ | | | | | | | | | | | | Don't do unnecessary Tcl_PkgRequire(..., "Tcl", ...), the preceding Tcl_InitStubs() call already does that, both for dynamic loaded as wel as the static case. Disallow Tk 8.5.x to be loaded in any Tcl 8.5 alpha release. FossilOrigin-Name: 4487567aa7d5dc994541fc74436d645fbe7cbe22
* | | Replace various functions calls, for functions which are small wrappers ↵jan.nijtmans2013-01-141-1/+1
| | | | | | | | | | | | | | | around other functions, to call the wrapped function directly. FossilOrigin-Name: cb8420c1d1cfcf429e49b78a9b97a824a99fdc52
* | | Eliminate all usage of deprecated Tcl_EvalObj, Tcl_GlobalEval and ↵jan.nijtmans2013-01-111-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | Tcl_GlobalEvalObj functions. Add [file normalize] to pkgIndex.tcl, in order to prevent '..' in file paths. FossilOrigin-Name: afce507e083e77c3d737e9de33f662dc1f1de863
| * | Eliminate all usage of deprecated Tcl_EvalObj, Tcl_GlobalEval and ↵jan.nijtmans2013-01-111-1/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | Tcl_GlobalEvalObj functions. Add [file normalize] to pkgIndex.tcl, in order to prevent '..' in file paths. Remove unused TCLPATCHL, it should be ".0" for all final releases. Enable tk.h to be used with higher tcl.h versions which might lack _ANSI_ARGS_ FossilOrigin-Name: 6445eceebbc9a4f5746a0597d689f0dfe6500a3a
| | * More complete purge of things only present for supporting long-dead Mac 9 ↵dgp2012-11-151-5/+1
| | | | | | | | | | | | | | | systems. FossilOrigin-Name: 599ec1e501bf3a502d1b6b513a7c0f76e4398429
| * | eliminate some ANSI_ARGSjan.nijtmans2012-06-081-1/+1
| |\ \ | | |/ | | | FossilOrigin-Name: 81bffa409f279c4ddaad9f289acfa90ea91a7a9d
| | * function def in frontjan.nijtmans2012-06-081-1/+1
| | | | | | | | | FossilOrigin-Name: 8c1ea956470fe10ba65aa268b7656bfd5f71c5af
* | | it's no longer necessary to set _USE_32BIT_TIME_T in Tkjan.nijtmans2012-08-091-5/+0
| | | | | | | | | FossilOrigin-Name: be5939e346eae3a0bab13aee861d2902dcfc29cd
* | | fix broken build on Visual Studio 9+10jan.nijtmans2012-08-051-1/+6
| | | | | | | | | FossilOrigin-Name: 4ad21a54530c2f8d49d96bf996434d47783a6a76
* | | Change XChangeWindowAttributes signature and many others to match Xorg, ↵jan.nijtmans2012-06-081-4/+10
|\ \ \ | |/ / | | | | | | | | | needed for Cygwin FossilOrigin-Name: 5ed597c56aa73e9847d66f10a80ab1b71d64ba3d
| * | Implement TkCygwinMainEx for loading Cygwin's Tk_MainEx from the Tk dlljan.nijtmans2012-06-081-4/+9
| |\ \ | | |/ | | | FossilOrigin-Name: 3db2e9c69fd675120892ac0b0ff204ec1eaf64e7
| | * Implement TkCygwinMainEx for loading Cygwin's Tk_MainEx from the Tk dlljan.nijtmans2012-06-081-15/+20
| | | | | | | | | FossilOrigin-Name: 1a49039bd572e1899dfb7dd653e355ac74a3f721
| | * Change XFillRectangle(s)/XDrawLines(s) signature to match Xorg, needed for ↵jan.nijtmans2012-05-291-2/+0
| | | | | | | | | | | | | | | | | | | | | Cygwin. Generate same pkgIndex.tcl file for win32 and cygwin, one that is equally useable for both. FossilOrigin-Name: 4b760eba559b5980f9e68ce32bf28d04c06f1191
* | | Implement XFlush and various others for win32 as stubs, so win32 extensions ↵jan.nijtmans2012-05-311-1/+9
| | | | | | | | | | | | | | | | | | | | | using those can run under CYGWIN as well. Allow tk86.dll to cooperate with the cygwin console. FossilOrigin-Name: 37867eab968c2776405ced0c1db87e82d9cf0ca3
* | | Simpify determination whether we are running on cygwin.jan.nijtmans2012-05-311-0/+22
|\ \ \ | |/ / | | | | | | | | | Export Tk_GetHINSTANCE, TkSetPixmapColormap and TkpPrintWindowId on the Cygwin dll FossilOrigin-Name: 0609e38ba4a130e4fb15b794198e174088027e6a
| * | merge core-8-4-branch, still to be tested on Unixjan.nijtmans2012-05-291-36/+68
| |\ \ | | |/ | | | FossilOrigin-Name: 2f3e94911910b8da69ee682b48fe88b88daff416
| | * Simpify determination whether we are running on cygwin.jan.nijtmans2012-05-251-35/+70
| | | | | | | | | | | | | | | | | | Export Tk_GetHINSTANCE, TkSetPixmapColormap and TkpPrintWindowId on the Cygwin dll. Fix "make genstubs" when cross-compiling on UNIX FossilOrigin-Name: 09a6f0324fef2bead73be8c7594dd45cc63e8126
* | | minor clean-up of tkInt.declsjan.nijtmans2012-04-121-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | disallow colors like xellow configure changes for cygwin FossilOrigin-Name: 96c1b022d36be2301ced6a6bcacc9da739ad90b4
| * | disallow colors like xellowjan.nijtmans2012-04-121-1/+1
| |\ \ | | |/ | | | | | | | | | | | | cleanup tkInt.decls configure changes for cygwin FossilOrigin-Name: 70d7860fb8887db4c40795388a53883fb9573883
| | * sync tcl.m4 with Tcl, format tkInt.decls like Tk8.5/8.6jan.nijtmans2012-04-111-1/+1
| | | | | | | | | FossilOrigin-Name: 9af0a97ae0bdadc3d71451c7c577dd0d750a7b1f
* | | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ / | | | FossilOrigin-Name: b8a1385217cc117d6962c234f0a4d28ff10e089c
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/ | | | FossilOrigin-Name: 3f95fbe0ce14948fd409844b915c18ef25d7d0a0
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | | | | | | | | FossilOrigin-Name: a74f32bb6369d3e66e661145c81a98a14ed79b3a
| | * * generic/tkMain.c (Tk_MainEx): replicate macosx-specific code fromdas2007-03-071-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TkpInit() that ensures the console window appears when wish is started from the OS X Finder (i.e. with stdin == /dev/null), jeffh's 2006-11-24 change rendered the corresponding code in TkpInit() ineffective in wish because Tk_MainEx() sets tcl_interactive before calling TkpInit(). * macosx/tkMacOSXDebug.c (TkMacOSXGetNamedDebugSymbol): add fix for libraries loaded with a DYLD_IMAGE_SUFFIX. * unix/tcl.m4 (Darwin): s/CFLAGS/CPPFLAGS/ in macosx-version-min check. * unix/configure: autoconf-2.13 FossilOrigin-Name: 96596797ddee54cd4d5b931f47e1d312bd666c28
| | * * generic/tkConsole.c: Complete reversal of the changes of Sep 22.andreas_kupries2006-09-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMain.c: For compat reason the Tcl core will not change * generic/tkWindow.c: the registered version to include the patchlevel, * library/tk.tcl: making the changes to Tk unnecessary. * unix/configure: * unix/Makefile.in: * unix/tcl.m4: * win/configure: * win/Makefile.in: * win/makefile.vc: * win/rules.vc: * win/tcl.m4: FossilOrigin-Name: 8a215ea28667a92a96b020e42d065bc49ba78303
| | * * generic/tkConsole.c: TIP #268 update regarding registered packageandreas_kupries2006-09-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMain.c: version, now using full patchlevel instead of * generic/tkWindow.c: major.minor * library/tk.tcl: * unix/configure: * unix/Makefile.in: * unix/tcl.m4: * win/configure: * win/Makefile.in: * win/makefile.vc: * win/rules.vc: * win/tcl.m4: FossilOrigin-Name: 20c45754f76680260016fd3f7ed12c0c0e9465e5
| | * * generic/tkMain.c: Added Tcl_Preserve() call on the masterdgp2006-06-091-1/+3
| | | | | | | | | | | | | | | | | | | | | interp as crash protection against any Tcl_DeleteInterp() call that might happen. FossilOrigin-Name: f732e26226724ecf99c53cd5ee5731a307c7363f
| | * * generic/tkMain.c: Rewrote code that sets the ::argv valuedgp2005-10-181-16/+21
| | | | | | | | | | | | | | | | | | | | | | | | to be sure conversion from the system encoding is complete before any processing sensitive to list-special characters is done. [Bug 1328926]. FossilOrigin-Name: 845f2f3fda772addc39a78650a56996ff1513189
| | * * generic/tkMain.c:das2004-11-111-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXAppInit.c (removed): * macosx/Wish.pbproj/project.pbxproj: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXInt.h: changes to make TkAqua dynamically loadable, enabling [package require Tk] from tclsh. Startup code from tkMacOSXAppInit.c moved into tkMacOSXInit.c, added code that notifies the window server that an unbundled executable is a full GUI application after loading Tk. [Patch 1035348] * doc/wm.n: documented [wm attributes] on Mac OS X. [Bug 606665] * macosx/tkMacOSXWm.c: implemented TIP 222 [wm attributes -alpha] on Mac OS X. [Patch 892194] WmIconbitmapCmd: adopted FSRef changes from [wm atttrs -titlepath]. * macosx/tkMacOSXButton.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXRegion.c: * macosx/tkMacOSXSubwindows.c: synced spacing/formatting with HEAD. * macosx/tkMacOSXMouseEvent.c: endianness fixes. * macosx/Wish.pbproj/project.pbxproj: corrected path to html help inside framework. * macosx/Makefile: prevent parallel make from building several targets at the same time. Ensure that xcodebuild will use Wish.pbproj project even if a .xcode project is also present. FossilOrigin-Name: c98b6fdb7f5872d871a0db03acb87ae211e8bc17
| * | Fix CYGWIN warning: "fd_set and assiciated.macros have been defined in ↵nijtmans2010-05-311-9/+1
| | | | | | | | | | | | | | | sys/types. This may cause runtime problems with W32" FossilOrigin-Name: 2260d85f2958e6c4cb3bbe8d4800a704f6820a97
| * | * generic/tkConsole.c: Relax the runtime version requirements on Tcldgp2009-10-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMain.c: so that Tk 8.5.8 can [load] into Tcl 8.6 (and * generic/tkWindow.c: later 8.*) interps. * library/tk.tcl * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc: FossilOrigin-Name: 4e3e9d74aec259dc5e3bb9757bdc4279c4c2575d
* | | refactor isatty() function for Windowsnijtmans2010-12-171-35/+21
| | | | | | | | | | | | | | | | | | Let TkpDisplayWarning() send the message directly to the debugger, if available, otherwise do as before FossilOrigin-Name: 27a28c58189b1846f4b77c1cb6b2c57830704a7a
* | | [Patch #3124683]: platform specific stuff in (tcl|tk)Main.cnijtmans2010-12-151-116/+92
| | | | | | | | | FossilOrigin-Name: dd77e97095d4a8793cc18e913268578baaef1c28
* | | Change "Application initialization failed" to "application-specific ↵nijtmans2010-12-131-2/+2
| | | | | | | | | | | | | | | initialization failed", for consistency with Tcl. FossilOrigin-Name: bd3a03b0b5787ea8de9093a47dc99cda14ab7acf
* | | Remove unused strrchr, combine outChannel/errChannel variables to a single ↵nijtmans2010-11-241-19/+19
| | | | | | | | | | | | | | | variable FossilOrigin-Name: ff4d73db13ee1be3c00a98de2d09be10dd3ae748
* | | reverted previous commit: it has effect on the Windows consolenijtmans2010-11-151-28/+38
| | | | | | | | | FossilOrigin-Name: f2d25278590bf26f15af60e5dc143f031e809214