TEA (tclconfig) Source Code

Ticket Change Details
Login
Overview

Artifact ID: 87d347e0d67d95cdcb863dbebd65abb0546c6215e5ef8866ef7330fa705c7bae
Ticket: 6ade28ab79d99479e5f6125dd63072e002003187
Define "Tcl_Size" when compiling with Tcl = 8.7
User & Date: xdelaruelle 2024-05-12 15:37:50
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Hello,
    
    Commit f0385027e9ba256e adds definition of "Tcl_Size" type if compiling with Tcl <= 8.6.
    
    I wonder if this definition could also be defined if compiling with Tcl = 8.7.
    
    I build my code for test against last published version of Tcl9 and Tcl8.7. On Tcl8.7a5, it seems that Tcl_Size is not defined as I get the following error:
    
    envmodules.c: In function ‘Envmodules_GetFilesInDirectoryObjCmd’:
    envmodules.c:80:4: error: unknown type name ‘Tcl_Size’; did you mean ‘Tcl_Time’?
       80 |    Tcl_Size dirlen;
          |    ^~~~~~~~
          |    Tcl_Time
    
    It would be wonderful to also have the type defined on Tcl8.7, as I will be able to completely drop some pragma, needed otherwise to port to Tcl9:
    
    -#if TCL_MAJOR_VERSION < 9
    -   int dirlen;
    -#else
        Tcl_Size dirlen;
    -#endif
    
    Regards,
    Xavier
    
  5. is_private changed to: "0"
  6. login: "xdelaruelle"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "231d7ecff918d0384f1ee469cf171339e824104a"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "xdelaruelle"
  13. subsystem changed to: "85. tclconfig"
  14. title changed to: "Define "Tcl_Size" when compiling with Tcl = 8.7"
  15. type changed to: "RFE"