Skip to content
Tcl Source Code History Of Ticket 0e0e150e49479e3f
Login

History Of Ticket 0e0e150e49479e3f

Artifacts Associated With Ticket 0e0e150e49479e3f

  1. Ticket change [3e9cf926a1] (rid 143060) by tgl on 2015-09-19 15:55:29:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      The attached patch solves the problems with quantified back-references
      that were previously discussed in
      http://core.tcl.tk/tcl/tktview?name=1115587
      
      This patch represents a port of work that's been done on Postgres'
      copy of the regexp library over the past several years, specifically
      these commits:
      5223f96d92fd6fb6fcf260da9f9cb111831f0b37
      173e29aa5deefd9e71c183583ba37805c8102a72
      3cbfe485e44d055b9e6a27e47069729375059f8c
      4dd78bf37aa29d04b3f358b08c4a2fa43cf828e7
      2a4c46e0baf2d51117cd4468b28705d01ffcbff9
      3694b4d7e1aa02f917f9d18c550fbb49b96efa83
      which you can look at in the Postgres repo at
      http://git.postgresql.org/gitweb/?p=postgresql.git
      if you want a sense of the development history.  This submission would
      probably be easier to follow if I'd submitted individual patches
      equivalent to each of those steps ... but transposing code between
      Postgres and Tcl layout conventions is enough of a pain in the rear that
      I couldn't muster the energy to do it repeatedly.
      
      In fact, this still doesn't follow Tcl layout conventions very well,
      partly because I'm not totally certain what they are.  I'm hoping you
      have a suitable reformatting tool.
      
      Anyway, the core of the fix is to introduce an explicit "iteration"
      subre type, rather than relying completely on a compile-time
      transformation, as I'd speculated about in my comments in 1115587.
      Subsequent cleanup includes getting rid of the useless "retry memory"
      stuff and folding the parallel dissect() and cdissect() code paths
      into a single implementation, which is why the regexec.c changes are
      so bulky-looking.
      
      We've been using this successfully in Postgres for several years,
      with only a couple of minor bugs discovered (see the last two commits
      mentioned above).  So I now feel confident enough in it to recommend
      that you adopt it.
      
      This supersedes my previous submission at ticket 3487443, which I've
      now closed.
      
    5. foundin initialized to: "8.6.4"
    6. is_private initialized to: "0"
    7. login: "tgl"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "26864b65f1c6ce8bda86f87ed9c554e19ac0390d"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "tgl"
    14. subsystem initialized to: "43. Regexp"
    15. title initialized to: "Fix for quantified regexp back-references"
    16. type initialized to: "Patch"
  2. Add attachment "quantified-backrefs.patch" [5d27502ea2] (rid 143061) by tgl on 2015-09-19 15:55:52.

  3. Ticket change [4a2d0afe79] (rid 143089) by dgp on 2015-09-21 19:07:42:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2457287.29701949"
    3. closer changed to: "dgp"
    4. icomment:
      
      Fix accepted for release in Tcl 8.6.5.
      
      Unfortunately 8.5 and 8.6 have diverged too much to 
      adapt this patch to apply to 8.5.19 with the effort I'm
      willing to spare.
      
      If fixing this in continuing 8.5.* releases is important,
      the best way may be simply to copy all the 8.6 source
      files r*.c as is back to the 8.5 branch.  I don't know of
      any differences that have value to be preserved.
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Accepted"
    8. status changed to: "Closed"