Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-01-27
22:58 • Ticket [1f1b168626] Tcl 9 StringObj.3 - lengthPtr not documented status stil... artifact: b0098d975a user: pointsman
20:23 • Ticket [1f1b168626]: 4 changes artifact: e219e9e03e user: jan.nijtmans
16:37 • New ticket [1f1b168626]. artifact: 29d43fbfc3 user: pointsman

Tcl 9 StringObj.3 - lengthPtr not documented

Open1f1b1686268813f2db7da60e96980a1c750d0c99Created 4 years agoUpdated 4 years ago
Descriptionplain2023-01-27 16:37:24
StringObj.3 documents amongst others the API funktions 

Tcl_GetStringFromObj(objPtr, lengthPtr)

Tcl_GetUnicodeFromObj(objPtr, lengthPtr)

The argument lengthPtr isn't documented as all the other arguments (and in the Tcl 8 version of the man page). 

Obviously an oversight/mistake. Should be added, since just the type of that argument changed in Tcl 9.
pointsmanplain2023-01-27 22:58:44
Ah, then this perhaps an markup / formating error.

If I look at the StringObj.3 man page on a debian 11.6 in the doc directory with

man -l StringObj.3

then I see

       size_t | (int)                                The    location     where
                                                     Tcl_GetStringFromObj will
                                                     store  the  length  of  a
                                                     value's  string represen‐
                                                     tation.   May   be   (int
                                                     *)NULL when not used.


I missed initially because I searched for "lengthPtr".

For me on that box (with man version 2.9.4) I don't see "lengtPtr (out)" which is indeed in the man page source code.
Log in (anonymous is fine) to add a comment.