Commit Graph
17 Commits
Author SHA1 Message Date
Jim Meyering d60f3b0c6b maint: update almost all copyright ranges to include 2011
Run the new "make update-copyright" rule.
2011-01-01 22:12:59 +01:00
Bruno Haible fc4b90fafd Fix typo in comment. 2010-04-20 00:02:14 +02:00
Bruno Haible e768d427cc diffseq: Accommodate use-case with abstract arrays. 2010-04-19 00:01:18 +02:00
Jim Meyering b2e2010c7c update nearly all FSF copyright year lists to include 2010
Use the same procedure as for 2009, outlined in
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2010-01-01 10:42:00 +01:00
Bruno Haible 441aa3044f Use spaces for indentation, not tabs. 2009-12-10 20:28:30 +01:00
Bruno Haible 4e765f32d6 Add comment. 2009-11-22 19:07:34 +01:00
Jim Meyering 32be9f3469 diffseq: avoid spurious gcc warnings
* lib/diffseq.h (IF_LINT2): Define.
(compareseq): Use it to initialize two members of "part".
This avoids two used-uninitialized warnings.
2009-11-22 09:02:37 +01:00
Bruno Haible 833e6a3eb2 diffseq: reduce scope of variable 'best'. 2009-11-21 14:37:46 +01:00
Jim Meyering a823652ce2 diffseq: remove useless assignment to "best"
* lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
assignment.  At that point "best" is already guaranteed to be zero.
2009-11-21 13:49:54 +01:00
Ralf Wildenhues 044cf1cc45 Add an "early abort" facility to diffseq. 2008-09-14 18:36:19 +02:00
Bruno Haible 506bbd4259 Avoid gcc warnings due to misplaced 'const'. 2008-02-10 19:22:48 +01:00
Bruno Haible 1fe8736cb9 Add comments about required includes. 2008-02-03 21:06:40 +01:00
Bruno Haible 57fdfd3f8e Change copyright notice from GPLv2+ to GPLv3+. 2007-10-07 19:14:58 +02:00
Bruno Haible 0023b19311 - Comment style.
- Change 'heuristic' from 'int' to 'bool'.
- Remove the 'const' from the context parameter. Needed because in the
  fstrcmp case, the NOTE_INSERT and NOTE_DELETE macros modify fields
  in the context, and an extra indirection would only cost performance:
    #define EXTRA_CONTEXT_FIELDS \
      /* The number of elements inserted or deleted. */ \
      int xvec_edit_count; \
      int yvec_edit_count;
    #define NOTE_DELETE(ctxt, xoff) ctxt->xvec_edit_count++
    #define NOTE_INSERT(ctxt, yoff) ctxt->yvec_edit_count++
- In 'diag', keep two blocks of code in sync (lines 191 and 224).
- Undefine the macro USE_HEURISTIC after use.
2007-08-18 10:53:41 +00:00
Paul Eggert a29749fa30 * MODULES.html.sh: Add diffseq.
* modules/diffseq: New file.
* lib/diffseq.h: New file, from GNU gettext with a few minor changes,
extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
2007-08-17 23:29:23 +00:00
Bruno Haible 12e0487381 Live on the diff-merge branch, not on HEAD. 2006-10-07 15:21:52 +00:00
Bruno Haible bc45ccc251 Difference of two sequences. 2006-10-07 15:20:20 +00:00