lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev the use of CTRACE()


From: Thomas Dickey
Subject: Re: lynx-dev the use of CTRACE()
Date: Wed, 27 Nov 2002 07:14:11 -0500
User-agent: Mutt/1.3.27i

On Tue, Nov 26, 2002 at 11:54:22PM -0800, Carlton Anderson wrote:
> --- Thomas Dickey <address@hidden> wrote:
> > On Tue, Nov 26, 2002 at 12:13:31AM -0800, Carlton Anderson wrote:
> > > 
> > > If I add a module to Lynx, what are the
> > > best places to put CTRACE() messages?
> > > 
> > > At the beginning and end of every
> > > function? (shudder)
> > >
> >
> > I find it more useful
> > to leave enough context in the message that it's easy to grep for the
> > corresponding printf format.
> >  
> 
> Thanks. I see that there are four trace macros. Two
> of them are easy for me to figure out, but what are
> the purposes of these two macros?
>     CTRACE2()

CTRACE2 is used for extra traces (things like the color-style parsing).


>     CTRACE_SLEEP()

it slows lynx down while it's tracing - makes it sometimes easier to debug.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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