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

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

Re: multiple file processing doesn't work on sparc64


From: Aharon Robbins
Subject: Re: multiple file processing doesn't work on sparc64
Date: Thu, 28 Aug 2003 11:10:19 +0300

> Date: Wed, 27 Aug 2003 15:16:05 +0200
> From: Stepan Kasal <address@hidden>
> To: Aharon Robbins <address@hidden>
> Cc: address@hidden, address@hidden
>
> Hi,
>
> On Wed, Aug 27, 2003 at 03:41:03PM +0300, Aharon Robbins wrote:
> > No.  It's better to use long, which is at least 32 bits; int can
> > be 16 on some systems.  Repeat after me:
> > 
> >     No arbitrary limits.
>
> OK, so the current gawk is not able to process 2^16 _input_ files on such
> systems (see static int files in nextfile() in io.c), yet we think of a
> possibility that it may be fed by 2^16 _source_ files.
>
> The above rule would mean that we have to use "long" for most of int
> variables.
>
> OK, I'll try to adapt to this kind of thinking...
>
> Stepan

The `files' variable in io.c:nextfile() is actually a flag; it's not
used to count anything or as an index.  I've changed the code to
use TRUE/FALSE.

Arnold




reply via email to

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