Re: [bug-gnulib] [bug-gnulib] fts portability fix for hosts with unusual
From:
Bruno Haible
Subject:
Re: [bug-gnulib] [bug-gnulib] fts portability fix for hosts with unusual pointer semantics
Date:
Tue, 10 May 2005 13:54:17 +0200
User-agent:
KMail/1.5
James Youngman wrote:
> Paul> +static int
> Paul> +fts_compar (void const *a, void const *b)
> Paul> +{
> Paul> /* ... */
> Paul> + return pa[0]->fts_fts->fts_compar (pa, pb);
> Paul> +}
> ... compilers are likely to be able to inline the actual
> subroutine call away in any case.
How should this be possible? The common C compilers are ahead-of-time
compilers, and neither the call from qsort to fts_compar nor the call
from fts_compar to the user-provided function can be inlined.
Bruno