lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV Lynx version 2.7 compilation problem (SCO Unix)


From: Foteos Macrides
Subject: Re: LYNX-DEV Lynx version 2.7 compilation problem (SCO Unix)
Date: Sun, 23 Feb 1997 11:38:48 -0500 (EST)

"T.E.Dickey" <address@hidden> wrote:
>>      It the meantime, nothing will work short of finding all
>> the remove() calls in the LYFoo and libwww modules, and replacing
>> them with unlink().   No macros, as Wayne suggested to you, will
>> work, because the problem lies in the ultimate translation to
>> invoke unlink() on Unix.
>> 
>>      What I did when the problem was common was to use:
>> 
>> #ifdef SCO
>>      ... unlink(...) ...
>> #else
>>      ... remove(...) ...
>> #endif /* SCO */
>it's in my configure script (I'd thought that was for VMS, which has
>no unlink(), but it should work for *NIX systems as well.

        The objective, at least during the years when I was coordinating
Lynx development, has been to use platform-independent, portable C code
as consistently as possible.  remove() was long ago designated as the
portable function name, so Lynx uses that instead of the Unix unlink()
or VMS delete().   Similarly, Lynx uses strchr() instead of index(),
memcpy() instead of bcopy(), memset() instead of bzero(), etc., etc.

        That's why, aside from memory requirements, and the TCPIP and file
system issues, it in theory should be able to compile and actually work on
non-Unix PC systems.

                                Fote

=========================================================================
 Foteos Macrides            Worcester Foundation for Biomedical Research
 address@hidden         222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

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