lynx-dev
[Top][All Lists]
Advanced

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

LYNX-DEV News from the battlefront


From: afn06760
Subject: LYNX-DEV News from the battlefront
Date: Tue, 10 Mar 1998 20:38:16 GMT

I am writing this from the pre-5 development code lynx compiled under
cygwinb19/mingw32.  That means I used `sh configure' to set up the
makefiles and the mingw32 (pure Windows32) compiler specs to compile
lynx.

Along the way, I defined things like FNAMES_8_3, DOSPATH, _WINDOWS,
and made sure that dired was disabled.   Unfortunately, whoever was
maintaining src/LYUtils.c had made the code use a concatenation of
getpid() and a counter to generate a temporary file name for viewers
and editors.  That doesn't work well in Windows 95, where the pid
is a negative number, and some apps simply don't like dealing with it.

The best way to do this thing is to 
#ifdef FNAMES_8_3
    sprintf(namebuffer, "%s%u%u.txt",
     lynx_temp_space, (unsigned)getpid() % 100000,
     (counter-1) % 1000);
..
#else
..
#endif

This is being written from notepad using c:\windows\temp\898650.txt.

reply via email to

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