bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fts: expose dirent.d_type data when possible


From: Bruno Haible
Subject: Re: fts: expose dirent.d_type data when possible
Date: Sat, 6 Dec 2008 13:51:54 +0100
User-agent: KMail/1.9.9

Hi Jim,

> > This is a constant you could compute at configure time, no?
> > See AC_COMPUTE_INT.
> 
> Sure, but why bother?  Since any decent compiler will optimize that
> function to "return 12;", I prefer to leave the function right next to
> the code that uses it.

GCC >= 4.0 optimizes away the array access, GCC < 4.0 doesn't.

You could also mark the function as 'inline'.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]