Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c3da517168609a723bbb2c38bbf33c5729a6f507
Ticket: 436116ffffffffffffffffffffffffffffffffff
TIP#60 patch
User & Date: nobody on 2001-06-25 15:38:25
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    With the material submiited here it is possible to build Tcl 8.3.3 with the current 
    Borland compiler.
    IMHO there are two points where someone more knowledgable than me should have
    a look:
    1) The typedef for ClientData
    The original version did a test
    
      #   if defined(__STDC__) || defined(__cplusplus)
    
    when defining the typedef ClientData, which does not work well for the Borland compiler:
    - __cplusplus is not defined (or else the regexp-package will not compile)
    - __STDC__ is only #defined if you set '-A' for strict ANSI compatibility. But then the 
      compiler is *really* strict and thus quite a few files will not compile for various reasons 
      (e.g. a '//' comment in one of the Windows header files).
    
    So you're stuck with 'typedef int *ClientData;' - which in turn forces an ugly type cast 
    in the function 'Tcl_CreateThread' for the parameter 'proc' in the call to 
    _beginthreadex (file tclWinThrd.c).
    
    But then I wondered: Are we asking the appropriate question? We ask:
        Is it a (strict?) ANSI or a C++ compiler?
    when all we want to know is whether it supports the 'void' key word or not. Hence 
    the #define KNOWS_VOID in tcl.h.
    
    
    2) Borland #defines more error codes in <errno.h> than does VC++. This leads to a 
    clash in error definitions in tclWinPort.h when EDQUOT is #defined as 49, because
    the last #define in Borland's errno.h is
      #define ENOTEMPTY 49    /* Directory not empty              */
    With these two definitions tclPosixStr.c will not compile.
    I changed the #define for EDQUOT to 69 because in some other header file I found the
    same definition to achieve compilation.
    However there might well be better choices.
    
    I hope that this description makes sense and that the attached diff file is what you need.
    Best regards
    Helmut Giese
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "53. Configure and Build Tools"
  10. title changed to: "Support for Borland compiler f Tcl 8.3.3"
  11. type changed to: "Patch"