Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 06e6c8947c24bd929fc904e61897d420cf250239
Ticket: 842511ffffffffffffffffffffffffffffffffff
compilation errors in tclParse.c, tclTest.c
User & Date: vincentdarley on 2003-11-15 00:28:41
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Line 354 of tclParse.c gives me an 'signed/unsigned ==
    comparison error' when compiling on Windows VC++ 5.2. 
    This change fixes the problem:
    
        if ( (expPfxLen == (size_t)expPtr->size)
    
    (i.e. add a cast to 'size_t').
    
    Similarly tclTest.c, line 6469 vs 6481 have a problem.
    6469 in const, but the third parameter of
    Tcl_InitCustomHashTable is not const:
    
        static const Tcl_HashKeyType hkType = {
    TCL_HASH_KEY_TYPE_VERSION, TCL_HASH_KEY_SYSTEM_HASH,
    NULL, NULL, NULL, NULL
        };
        Tcl_HashTable hash;
        Tcl_HashEntry *hPtr;
        int i, isNew, limit = 100;
    
        if (objc>1 && Tcl_GetIntFromObj(interp, objv[1],
    &limit)!=TCL_OK) {
    return TCL_ERROR;
        }
    
        Tcl_InitCustomHashTable(&hash,
    TCL_CUSTOM_TYPE_KEYS, &hkType);
    
    removing 'const' fixes the problem, but it may be
    better to change the definition of
    Tcl_InitCustomHashTable to add CONST, for all I know.
    
    I thought Tcl used capital letters for 'const' anyway,
    as a separate matter....
    
    
  4. foundin changed to: "obsolete: 8.5a0"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vincentdarley"
  9. subsystem changed to: "45. Parsing and Eval"
  10. title changed to: "compilation errors in tclParse.c, tclTest.c"
  11. type changed to: "Bug"