This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: patch for fortran warning fixes ...


>>>>> "Jeff" == Jeffrey A Law <law@cygnus.com> writes:

 Jeff>   In message <19981010135953.A20207@dot.cygnus.com>you write:
 >> On Sat, Oct 10, 1998 at 11:48:53AM -0400, Craig Burley wrote:
 >> > >	* fini.c (MAXNAMELEN): Undef it before defining.
 >> > 
 >> > Do you know offhand why this is needed?  Perhaps there's an innocuous
 >> > definition that precedes it ...
 >> 
 >> IIRC, MAXNAMELEN is used on some systems to represent the 
 >> maximum file name length.  Similar to MAXPATHLEN.
 Jeff> That's my memory too.

Irix sys/param.h quoth:

 * MAXNAMELEN is the length (including the terminating null) of
 * the longest permissible file (component) name.

 Jeff> It's not something we can just drop -- some systems still have
 Jeff> these limitations (HP's by default for exmaple).

I'm pretty sure the un/redefinition is harmless.  As there's doubt,
I'll do the experiment.  (It's not immediately obvious whence
sys/param.h is pulled in.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]