summaryrefslogtreecommitdiffstats
path: root/generic/tkConsole.c
Commit message (Collapse)AuthorAgeFilesLines
* Bug [3601782]: Produce a nice error-message when the first Tcl_InitStubs() ↵jan.nijtmans2013-01-221-2/+1
|\ | | | | | | fails, in stead of simply abort()
| * Bug [3601782]: Produce a nice error-message when the first Tcl_InitStubs() ↵jan.nijtmans2013-01-221-2/+1
| | | | | | | | fails, in stead of simply abort()
* | fix commentjan.nijtmans2013-01-151-1/+1
| |
* | 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.
* | Eliminate all usage of deprecated Tcl_EvalObj, Tcl_GlobalEval and ↵jan.nijtmans2013-01-111-6/+7
|\ \ | |/ | | | | | | | | | | 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_
| * Eliminate all usage of deprecated Tcl_EvalObj, Tcl_GlobalEval and ↵jan.nijtmans2013-01-111-5/+5
| | | | | | | | | | | | 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.
| * More complete purge of things only present for supporting long-dead Mac 9 ↵dgp2012-11-151-4/+0
| | | | | | | | systems.
| * SetOptions.3: minor doc fixjan.nijtmans2012-06-191-2/+2
| | | | | | | | make various other tables CONST (All backported from Tk 8.6)
| * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-8/+0
| |
* | [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-131-8/+1
|\ \ | |/
* | Purge RCS Keywords.dgp2011-06-081-2/+0
|\ \ | |/
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |
* | Restore proper NUL output to the [console]. [Bug 2546087]dgp2011-06-061-1/+19
|\ \ | |/
| * Restore proper NUL output to the [console]. [Bug 2546087]dgp2011-06-061-1/+19
| |
| * * 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:
| * * 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:
| * * generic/tkInt.h: Thread safety for the data structures ofdgp2006-06-051-317/+455
| | | | | | | | * generic/tkConsole.c: the wish [console]. [Bug 1188340].
| * * generic/tkConsole.c: Added Tcl_RegisterChannel() calls to bumpdgp2006-06-011-2/+11
| | | | | | | | | | the refcount of channels passed to Tcl_SetStdChannel(). This prevents early free-ing of the channels that leads to crashes. [Bug 912571].
| * * generic/tkConsole.c: backport fix for bug 756840 & sync whitespacedas2005-06-231-8/+26
| | | | | | | | | | | | changes from HEAD. * generic/tkConsole.c (TkConsolePrint): prevent potential NULL deref.
| * Backported [console] rename fix. [Bug 1016385]dkf2005-06-031-42/+38
| |
* | * 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:
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tkConsole.c: Revised callers of Tcl_InitStubs() to accountdgp2007-09-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMain.c: for restored compatible support for the call * generic/tkWindow.c: Tcl_InitStubs(interp, TCL_VERSION, 1). Also revised Tcl_PkgRequire() call for Tcl so that, for example, a Tk library built against Tcl 8.5.1 headers will not refuse to [load] into a Tcl 8.5.0 interpreter. [Tcl Bug 1578344]. * generic/tk.h: Revised Tk_InitStubs() to restore Tk 8.4 * generic/tkStubLib.c: source compatibility with callers of * generic/tkWindow.c: Tk_InitStubs(interp, TK_VERSION, 1).
* | * generic/tkConsole.c: Revised calls to Tcl_InitStubs() anddgp2007-09-111-2/+2
| | | | | | | | | | | | | | | | | | * generic/tkMain.c: [package require Tcl] so that Tk Says What * generic/tkWindow.c: It Means using the new facilties of [package] * library/tk.tcl: in Tcl 8.5 about what version(s) of Tcl it * unix/Makefile.in: is willing to work with. [Bug 1578344]. * win/Makefile.in: * win/makefile.vc:
* | * generic/tkConsole.c: Revise all Tcl_InitStubs() calls to restoredgp2007-09-101-2/+2
| | | | | | | | | | | | | | * generic/tkMain.c: the traditional practice that a Tk shared * generic/tkWindow.c: library may [load] into a Tcl 8.5 interp at any patchlevel. This practice also matches the compile time checks of TCL_MAJOR_VERSION and TCL_MINOR_VERSION in tk.h. [Bug 1723622]
* | * 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:
* | * generic/tkConsole.c: Added Tcl_RegisterChannel() calls to bumpdgp2006-06-011-2/+11
| | | | | | | | | | the refcount of channels passed to Tcl_SetStdChannel(). This prevents early free-ing of the channels that leads to crashes. [Bug 912571].
* | * generic/tkConsole.c: Added exit handler to clean up the interpdgp2006-03-211-8/+27
| | | | | | | | | | | | | | where the console window lives. Also added code to handle multiple calls to Tk_CreateConsoleWindow so that the console channels connect to the last console window opened, in compatibility with the previous implementation.
* | * generic/tkConsole.c: Added exit handler to clean up the interpdgp2006-03-201-5/+27
| | | | | | | | where the console window lives.
* | corrected silly cut/paste/forget to modify error in the name of thedgp2006-03-161-2/+2
| | | | | | | | stderr console channel.
* | Revisions to Tk_CreateConsoleWindow to tolerate case when no console channelsdgp2006-03-161-26/+27
| | | | | | | | have been created.
* | * generic/tkConsole.c: Substantial rewrite of [console] support.dgp2006-03-161-299/+356
| | | | | | | | | | | | | | * generic/tkInt.h: Included Obj-ification of the [console] and [consoleinterp] commands, and reworking of all the supporting data structures for cleaner sharing and lifetime management especially in multi-threaded configurations.
* | More bits of ANSIfyingdkf2005-11-111-195/+197
| |
* | * generic/tkConsole.c (TkConsolePrint): prevent potential NULL deref.das2005-06-231-2/+2
| |
* | Use Tcl_Set/GetAssocData to remove use of fragile Tcl_GetCommandInfodkf2005-03-191-35/+34
| | | | | | | | from TkConsolePrint. [Bug 1016385]
* | Fix for [Bug 756840]Joe Mistachkin2004-06-261-1/+16
| |
* | Removed support for Mac OS Classic platform [Patch 918139]das2004-03-171-5/+1
| |
* | Fixed memory leak (bug 802435)chengyemao2003-09-201-11/+11
|/
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-5/+5
| | | | | | | | | | | | | | | | | | | | | updating Tk to use Tcl 8.4's fully CONST-ified interface, and fully CONSTifying Tk at the same time. This patch includes purging Tk of its last direct access to interp->result. [Bug 589853] The substantial changes include copying event sequence strings into Tcl_DStrings in tkBind.c, and copying [text] indices into Tcl_DStrings because parsing them involved overwriting them. If this causes performance trouble, that can be resolved by further converting them to Tcl_Obj's. The #defines USE_NON_CONST and USE_COMPAT_CONST have the same effect for Tk as they do for Tcl. (They actually change tcl.h)
* * generic/tkConsole.c (ConsoleCmd): correct return that shouldhobbs2002-04-121-2/+2
| | | | have just set result code.
* * Updated Tk's console to CONSTified channel driver interface.dgp2002-01-151-4/+1
| | | | [Tcl Patch 503565, Tk Patch 503983]
* * Updated Tk's console to CONSTified channel driver interface.dgp2002-01-151-4/+4
| | | | [Tcl Patch 503565, Tk Patch 503983]
* ** upport to 8.4 of mac code changes for 8.3.3 & various newdas2001-11-231-2/+5
| | | | | | ** changes for 8.4, some already backported to 8.3.4 (patch #435660) see ChangeLog for details
* * TIP 44 changes specific to the Mac anddgp2001-08-061-6/+6
| | | | | | Windows platforms that were overlooked before: tkOpenDocument, tkConsoleExit, tkConsoleOutput, unsupported1 out of namespace :: . Thanks to Vince Darley for prompting another look.
* Just added comments about a Win2K OS bug with GetStdHandle(STD_OUTPUT_HANDLE).davidg2000-07-181-1/+18
| | | | No change was made to the code.
* * generic/tkColor.c:hobbs1999-11-191-2/+2
| | | | | | | | * generic/tkColor.h: fixed Tk_NameOfColor to work correctly, with minor change to TkColor struct. * generic/tkConsole.c: added static declaration to ConsoleDeleteProc function (proto already had it)
* * generic/tkConsole.c: Allow tcl to open CON and NUL, even for stdredman1999-07-301-16/+104
| | | | | | channels. Checking for bad/unusable std channels was moved to Tk since its only purpose was to check whether to use the Tk Console Window for the std channels. [Bug: 2393 2392 2209 2458]
* Cast third argument of Tcl_DStringAppend to (int) value in case thewart1999-06-171-2/+2
| | | | strlen() function returned a different type.
* Updated aclocal.m4 to reflect recent changes in tcl.m4wart1999-06-171-3/+3
| | | | | Changed type of strncmp() parameter from int to size_t in tkConsole.c to remove compiler warnings about bad types.
* * generic/tkStubLib.c:stanton1999-05-251-1/+22
| | | | | | | | | | * generic/tkStubInit.c: * generic/tkIntXlibDecls.h: * generic/tkIntPlatDecls.h: * generic/tkIntDecls.h: * generic/tkInt.decls: * generic/tkConsole.c: Various changes to try to get the Mac builds working.