lynx-dev
[Top][All Lists]
Advanced

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

Re: [Lynx-dev] lynx2.8.7pre.5


From: Bela Lubkin
Subject: Re: [Lynx-dev] lynx2.8.7pre.5
Date: Thu, 11 Jun 2009 05:40:27 -0700

Thomas Dickey wrote:

> On Mon, 8 Jun 2009, Bela Lubkin wrote:

> > I would swallow the idiom:
> >
> >        if (LYBadHTML(me)) {
> >            char *msg = NULL;
> >
> >            HTSprintf0(&msg, printf-like-args);
> >            LYShowBadHTML(msg);
> >            FREE(msg);
> >        }
> >
> > into something like:
> >
> >        LYShowBadIfBad(me, printf-like-args);
> 
> I thought about that, but the current scheme is more efficient (since it
> doesn't have to evaluate and pass along a set of parameters whether or not 
> they're going to be used).

Then swallow it into:

           if (LYBadHTML(me)) {
               LYBadHTMLPrintf(printf-like-args);
           }

which could be further hidden inside a macro, or not...

>Bela<




reply via email to

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