/[grep]/grep/src/kwset.c
ViewVC logotype

Diff of /grep/src/kwset.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by charles_levert, Mon Jul 4 05:12:17 2005 UTC revision 1.11 by charles_levert, Mon Jul 4 05:16:15 2005 UTC
# Line 405  kwsprep (kwset_t kws) Line 405  kwsprep (kwset_t kws)
405        /* Build the Boyer Moore delta.  Boy that's easy compared to CW. */        /* Build the Boyer Moore delta.  Boy that's easy compared to CW. */
406        for (i = 0; i < kwset->mind; ++i)        for (i = 0; i < kwset->mind; ++i)
407          delta[U(kwset->target[i])] = kwset->mind - (i + 1);          delta[U(kwset->target[i])] = kwset->mind - (i + 1);
       kwset->mind2 = kwset->mind;  
408        /* Find the minimal delta2 shift that we might make after        /* Find the minimal delta2 shift that we might make after
409           a backwards match has failed. */           a backwards match has failed. */
410        c = kwset->target[kwset->mind - 1];        c = kwset->target[kwset->mind - 1];

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26