diff options
author | hobbs <hobbs> | 2000-05-11 00:16:52 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-05-11 00:16:52 (GMT) |
commit | 49819cda899108c1cfefcbbbc112bfb30ba8a065 (patch) | |
tree | bc3c22720f5fddd042f51e076a16faacb5a8aef3 /doc | |
parent | a413d4af1ac75229c582599b811c275f1aea186e (diff) | |
download | tcl-49819cda899108c1cfefcbbbc112bfb30ba8a065.zip tcl-49819cda899108c1cfefcbbbc112bfb30ba8a065.tar.gz tcl-49819cda899108c1cfefcbbbc112bfb30ba8a065.tar.bz2 |
* doc/source.n:
* doc/Eval.3:
* tests/source.test:
* generic/tclIOUtil.c (Tcl_EvalFile): added explicit \32 (^Z)
eofchar (affects Tcl_EvalFile in C, "source" in Tcl). This was
implicit on Windows already, and is now cross-platform to allow
for scripted documents.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Eval.3 | 6 | ||||
-rw-r--r-- | doc/source.n | 12 |
2 files changed, 15 insertions, 3 deletions
@@ -1,11 +1,12 @@ '\" '\" Copyright (c) 1989-1993 The Regents of the University of California. '\" Copyright (c) 1994-1997 Sun Microsystems, Inc. +'\" Copyright (c) 2000 Scriptics Corporation. '\" '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: Eval.3,v 1.6 2000/04/14 23:01:50 hobbs Exp $ +'\" RCS: @(#) $Id: Eval.3,v 1.7 2000/05/11 00:16:52 hobbs Exp $ '\" .so man.macros .TH Tcl_Eval 3 8.1 Tcl "Tcl Library Procedures" @@ -101,6 +102,9 @@ its contents as a Tcl script. It returns the same information as \fBTcl_EvalObjEx\fR. If the file couldn't be read then a Tcl error is returned to describe why the file couldn't be read. +.VS 8.4 +The eofchar for files is '\\32' (^Z) for all platforms. +.VE 8.4 .PP \fBTcl_EvalObjv\fR executes a single pre-parsed command instead of a script. The \fIobjc\fR and \fIobjv\fR arguments contain the values diff --git a/doc/source.n b/doc/source.n index 024ab7b..6a78622 100644 --- a/doc/source.n +++ b/doc/source.n @@ -1,11 +1,12 @@ '\" '\" Copyright (c) 1993 The Regents of the University of California. '\" Copyright (c) 1994-1996 Sun Microsystems, Inc. +'\" Copyright (c) 2000 Scriptics Corporation. '\" '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: source.n,v 1.2 1998/09/14 18:39:55 stanton Exp $ +'\" RCS: @(#) $Id: source.n,v 1.3 2000/05/11 00:16:52 hobbs Exp $ '\" .so man.macros .TH source n "" Tcl "Tcl Built-In Commands" @@ -31,7 +32,14 @@ of the script then the \fBsource\fR command will return that error. If a \fBreturn\fR command is invoked from within the script then the remainder of the file will be skipped and the \fBsource\fR command will return normally with the result from the \fBreturn\fR command. - +.PP +.VS 8.4 +The end-of-file character for files is '\\32' (^Z) for all platforms. +The source command will read files up to this character. This +restriction does not exist for the \fBread\fR or \fBgets\fR commands, +allowing for files containing code and data segments (scripted documents). +.VE 8.4 +.PP The \fI\-rsrc\fR and \fI\-rsrcid\fR forms of this command are only available on Macintosh computers. These versions of the command allow you to source a script from a \fBTEXT\fR resource. You may specify |