Simon Law wrote:

> On 30 Mar 2002, Ed Sweetman wrote:
> 
> 
>>Ok, fixed it to use PATH_MAX and FILENAME_MAX. 
>>also fixed a stupid mistake i made by not catting the trailing / to
>>directories correctly.   
>>
> 
>       Guys, please don't do this.  You'll just make it harder for
> yourself on different systems.  Remember, on some systems like GNU,
> there is no maximum path length (paths can be infinitely long).  On 
> other files systems, the maximum path length might be larger or smaller
> than the Linux specific one that you've defined.
> 
>       Use a String to go and store the path length.  Then you don't
> have to worry if the name gets larger or smaller.


I think they actually switched to using the POSIX constant, not one they 
defined.  I suspect that this is defined on in the Windows environment too.

In spite of this comment, I agree with you.  Just use a String, and be done 
with it.  Use Strings and have no worries Mate!

But, one still might want to define a maximum directory depth anyway just to 
keep Windows emulation of Symlinks (for example) from making you crazy in 
some goofy environments...

        -- Alan Robertson
           [EMAIL PROTECTED]

_______________________________________________
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/freeamp-dev

Reply via email to