Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 96a53ca7606ea1da827db10660dab2c628414f63
Ticket: 403709ffffffffffffffffffffffffffffffffff
Improve speed of [split $string ""] (bug #131523)
User & Date: andreas_kupries on 2001-02-12 13:40:33
Changes

  1. icomment:
    Tcl_UniChar -> int -> (char *) 
    
    The first is safe, AFAIK, because IIRC Tcl_UniChar represents UTF16 coding of characters which is 2 bytes at most. And int is 2 bytes at least. The (char*) should be read is (void*). Tcl_CreateHashTable has a very generic interface to keys, because of the various possible key-types. As the hash is created with one-word-keys an (int*) is ok, even in the guise of a (char*).
    
    I agree that we should change the variable names to match the core style.
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"