Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2a6392875eeef6c849983d971305fb8f0dc06c23
Ticket: 2215022fffffffffffffffffffffffffffffffff
tclBinary.c:TIBC(),T_SBAO(); tclInt.h,tclNamesp.c:TME()
User & Date: patthoyts on 2008-11-07 07:01:36
Changes

  1. icomment:
    I find diff -u is usually a better format than the default as it provides more context.
    This patch looks good - it definately improves the binary init function! You should glance through the tcl style guide sometime though. Tcl sources use an indent of 4 and a tab space of 8. When refactoring code try to avoid renaming variables spuriosly. In the ensemble creation reworking you didn't need to redo some of the inner bits and its actually more efficient to stick with Tcl_DString* functions for some of this string manipulation.
    I've cleaned up the patch a bit and attached it so you can see what I changed. I'd apply it already except I get a test failure:
    binary.test
    
    
    ==== binary-63.2 NaN FAILED
    ==== Contents of test case:
    
        binary scan [binary format q -NaN] w w
        format 0x%016lx [expr {$w & 0xfff3ffffffffffff}]
    
    ---- Result was:
    0xfff3ffffffffffff
    ---- Result should have been (exact matching):
    0xfff0000000000000
    ==== binary-63.2 FAILED
    
    Once I work out why we should be good to go.
    
    
  2. login: "patthoyts"
  3. mimetype: "text/plain"
  4. username: "patthoyts"