Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f9d61e179ae02420f6bac69b4a2c8bd33b67bea9
Ticket: 1194015fffffffffffffffffffffffffffffffff
macro-ize TclFormatInt
User & Date: dgp on 2005-05-02 19:47:35
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    Given
    
      char *buf;
      long l;
    
    it appears that
    
    TclFormatInt(buf, l);
    
    is the equivalent of
    
    sprintf(buf, "%ld", l);
    
    Therefore, I request to make
    TclFormatInt a macro, #define'd
    in tclInt.h :
    
      #define TclFormatInt(buf, l)  sprintf((buf), "%ld", (l))
    
    Some compatibility provisions can be
    made for the internal stubs table slot
    currently occupied by the TclFormatInt
    routine.
    
    The comments of TclFormatInt allege:
    
     *      ...This
     *      procedure has the effect of sprintf(buffer,
    "%d", n) but is faster.
    
    Frankly, I don't believe that.  (Even ignoring the
    "d" for "ld" error.)
    
    
  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: "dgp"
  9. subsystem changed to: "10. Objects"
  10. title changed to: "macro-ize TclFormatInt"
  11. type changed to: "RFE"