Overview
| Comment: | * doc/Tcl_Main.3: * generic/tclMain.c: Substantial rewrite and expanded documentation of Tcl_Main to correct a number of bugs and flaws: * Interactive Tcl_Main can now enter a main loop, exit that loop and continue interactive operations. The loop may even exit in the midst of interactive command typing without loss of the partial command. [Bugs 486453, 474131] * Tcl_Main now gracefully handles deletion of its master interpreter. * Interactive Tcl_Main can now operate with non-blocking stdin * Interactive Tcl_Main can now detect EOF on stdin even in mid-command. [Bug 491341] * Added VFS-aware internal routines for managing the startup script selection. * Tcl variable 'tcl_interactive' is now linked to C variable 'tty' so that one can disable/enable interactive prompts at the script level when there is no startup script. This is meant for use by the test suite. * Consistent use of the Tcl libraries standard channels as returned by Tcl_GetStdChannel(); as opposed to the channels named 'stdin', 'stdout', and 'stderr' in the master interp, which can be different or unavailable. * Tcl_Main now calls Tcl_Exit() if evaluation of [exit] in the master interpreter returns, assuring Tcl_Main does not return. * Documented Tcl_Main's absence from public stub table * Documented that Tcl_Main does not return. * Documented Tcl variables set by Tcl_Main. * All prompts are done from a single procedure, Prompt. * Use of Tcl_Obj-enabled interfaces everywhere. * generic/tclInt.decls (TclGetStartupScriptPath, TclSetStartupScriptPath): New internal VFS-aware routines for managing the startup script of Tcl_Main. * generic/tclIntDecls.h: * generic/tclStubInit.c: make genstubs * generic/tclTest.c (TestsetmainloopCmd,TestexitmainloopCmd, Tcltest_Init,TestinterpdeleteCmd): * tests/main.test (new): Added new file to test suite that thoroughly tests generic/tclMain.c; added some new test commands for testing Tcl_SetMainLoop(). |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
f24c18a585bae5d10dd0fcb587ac979f |
| User & Date: | dgp on 2002-01-05 22:55:51.000 |
| Other Links: | manifest | tags |
Context
|
2002-01-07
| ||
| 17:54 | * generic/tclMain.c: Bug fix: neglected the NULL case in TclGetStartupScriptFileName(). B... check-in: 913cc898b6 user: dgp tags: trunk | |
|
2002-01-05
| ||
| 22:55 | * doc/Tcl_Main.3: * generic/tclMain.c: Substantial rewrite and expanded documentation ... check-in: f24c18a585 user: dgp tags: trunk | |
|
2002-01-04
| ||
| 15:43 | * generic/tclThreadJoin.c (TclRememberJoinableThread,TclJoinThread): Replaced Tcl_Alloc and... check-in: 7fbf4354d0 user: dgp tags: trunk | |
Changes
Modified ChangeLog
from [edbb37a854]
to [2b7d081ebe].
[diff]
Modified doc/Tcl_Main.3
from [04dc9d1db6]
to [16b6e921ae].
[diff]
Modified generic/tclInt.decls
from [3c5cafa18a]
to [c34a04f0e8].
[diff]
Modified generic/tclIntDecls.h
from [2c861a59f8]
to [1da0403c21].
[diff]
Modified generic/tclMain.c
from [7fe8d0c131]
to [33322a424f].
[diff]
Modified generic/tclStubInit.c
from [02f00f54d8]
to [00b7d1bed1].
[diff]
Modified generic/tclTest.c
from [96b5826a33]
to [9a0274706b].
[diff]
Added tests/main.test version [8e205a1d4d].