[Top][All Lists]

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

Re: [bug-gnulib] New GNULIB glob module?

From: Derek Price
Subject: Re: [bug-gnulib] New GNULIB glob module?
Date: Tue, 17 May 2005 14:02:06 -0400
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Paul Eggert wrote:

>Derek Price <derek@ximbiot.com> 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

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.



reply via email to

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