lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev Lynx Litter on VMS


From: dickey
Subject: Re: lynx-dev Lynx Litter on VMS
Date: Wed, 14 Oct 1998 11:26:53 -0400 (EDT)

> > > +     StrAllocCopy(VMScookie_file, cookie_file);  
> > > +     StrAllocCat(VMScookie_file, ";1");  
> > > +     rename(cookie_file, VMScookie_file);   
> > > + #endif /* VMS */  
> >  
> > The last couple of lines are redundant and error-prone.  If the remove loop 
> > fails due to permissions, you'll end up renaming the most recent file to a 
> > lower version than the possible older file.  So I'd simply omit that. 
> >  
> > (I'll add the first part to pre.10, since I don't see anything else 
> > wrong) 
>  
> Ah, okay. That sounds good to me.  
>  
> In that case you might want to have a look at the similar code for the  
> .lynxrc file, I grabbed it and barely modified it. 

I did that - if I didn't miss a #include somewhere, it should work properly.
(I moved the logic into a new function HTVMS_purge, added a HTVMS_rename,
and removed some of the clutter)

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

reply via email to

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