diff options
Diffstat (limited to 'doc/SplitList.3')
| -rw-r--r-- | doc/SplitList.3 | 23 | 
1 files changed, 12 insertions, 11 deletions
| diff --git a/doc/SplitList.3 b/doc/SplitList.3 index 5726f86..d19ca14 100644 --- a/doc/SplitList.3 +++ b/doc/SplitList.3 @@ -4,11 +4,9 @@  '\"  '\" See the file "license.terms" for information on usage and redistribution  '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. -'\"  -'\" RCS: @(#) $Id: SplitList.3,v 1.9 2004/10/07 15:15:48 dkf Exp $ -'\"  -.so man.macros +'\"  .TH Tcl_SplitList 3 8.0 Tcl "Tcl Library Procedures" +.so man.macros  .BS  .SH NAME  Tcl_SplitList, Tcl_Merge, Tcl_ScanElement, Tcl_ConvertElement, Tcl_ScanCountedElement, Tcl_ConvertCountedElement \- manipulate Tcl lists @@ -67,7 +65,6 @@ Information about \fIsrc\fR. Must be value returned by previous  call to \fBTcl_ScanElement\fR, possibly OR-ed  with \fBTCL_DONT_USE_BRACES\fR.  .BE -  .SH DESCRIPTION  .PP  These procedures may be used to disassemble and reassemble Tcl lists. @@ -82,15 +79,18 @@ also holds copies of all the list elements.  It is the caller's  responsibility to free up all of this storage.  For example, suppose that you have called \fBTcl_SplitList\fR with  the following code: +.PP  .CS  int argc, code;  char *string;  char **argv;  \&... -code = Tcl_SplitList(interp, string, &argc, &argv); +code = \fBTcl_SplitList\fR(interp, string, &argc, &argv);  .CE +.PP  Then you should eventually free the storage with a call like the  following: +.PP  .CS  Tcl_Free((char *) argv);  .CE @@ -153,7 +153,7 @@ include spaces between adjacent list elements.  \fBTcl_ConvertElement\fR uses one of two different approaches to  handle the special characters in \fIsrc\fR.  Wherever possible, it  handles special characters by surrounding the string with braces. -This produces clean-looking output, but can't be used in some situations, +This produces clean-looking output, but cannot be used in some situations,  such as when \fIsrc\fR contains unmatched braces.  In these situations, \fBTcl_ConvertElement\fR handles special  characters by generating backslash sequences for them. @@ -166,22 +166,23 @@ used to generate a portion of an argument for a Tcl command.  In this case, surrounding \fIsrc\fR with curly braces would cause  the command not to be parsed correctly.  .PP -.VS 8.5  By default, \fBTcl_ConvertElement\fR will use quoting in its output  to be sure the first character of an element is not the hash -character (``#'').  This is to be sure the first element of any list +character +.PQ # . +This is to be sure the first element of any list  passed to \fBeval\fR is not mis-parsed as the beginning of a comment.  When a list element is not the first element of a list, this quoting  is not necessary.  When the caller can be sure that the element is  not the first element of a list, it can disable quoting of the leading  hash character by OR-ing the flag value returned by \fBTcl_ScanElement\fR  with \fBTCL_DONT_QUOTE_HASH\fR. -.VE 8.5  .PP  \fBTcl_ScanCountedElement\fR and \fBTcl_ConvertCountedElement\fR are  the same as \fBTcl_ScanElement\fR and \fBTcl_ConvertElement\fR, except  the length of string \fIsrc\fR is specified by the \fIlength\fR  argument, and the string may contain embedded nulls. - +.SH "SEE ALSO" +Tcl_ListObjGetElements(3)  .SH KEYWORDS  backslash, convert, element, list, merge, split, strings | 
