lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev DOS patch for lynx2.8.1dev.14


From: Doug Kaufman
Subject: lynx-dev DOS patch for lynx2.8.1dev.14
Date: Tue, 9 Jun 1998 07:41:40 -0700 (PDT)

Although LYOpenScratch() was changed between  dev.13 and dev.14 to work
for 8+3 filename systems, it still doesn't work. The following excerpt
from my trace file shows the filename constructed:

-> 'f:/tes28d14.sla/lynx2-8/lynxbm.htm44147.htm'
LYOpenScratch(f:/tes28d14.sla/lynx2-8/lynxbm.htm44147.htm)

The following patch again is probably not the optimal fix, but it makes
the DOS port work for now. LYRemoveTemp tries to remove the scratch file
at exit the number of times that it has been used, however. This doesn't
seem to cause any problems, but I don't understand the behavior. Does
this happen with other operating systems?
                           Doug

*** lynx2-8/src/LYUtils.c       Thu Jun  4 09:19:50 1998
--- lynx2-8/src/LYUtils.c.new   Sat Jun  6 17:04:32 1998
***************
*** 5577,5583 ****
--- 5577,5587 ----
      FILE *fp;
      LY_TEMP *p;
  
+ #ifdef FNAMES_8_3
+     sprintf(result, "%s%s%u%s", lynx_temp_space, "SCR", getpid(), 
HTML_SUFFIX);
+ #else
      (void) fmt_tempname(result, prefix, 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

reply via email to

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