lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV composite patch update and changes


From: Foteos Macrides
Subject: Re: LYNX-DEV composite patch update and changes
Date: Sat, 23 Nov 1996 20:28:20 -0500 (EST)

"Hiram Lester, Jr." <address@hidden> wrote:
>On Sat, 23 Nov 1996, Hiram Lester, Jr. wrote:
>
>> Thanks. :)  I was trying to think of some way to do that, and kept drawing
>> a blank due to the command line options being processed before the
>> .lynxrc.  The closest thing I could come up with (just before I went to
>> bed this morning {grin}) was to create another variable (could be a local
>> one, thank goodness) to maintain the state of the -popup flag and then
>> process it AFTER the .lynxrc.  I was too tired to keep working on it at
>> the time. :)  I'll look at the mods and get them up on my site ASAP.
>
>Well, it looks like you used the exact method I was thinking of. :)
>
>> BTW, I hate global variables, and I was forced to add another one to do
>> this thing. :( 
>
>BTW, is there a particular reason why you used a global variable for
>LYUseDefNoSelPop when a local variable would have sufficed?  I know I've
>heard you gripe about Lynx's non-reentrancy. :)

        Many of the configuration and switch variables can be globals
because main() and the functions for reading the cfg and rc files are
called only once, and modify then according to priority rules.  The
important thing is to declare them in LYMain.c and LYGlobalDefs.h,
and keep them grouped together, so you can find them and make sure you
are not re-inventing wheels in conjunction with making enhancements
or adding new features.  LYUseDefNoSelPop could have been passed as
an argument between main() and parse_arg(), or been made a PRIVATE
global in LYMain.c, but since we now have a PUBLIC select_popup
global, I declared the whole set of variables PUBLIC and grouped
them together in LYMain.c and LYGlobalDefs.h.

                                Fote

=========================================================================
 Foteos Macrides            Worcester Foundation for Biomedical Research
 address@hidden         222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

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