diff options
author | stu <stwo@users.sourceforge.net> | 2017-06-05 18:33:57 (GMT) |
---|---|---|
committer | stu <stwo@users.sourceforge.net> | 2017-06-05 18:33:57 (GMT) |
commit | a323b71adcc1795f6d3e38d0a3a51ff10b8d76b9 (patch) | |
tree | 16d4f7c60c955d540aaee31eb84bff501bcb5f70 /doc/OpenFileChnl.3 | |
parent | 51b616c6fb451a91e7ac680f3998eef84c352658 (diff) | |
download | tcl-stwo_dev86.zip tcl-stwo_dev86.tar.gz tcl-stwo_dev86.tar.bz2 |
Change the return type of Tcl_RegisterChannel from void to Tcl_Channel and have Tcl_RegisterChannel return the channel. his is a convenience to the programmer.stwo_dev86
Diffstat (limited to 'doc/OpenFileChnl.3')
-rw-r--r-- | doc/OpenFileChnl.3 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/OpenFileChnl.3 b/doc/OpenFileChnl.3 index 582ff4b..5623b80 100644 --- a/doc/OpenFileChnl.3 +++ b/doc/OpenFileChnl.3 @@ -32,7 +32,7 @@ int int \fBTcl_GetChannelNamesEx\fR(\fIinterp, pattern\fR) .sp -void +Tcl_Channel \fBTcl_RegisterChannel\fR(\fIinterp, channel\fR) .sp int @@ -319,6 +319,8 @@ the name given in the call to \fBTcl_CreateChannel\fR. After this call, the channel becomes the property of the interpreter, and the caller should not call \fBTcl_Close\fR for the channel; the channel will be closed automatically when it is unregistered from the interpreter. +\fBTcl_RegisterChannel\fR returns the channel, as a convenience to the +programmer, .PP Code executing outside of any Tcl interpreter can call \fBTcl_RegisterChannel\fR with \fIinterp\fR as NULL, to indicate that it |