lib/diffseq.h


Log

Author Commit Date CI Message
Bruno Haible fc4b90fa 2010-04-20T00:02:14 Fix typo in comment.
Bruno Haible e768d427 2010-04-19T00:01:18 diffseq: Accommodate use-case with abstract arrays.
Jim Meyering b2e2010c 2010-01-01T10:31:12 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
Bruno Haible 441aa304 2009-12-10T20:28:30 Use spaces for indentation, not tabs.
Bruno Haible 4e765f32 2009-11-22T19:07:34 Add comment.
Jim Meyering 32be9f34 2009-11-22T09:01:07 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.
Bruno Haible 833e6a3e 2009-11-21T14:37:46 diffseq: reduce scope of variable 'best'.
Jim Meyering a823652c 2009-11-21T13:49:54 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.
Ralf Wildenhues 044cf1cc 2008-09-14T18:34:59 Add an "early abort" facility to diffseq.
Bruno Haible 506bbd42 2008-02-10T19:22:48 Avoid gcc warnings due to misplaced 'const'.
Bruno Haible 1fe8736c 2008-02-03T21:06:40 Add comments about required includes.
Bruno Haible 57fdfd3f 2007-10-07T19:14:58 Change copyright notice from GPLv2+ to GPLv3+.
Bruno Haible 0023b193 2007-08-18T10:53:41 - 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.
Paul Eggert a29749fa 2007-08-17T23:29:23 * 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.
Bruno Haible 12e04873 2006-10-07T15:21:52 Live on the diff-merge branch, not on HEAD.
Bruno Haible bc45ccc2 2006-10-07T15:20:20 Difference of two sequences.