[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev Another patch for DOS lynx2.8.1dev.13
From: |
Doug Kaufman |
Subject: |
lynx-dev Another patch for DOS lynx2.8.1dev.13 |
Date: |
Wed, 3 Jun 1998 00:25:02 -0700 (PDT) |
Removing links from the bookmarks in lynx doesn't work in DOS now
because LYOpenScratch in LYUtils.c creates illegal files under the
8+3 naming conventions (more than 8+3 characters, and having at least
2 dots). The following patch is probably not the best solution, but
it seems to work on initial testing. The first part of the patch was
previously submitted as part of my gigantic patch for DOS. The second
part is the new patch for LYOpenScratch.
Doug
*** lynx2-8/src/LYUtils.c Sat May 23 19:16:00 1998
--- lynx2-8/src/LYUtils.c.new Tue Jun 2 23:55:10 1998
***************
*** 16,21 ****
--- 16,24 ----
#ifdef DOSPATH
#include <HTDOS.h>
#endif
+ #ifdef DJGPP_KEYHANDLER
+ #include <bios.h>
+ #endif /* DJGPP_KEYHANDLER */
#ifdef DISP_PARTIAL
#include <LYKeymap.h>
#endif /* DISP_PARTIAL */
***************
*** 2059,2065 ****
--- 2062,2072 ----
Note that this isn't taking possible SOCKSification
and the socks_flag into account, and may fail on the
slang library's select() when SOCKSified. - FM **/
+ #ifdef DJGPP_KEYHANDLER
+ if (0 == _bios_keybrd(_NKEYBRD_READY))
+ #else
if (0 == SLang_input_pending(0))
+ #endif /* DJGPP_KEYHANDLER */
return(FALSE);
#else /* Unix curses: */
***************
*** 5558,5564 ****
--- 5565,5575 ----
FILE *fp;
LY_TEMP *p;
+ #ifdef FNAMES_8_3
+ sprintf(result, "%s%u%s", "SCR", getpid(), HTML_SUFFIX);
+ #else
sprintf(result, "%s-%u.%s", prefix, getpid(), HTML_SUFFIX);
+ #endif /* FNAMES_8_3 */
if ((fp = LYNewTxtFile (result)) != 0) {
if ((p = (LY_TEMP *)calloc(1, sizeof(LY_TEMP))) != 0) {
p->next = ly_temp;
__
Doug Kaufman
Internet: address@hidden (preferred)
address@hidden
- lynx-dev Another patch for DOS lynx2.8.1dev.13,
Doug Kaufman <=