On Tue, Nov 26, 2002 at 11:54:22PM -0800, Carlton Anderson wrote:
> --- Thomas Dickey <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to