|
2021-05-25
| ||
| 09:33 | • Closed ticket [3f9b4e0c81]: CrtObjCmd.3, NRE.3, SplitList.3: constify cmdName, l... artifact: 9d9e94af7b user: jan.nijtmans | |
| 09:30 | Fix [3f9b4e0c81]: CrtObjCmd.3, NRE.3, SplitList.3: constify cmdName, list (actually quite a few more... check-in: 1433d2dafc user: jan.nijtmans tags: core-8-6-branch | |
|
2021-05-24
| ||
| 17:14 | • Ticket [3f9b4e0c81] CrtObjCmd.3, NRE.3, SplitList.3: constify cmdName, list ... artifact: f612dee08a user: chrstphrchvz | |
| 16:33 | • New ticket [3f9b4e0c81]. artifact: b2f5a56256 user: chrstphrchvz | |
CrtObjCmd.3, NRE.3, SplitList.3: constify cmdName, list
Closed / Fixed3f9b4e0c812462ccd2a9b17bd1c13c834e811848Created 6 years agoUpdated 6 years ago
Descriptionwiki2021-05-24 16:33:39
The functions documented in CrtObjCmd.3 and NRE.3 have expected const char *cmdName parameters for a long time (permanently as of [dc58eb7219]). Should the documentation reflect this? Maybe it was supposed to as of [94bf67038b] (as done for CrtAlias.3, CrtCommand.3, TraceCmd.3).
--- doc/CrtObjCmd.3.orig +++ doc/CrtObjCmd.3 @@ -46,7 +46,7 @@ Tcl_Command .AS Tcl_CmdDeleteProc *deleteProc in/out .AP Tcl_Interp *interp in Interpreter in which to create a new command or that contains a command. -.AP char *cmdName in +.AP "const char" *cmdName in Name of command. .AP Tcl_ObjCmdProc *proc in Implementation of the new command: \fIproc\fR will be called whenever --- doc/NRE.3.orig +++ doc/NRE.3 @@ -40,7 +40,7 @@ void .AS Tcl_CmdDeleteProc *interp in .AP Tcl_Interp *interp in The relevant Interpreter. -.AP char *cmdName in +.AP "const char" *cmdName in Name of the command to create. .AP Tcl_ObjCmdProc *proc in Called in order to evaluate a command. Is often just a small wrapper that uses
Edit: I think the same goes for *list in SplitList.3:
--- doc/SplitList.3.orig +++ doc/SplitList.3 @@ -36,7 +36,7 @@ int .AP Tcl_Interp *interp out Interpreter to use for error reporting. If NULL, then no error message is left. -.AP char *list in +.AP "const char" *list in Pointer to a string with proper list structure. .AP int *argcPtr out Filled in with number of elements in \fIlist\fR.
Referenced by1
1433d2dafcFix [3f9b4e0c81]: CrtObjCmd.3, NRE.3, SplitList.3: constify cmdName, list (actually quite a few more where the documentation didn't match the header files ....) check-in2021-05-25 09:30:20
chrstphrchvz Ticket [3f9b4e0c81]: 4 changes
[History diff]2021-05-24 17:14:08
jan.nijtmanswiki2021-05-25 09:33:36
Thanks! There were actually quite a few more where the documentation didn't match the actual header-files. I think I got all of them now.
Merged now to core-8-6-branch, core-8-branch and trunk
Log in (anonymous is fine) to add a comment.