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
- 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.
- login: "anticrisis"
- mimetype: "text/plain"
- username: "anticrisis"