lynx-dev
[Top][All Lists]
Advanced

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

Re: [Lynx-dev] LYMain.c fails to compile if USE_PERSISTENT_COOKIES is un


From: Juan Manuel Guerrero
Subject: Re: [Lynx-dev] LYMain.c fails to compile if USE_PERSISTENT_COOKIES is undefined.
Date: Sat, 14 Jul 2018 16:29:16 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.13) Gecko/20101206 SUSE/3.1.7 Thunderbird/3.1.7

Am 11.07.2018 22:17, schrieb Thorsten Glaser:
[snip]
Also, consider something like this:

#ifdef USE_PERSISTENT_COOKIES
    if (LYCookieFile != 0&&  LYCookieSaveFile != 0)
#else
    if (0)
#endif
      {
[snip]

If we assume that "if (0)" is the right choice instead of omitting the 
if-statement,
then it has the consecuence that the if-block is not executed at all in the 
case that
the macro USE_PERSISTENT_COOKIES is undefined.  In that case it would be 
clearner to
enclose the complete if-block with a #idef USE_PERSISTENT_COOKIES / #endif pair 
and
to remove all those occurrence of #idef USE_PERSISTENT_COOKIES / #endif pairs 
inside
the if-block.  But in the end it is the maintainer must decide how he wants to 
fix
this issue.  I have solved the problem to fit my own purposes.

Regards,
Juan M. Guerrero



reply via email to

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