Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 08f331996fc9d6c8983ac6671cdb31c160fe7513
Ticket: 3396731fffffffffffffffffffffffffffffffff
inline string reverse
User & Date: nijtmans on 2011-08-29 14:27:46
Changes

  1. icomment:
    A few minor remarks...:
    - ReverseUniChars contains the line
          from += count - 1
      but the "from" variable is not used any
      more after that.
    - ReverseBytes() should be static ;-)
    - ReverseUniChars is only called once, so it
      can be inlined. That allows us to separate the
      inline case from tthe non-line case better , so
      it saves an additional if().
    - src = from + count -1: the substraction of 1
      can be saved by changing the loop a little bit.
    - The Tcl_Unichar ch declaration can be put
      outside the loop.
    
    Committed to trunk. Nice work, Don, and
    thank you very much for the evaluation
    and improvements!!!!
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"