Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 33cb808056a0ede54e5bb41a0caae5a3f152df9002aa168fb8d4966b468b5c9b
Ticket: f4b0cb208044f175bdd669db0b293d0bf3f9108e
Calling Tcl_GetStringFromObj with NULL lengthPtr causes compile error
User & Date: anticrisis on 2021-01-23 00:09:32
Changes

  1. icomment:
    I'm not sure I understand the logic of these macros. Is the Tcl C API changing from using int to using size_t? Wouldn't it be easier to simply stay with int, which will always be the same size on a given platform and compiler?
    
    It seems these macros are intending to support the case where a particular C extension may sometimes use int and sometimes use size_t. But shouldn't the C extension conform to the interface provided by the API documentation? If we're changing to size_t, then people will have to update their code. If we're staying with int, then we don't need these macros.
    
  2. login: "anticrisis"
  3. mimetype: "text/plain"
  4. username: "anticrisis"