Hi Arnold, > Please revert this, as it breaks compilation in gawk.
This patch should do it (keeping the optimized variant of the 3-way comparison). Btw, how did you notice the breakage so rapidly? Are you scanning the commits or the mails, or do you have a continuous integration? 2020-07-24 Bruno Haible <[email protected]> dfa: Revert breaking gawk. Reported by Arnold Robbins <[email protected]>. * lib/dfa.c (compare): Don't reference the _GL_CMP macro. diff --git a/lib/dfa.c b/lib/dfa.c index 1d2d404..e79d882 100644 --- a/lib/dfa.c +++ b/lib/dfa.c @@ -2466,7 +2466,7 @@ static int compare (const void *a, const void *b) { position const *p = a, *q = b; - return _GL_CMP (p->index, q->index); + return (p->index > q->index) - (p->index < q->index); } static void
