Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bf196cfcd2d58764d624807c3e2f0be3ab33929b
Ticket: 2215022fffffffffffffffffffffffffffffffff
tclBinary.c:TIBC(),T_SBAO(); tclInt.h,tclNamesp.c:TME()
User & Date: duoas on 2008-11-02 00:21:36
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Here are some patches. I don't know exactly which category is appropriate, because it spans a few...
    
    --------------------------------------------------
    ~/tcl/generic/tclBinary.c
    --------------------------------------------------
      TclInitBinaryCmd() had a comment asking for plastic surgery, so I obliged. (Now it is short and beautiful.)
    
      Tcl_SetByteArrayObj() was also updated to have the 'bytes' == NULL and 'length' < 0 tests in there as described here: http://wiki.tcl.tk/21831
      Tcl_GetByteArrayFromObj() was not modified.
    
    --------------------------------------------------
    ~/tcl/generic/tclInt.h, ~/tcl/generic/tclNamesp.c
    --------------------------------------------------
      TclMakeEnsemble() and EnsembleImplMap were modified to enable the (desired) beautification of TclInitBinaryCmd(). They are fully backwards-compatible with all the other ensemble commands created by the core:
      info   : tclCmdIL.c
      string : tclCmdMZ.c
      dict   : tclDictObj.c
      prefix : tclIndexObj.c
      chan   : tclIOCmd.c
    hence their code didn't need to be changed. (But they do need a recompile because struct EnsembleImplMap has new elements in there.)
    
      The new TclMakeEnsemble() can create sub-command ensembles in addition to global command ensembles. The TclMakeEnsemble() function header and the TclInitBinaryCmd() body document its new powers.
    
    --------------------------------------------------
    ~/tcl/doc/ByteArrObj.3
    --------------------------------------------------
      Updated with two lines indicating that 'bytes' may be NULL even if 'length' > 0 --in which case the newly-allocated byte array contains uninitialized data.
    
    
    The attached patches were generated with the usual diff command.
    
    Each patch is attached.
    Argh, I can only attach one file. Gimme a sec.. I've never diffed more than one file at once before...
    
    Ok, there is now but ONE file. All the CVS junk and directory differences is removed.
      diff -r tcl tcl-modified > foo.diff
    
    Hope this helps.
    
    --Michael
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "duoas"
  10. subsystem changed to: "None"
  11. title changed to:
    tclBinary.c:TIBC(),T_SBAO(); tclInt.h,tclNamesp.c:TME()
    
  12. type changed to: "Patch"