summaryrefslogtreecommitdiff
path: root/lib/diffseq.h
Commit message (Collapse)AuthorAgeFilesLines
* maint: update almost all copyright ranges to include 2011Jim Meyering2011-01-011-1/+1
| | | | Run the new "make update-copyright" rule.
* Fix typo in comment.Bruno Haible2010-04-201-1/+1
|
* diffseq: Accommodate use-case with abstract arrays.Bruno Haible2010-04-191-6/+29
|
* update nearly all FSF copyright year lists to include 2010Jim Meyering2010-01-011-2/+2
| | | | | Use the same procedure as for 2009, outlined in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
* Use spaces for indentation, not tabs.Bruno Haible2009-12-101-222/+222
|
* Add comment.Bruno Haible2009-11-221-1/+2
|
* diffseq: avoid spurious gcc warningsJim Meyering2009-11-221-1/+10
| | | | | | * lib/diffseq.h (IF_LINT2): Define. (compareseq): Use it to initialize two members of "part". This avoids two used-uninitialized warnings.
* diffseq: reduce scope of variable 'best'.Bruno Haible2009-11-211-72/+78
|
* diffseq: remove useless assignment to "best"Jim Meyering2009-11-211-1/+0
| | | | | * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0" assignment. At that point "best" is already guaranteed to be zero.
* Add an "early abort" facility to diffseq.Ralf Wildenhues2008-09-141-4/+23
|
* Avoid gcc warnings due to misplaced 'const'.Bruno Haible2008-02-101-4/+4
|
* Add comments about required includes.Bruno Haible2008-02-031-2/+7
|
* Change copyright notice from GPLv2+ to GPLv3+.Bruno Haible2007-10-071-5/+4
|
* - Comment style.Bruno Haible2007-08-181-14/+16
| | | | | | | | | | | | | | | - 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.
* * MODULES.html.sh: Add diffseq.Paul Eggert2007-08-171-0/+460
| | | | | | * 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.
* Live on the diff-merge branch, not on HEAD.Bruno Haible2006-10-071-0/+0
|
* Difference of two sequences.Bruno Haible2006-10-071-0/+0