lynx-dev
[Top][All Lists]
Advanced

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

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


From: T.E.Dickey
Subject: Re: lynx-dev DOS patch for lynx2.8.1dev.14
Date: Tue, 9 Jun 1998 11:51:32 -0400 (EDT)

> 
> 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) 
I'll look at this again to see what I overlooked (sorry).
  
> 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 


-- 
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey

reply via email to

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