Re: New GNULIB glob module?
Derek Price <[email protected]> Tue, 17 May 2005 14:02:06 -0400
| Newsgroups | gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs |
|---|---|
| Organization | Get CVS Support from Ximbiot <http://ximbiot.com>! |
| Message-ID | <[email protected]> |
Paul Eggert wrote: >Derek Price <[email protected]> writes: > > > >>>This seems a bit brittle. Why not simply try to compile this program? >>> >>> #include <glob.h> >>> char a[_GNU_GLOB_INTERFACE_VERSION == 1 ? 1 : -1]; >>> >>> >>Because I like to avoid runtime tests if I can avoid it, since they >>cannot be used when cross-compiling. >> >> > >The code that I proposed does not have any runtime tests, since the >array is allocated statically. Tests like this are often used during >cross-compiling. > > Ah, I didn't realize the optimizer could be relied on for code like this. Fixed. Patch delayed until completion of today's email processing. Regards, Derek