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<


_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to