bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: read buffer length problem in grep on windows


From: Paul Eggert
Subject: Re: read buffer length problem in grep on windows
Date: Mon, 08 Mar 2004 21:54:51 -0800
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (usg-unix-v)

>>      #if defined (_WIN32)
>>      # define INITIAL_BUFSIZE 16384  /* Initial buffer size, not counting
>> slop. */     
>>      #else
>>      # define INITIAL_BUFSIZE 32768  /* Initial buffer size, not counting
>> slop. */
>>      #endif

We should avoid ifdef hackery like that.

Better would be this:

#ifndef INITIAL_BUFSIZE
# define INITIAL_BUFSIZE 32768
#endif

and then the Microsoft Windows config.h can define INITIAL_BUFSIZE to
a value that avoids the Microsoft bug.




reply via email to

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