Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 846e4bd76457928b844c6f732e5d908b04d366c041166d5417c0cf1ed8cf76ba
Ticket: 14680527328fdcadb5e558c998621d28eb607db4
Changes to Tcl_GetByteArrayFromObj not correct?
User & Date: jan.nijtmans on 2023-09-25 18:42:12
Changes

  1. assignee changed to: "jan.nijtmans"
  2. closedate changed to: "2460213.279315"
  3. closer changed to: "jan.nijtmans"
  4. icomment:
    > Either Stub 41 should be removed, or defined as taking an `int*` so that compiler will catch these errors. The way it is currently defined serves no utility afaict but I'm wary of changing it myself in case there is some use I don't see.
    
    The use for this function is [https://core.tcl-lang.org/tcl/file?name=generic/tclDecls.h&ci=35a5f655f5b9e16e&ln=4090-4093|here]. It isn't meant to be called directly by extensions.
    
    I would prefer your example code snippet to produce a compiler error, I'll think about it how to do that.
    
    Anyway, I don't like it when you hijack an unrelated ticket .....
    
    Closing (since changing "int *" to "Tcl_Size *" was a good idea, reduces confusion
    
  5. login: "jan.nijtmans"
  6. mimetype: "text/x-fossil-wiki"
  7. resolution changed to: "Fixed"
  8. status changed to: "Closed"