From 1206d8aff615af8ee22e59b90e3f2d78318ea0ee Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Mon, 9 Oct 2006 23:38:55 +0000 Subject: * doc/UpVar.3: brough the docs in accordance to the code. Ever since 8.0, Tcl_UpVar(2)? accepts TCL_NAMESPACE_ONLY as a flag value, and var-3.4 tests for proper behaviour. The docs only allowed 0 and TCL_GLOBAL_ONLY. --- ChangeLog | 7 +++++++ doc/UpVar.3 | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 73cbd4b..92222e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2006-10-09 Miguel Sofer + * doc/UpVar.3: brough the docs in accordance to the code. Ever + since 8.0, Tcl_UpVar(2)? accepts TCL_NAMESPACE_ONLY as a flag + value, and var-3.4 tests for proper behaviour. The docs only + allowed 0 and TCL_GLOBAL_ONLY. + +2006-10-09 Miguel Sofer + * tests/*.test: updated all tests to refer explicitly to the global variables ::errorInfo, ::errorCode, ::env and ::tcl_platform: many were relying on the alternative lookup in the diff --git a/doc/UpVar.3 b/doc/UpVar.3 index 56aba45..01b0221 100644 --- a/doc/UpVar.3 +++ b/doc/UpVar.3 @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: UpVar.3,v 1.10 2004/10/07 15:15:48 dkf Exp $ +'\" RCS: @(#) $Id: UpVar.3,v 1.11 2006/10/09 23:38:56 msofer Exp $ '\" .so man.macros .TH Tcl_UpVar 3 7.4 Tcl "Tcl Library Procedures" @@ -39,9 +39,10 @@ variable so that references to \fIdestName\fR refer to the other variable. Must not currently exist except as an upvar-ed variable. .AP int flags in -Either \fBTCL_GLOBAL_ONLY\fR or 0; if non-zero, then \fIdestName\fR is -a global variable; otherwise it is a local to the current procedure -(or global if no procedure is active). +One of \fBTCL_GLOBAL_ONLY\fR, \fBTCL_NAMESPACE_ONLY\fR or 0; if non-zero, +then \fIdestName\fR is a global or namespace variable; otherwise it is +local to the current procedure (or current namespace if no procedure is +active). .AP "const char" *name1 in First part of source variable's name (scalar name, or name of array without array index). -- cgit v0.12