Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b2f5a5625620693da4c186196730bd1c365ab24ee8bf6c3c9aac7363d3f27936
Ticket: 3f9b4e0c812462ccd2a9b17bd1c13c834e811848
CrtObjCmd.3, NRE.3, SplitList.3: constify cmdName, list
User & Date: chrstphrchvz on 2021-05-24 16:33:39
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    The functions documented in CrtObjCmd.3 and NRE.3 have expected <tt>const char *cmdName</tt> 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).
    
    <pre>
    --- 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.
    <span style="color:red">-.AP char *cmdName in</span>
    <span style="color:green">+.AP "const char" *cmdName in</span>
     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.
    <span style="color:red">-.AP char *cmdName in</span>
    <span style="color:green">+.AP "const char" *cmdName in</span>
     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
    </pre>
    
  5. foundin changed to: "8.5 and later"
  6. is_private changed to: "0"
  7. login: "chrstphrchvz"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Cosmetic"
  11. status changed to: "Open"
  12. submitter changed to: "chrstphrchvz"
  13. subsystem changed to: "69. Other"
  14. title changed to: "CrtObjCmd.3, NRE.3: constify cmdName"
  15. type changed to: "Patch"