Skip to content
Tcl Source Code History Of Ticket 1530474fffffffff
Login

History Of Ticket 1530474fffffffff

Artifacts Associated With Ticket 1530474fffffffff

  1. Ticket change [a26c867851] (rid 109890) by afredd on 2006-07-28 15:46:01:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      By converting the 24 calls of:
      
      Tcl_Panic("<function> called with shared object");
      
      in the core, into a (new) function call of
      
      TclSharedObjPanic("<function>");
      
      ...where TclSharedObjPanic() constructs the previous
      message before calling Tcl_Panic() then
      the static .exe shrinks by about 4K (from 770048
      to 765952). This is more than i'd expected, so
      compilers other than VS6 may give less impressive
      savings.
      
      Attached patch includes the trivial changes to
      
      tclBinary.c
      tclDictObj.c
      tclInt.h
      tclListObj.c
      tclObj.c
      tclStringObj.c
      
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "afredd"
    10. subsystem initialized to: "None"
    11. title initialized to: "Shrink the .exe size"
    12. type initialized to: "Patch"
  2. Ticket change [f45d9ccca7] (rid 129897) by afredd on 2006-07-28 22:46:02:

    1. icomment:
      
      
      File Added - 186616: TclSharedObjPanic.patch
      
      
      
    2. login: "afredd"
    3. mimetype: "text/plain"
    4. username: "afredd"
  3. Ticket change [7f4088247f] (rid 97540) by afredd on 2006-07-28 23:08:13:

    1. icomment:
      Logged In: YES 
      user_id=1386588
      
      To go with the previous changes, here's a patch that
      removes the need for the "::tcl::mathfunc::" prefix
      on all math function name static strings in tclBasic.c.
      For me this shrinks tclBasic.obj from 80963 to 79965,
      a saving of 998bytes.
      
      
      
      
    2. login: "afredd"
    3. mimetype: "text/plain"
    4. username: "afredd"
  4. Ticket change [956438ad47] (rid 106149) by afredd on 2006-07-28 23:08:14:

    1. icomment:
      
      
      File Added - 186622: tclBasic.c-patch
      
      
      
    2. login: "afredd"
    3. mimetype: "text/plain"
    4. username: "afredd"
  5. Add attachment "tclBasic.c-patch" [17fa5eee8e] (rid 122589) by afredd on 2006-07-28 23:08:14.

  6. Ticket change [c1f752e63d] (rid 111414) by afredd on 2006-07-28 23:59:09:

    1. icomment:
      
      
      File Added - 186627: tclClock.c-patch
      
      Logged In: YES 
      user_id=1386588
      
      
      ...and one for tclClock.c that shrinks tclClock.obj
      from 23,417 to 23,201 by condensing the clock command
      initialisation code.
      
      
    2. login: "afredd"
    3. mimetype: "text/plain"
    4. username: "afredd"
  7. Add attachment "tclClock.c-patch" [3a914aadfd] (rid 112579) by afredd on 2006-07-28 23:59:09.

  8. Ticket change [f715c10e21] (rid 130432) by dgp on 2006-07-31 12:48:14:

    1. assignee changed to: "dkf"
  9. Ticket change [0cd88cba3e] (rid 114248) by dkf on 2006-08-04 00:04:45:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Putting this on the back-burner for now; better to do this
      sort of thing during (towards the end of?) the beta cycle.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "2"
    5. resolution changed to: "Later"
    6. username: "dkf"
  10. Ticket change [d109b19573] (rid 113283) by hobbs on 2006-08-04 01:31:05:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      I'm interested to know if the same effect can be had by just
      using:
      
      Tcl_Panic("%s called with shared object", <function>);
      
      as the string would remain the same, and no new function is
      needed (Tcl_Panic already handles varargs).  If so, that
      would be a trivially easy to add in patch.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. priority changed to: "4"
    5. username: "hobbs"
  11. Ticket change [f2718b224e] (rid 109537) by afredd on 2006-08-04 15:36:45:

    1. icomment:
      Logged In: YES 
      user_id=1386588
      
      > I'm interested to know if the same effect can be had by
      > just using:
      > 
      > Tcl_Panic("%s called with shared object", <function>);
      
      Good idea... yes, this gives the same 4K file
      size reduction as with using a TclSharedObjPanic().
      
      Also, spotted in tclExecute.c:
      
      ~1043: Tcl_Panic("shared object passed to TclIncrObj")
      
      which could be reworded to match the others.
      
      
      
    2. login: "afredd"
    3. mimetype: "text/plain"
    4. username: "afredd"
  12. Ticket change [9acd766eb5] (rid 111016) by hobbs on 2006-08-05 05:59:34:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      can you (afredd) please provide the alternate patch?  thx
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  13. Ticket change [47d7db7df9] (rid 99776) by afredd on 2006-08-07 16:03:08:

    1. icomment:
      
      
      File Added - 187948: called_with_shared_object.patch
      
      Logged In: YES 
      user_id=1386588
      
      > can you (afredd) please provide the alternate patch? thx
      
      Sure - here it is.
      
      I've also added in the reworded Tcl_Panic for TclIncrObj.
      
      Note, while i haven't changed them there are 2 possible
       typos in the (original) panic messages. (1) The panic
       at ~1323 of tclListObj.c says "Tcl_ListObjSetElement"
       but is really in TclListObjSetElement (no underscore).
       (2) Similarly, at ~344 in tclBinary.c the panic in the
       function Tcl_SetByteArrayLength says Tcl_SetObjLength.
       
      
      
    2. login: "afredd"
    3. mimetype: "text/plain"
    4. username: "afredd"
  14. Add attachment "called_with_shared_object.patch" [196e2417e6] (rid 122805) by afredd on 2006-08-07 16:03:08.

  15. Add attachment "tclVar.c-patch" [eec57d95ac] (rid 108872) by afredd on 2006-08-07 21:17:33.

  16. Ticket change [bc04256fe9] (rid 129587) by afredd on 2006-08-07 21:17:33:

    1. icomment:
      
      
      File Deleted - 186616: 
      
      
      
      File Added - 188005: tclVar.c-patch
      
      Logged In: YES 
      user_id=1386588
      
      
      Another few bytes can be saved by removing the
      redundant first "if (objc < 1)" test in Tcl_UnsetObjCmd.
      ie. are there a negative number of command arguments.
      Looks like a harmless mistranslation of the code for the
      old behaviour when [unset] was an error.
      
      Anyways saves a few bytes (257) from the tclVar.obj,
      and possibly from the .exe too.
      
      
      
    2. login: "afredd"
    3. mimetype: "text/plain"
    4. username: "afredd"
  17. Ticket change [4a7b30dc2d] (rid 126542) by dkf on 2006-08-10 19:19:53:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Applied fixes suggested. Will not backport.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  18. Ticket change [dba203d8ac] (rid 107994) by dkf on 2006-08-10 19:19:54:

    1. closedate changed to: "2006-08-10T12:19:54"
    2. closer changed to: "dkf"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"