[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev Patch for pre.9
From: |
Doug Kaufman |
Subject: |
lynx-dev Patch for pre.9 |
Date: |
Sun, 11 Oct 1998 01:37:36 -0700 (PDT) |
While looking at the temp directory code, I found that DOS viewers
didn't work if the temp directory was given unix style. The mixed
forward and backward slashes confused the system. The patch makes
things work, but I have compilation warnings that I don't know how to
fix. I suspect that this is a simple fix for someone more familiar
with C. I hope someone can fix this and put it in the code. While I
was at it, I added the TMPDIR code for unix. The warning messages are:
LYMain.c: In function `main':
LYMain.c:688: warning: passing arg 2 of `HTSACopy' makes pointer \
from integer without a cast
LYMain.c:690: warning: passing arg 2 of `HTSACopy' makes pointer \
from integer without a cast
LYMain.c:692: warning: passing arg 2 of `HTSACopy' makes pointer \
from integer without a cast
I also found one potential problem with the DJGPP makefile for
libwww.a, in that it uses the 8+3 truncated name for a directory. This
is in the include directive that picks up tcp.h. I don't know if this
was related to Wayne's recent problem compiling, but it shouldn't hurt
to fix it.
The patch follows.
Doug
*** lynx2-8-1/src/LYMain.c Sat Oct 10 13:53:16 1998
--- lynx2-8-1/src/LYMain.c.new Sun Oct 11 00:47:12 1998
***************
*** 683,702 ****
StrAllocCat(lynx_version_putenv_command, LYNX_VERSION);
putenv(lynx_version_putenv_command);
#endif /* VMS */
- if ((cp = getenv("LYNX_TEMP_SPACE")) != NULL)
- StrAllocCopy(lynx_temp_space, cp);
- else
#if defined (DOSPATH) || defined (__EMX__)
! if ((cp = getenv("TEMP")) != NULL)
! StrAllocCopy(lynx_temp_space, cp);
else if ((cp = getenv("TMP")) != NULL)
! StrAllocCopy(lynx_temp_space, cp);
else
{
printf("You MUST define a valid TMP or TEMP area!\n");
exit(-1);
}
#else
StrAllocCopy(lynx_temp_space, TEMP_SPACE);
#endif
if ((cp = strchr(lynx_temp_space, '~'))) {
--- 683,706 ----
StrAllocCat(lynx_version_putenv_command, LYNX_VERSION);
putenv(lynx_version_putenv_command);
#endif /* VMS */
#if defined (DOSPATH) || defined (__EMX__)
! if ((cp = getenv("LYNX_TEMP_SPACE")) != NULL)
! StrAllocCopy(lynx_temp_space, HTDOS_name(cp));
! else if ((cp = getenv("TEMP")) != NULL)
! StrAllocCopy(lynx_temp_space, HTDOS_name(cp));
else if ((cp = getenv("TMP")) != NULL)
! StrAllocCopy(lynx_temp_space, HTDOS_name(cp));
else
{
printf("You MUST define a valid TMP or TEMP area!\n");
exit(-1);
}
#else
+ if ((cp = getenv("LYNX_TEMP_SPACE")) != NULL)
+ StrAllocCopy(lynx_temp_space, cp);
+ else if ((cp = getenv("TMPDIR")) != NULL)
+ StrAllocCopy(lynx_temp_space, cp);
+ else
StrAllocCopy(lynx_temp_space, TEMP_SPACE);
#endif
if ((cp = strchr(lynx_temp_space, '~'))) {
*** lynx2-8-1/WWW/Library/djgpp/makefile Fri Jul 24 20:01:04 1998
--- lynx2-8-1/WWW/Library/djgpp/makefile.new Sat Oct 10 21:48:54 1998
***************
*** 8,14 ****
#ASIS_MACH = hardware/os
CFLAGS = -O3 -DUSE_ZLIB -DDOSPATH -DNOUSERS -DDEBUG -DDISP_PARTIAL \
! -I../implemen \
-I../../../djgpp/tcplib/include \
-I../../../djgpp/tcplib/include/tcp \
-I../../../src \
--- 8,14 ----
#ASIS_MACH = hardware/os
CFLAGS = -O3 -DUSE_ZLIB -DDOSPATH -DNOUSERS -DDEBUG -DDISP_PARTIAL \
! -I../Implementation \
-I../../../djgpp/tcplib/include \
-I../../../djgpp/tcplib/include/tcp \
-I../../../src \
__
Doug Kaufman
Internet: address@hidden (preferred)
address@hidden
- lynx-dev Patch for pre.9,
Doug Kaufman <=