Skip to content
Tcl Source Code History Of Ticket 1107673fff
Login

History Of Ticket 1107673fff

Artifacts Associated With Ticket 1107673fff

  1. Ticket change [da1a5eb6cf] (rid 107719) by nobody on 2005-01-23 07:24:08:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      tcl/generic/tclIO.c:
      
      ... static void DeleteChannelTable (clientData, interp):
      
         580      for (hPtr = Tcl_FirstHashEntry(hTblPtr, &hSearch);
         581              hPtr != (Tcl_HashEntry *) NULL;
         582              hPtr = Tcl_FirstHashEntry(hTblPtr, &hSearch)) {
      
              The second use of `Tcl_FirstHashEntry' seems to be a mistake.
      
      ... int Tcl_GetChannelNamesEx (interp, pattern):
      
        8752      for (hPtr = Tcl_FirstHashEntry(hTblPtr, &hSearch);
        8753              hPtr != (Tcl_HashEntry *) NULL;
        8754              hPtr = Tcl_NextHashEntry(&hSearch)) {
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "25. Channel System"
    10. title initialized to: "tclIO.c (CVS): Tcl_NextHashEntry should be used"
    11. type initialized to: "Bug"
  2. Ticket change [9b1c02670f] (rid 111066) by dkf on 2005-01-24 16:25:30:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Noting that it is safe to do a loop{delete;next} - it is an
      explicitly supported scenario.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [cfbcec3306] (rid 113041) by andreas_kupries on 2005-01-25 05:12:17:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      The code as is is OK. You get the first hash entry, delete,
      and when we get the first entry again it will be a different
      entry.
      
      So it is not a bug per se.
      
      I was not aware that the loop(delete,next) scenario is
      supported. That could be a new thing. I dimly remember that
      I changed code somewhere to the idiom as shown here because
      the other failed.
      
      Donal, note that according to annotate you were the last one
      to touch this code, Nov 29 last year. There is however no
      entry in the ChangeLog about this. ... Hm. Janitorial fixes
      according to cvs log, rev 1.80.  But the CVS diff 1.79/1.80
      does not show any difference at this location. Ok, something
      is lying to me.
      
      Still, this is not a bug. At most a minor style thing.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. priority changed to: "1 Zero"
    5. username: "andreas_kupries"