[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev Re: ... disabling TRACE
From: |
Webmaster Jim |
Subject: |
lynx-dev Re: ... disabling TRACE |
Date: |
Tue, 9 Feb 1999 06:31:57 -0500 |
On Fri, Feb 05, 1999 at 02:52:59AM -0600, Klaus Weide wrote:
> On Fri, 5 Feb 1999, Henry Nelson wrote:
> > > A lot of the CTRACE calls are still feeding english to the output
> > [...]
> > My opinion is that there is entirely too much CTRACE code in place.
> > It should all be able to be turned off with a compile time switch.
>
> At the top of HTUtils.h:
>
> #ifndef DEBUG
> #define DEBUG /* Noone ever turns this off as trace is too important */
> #endif /* Keep option for really small memory applications tho */
>
> By disabling that, all CTRACE output should be completely disabled.
> If the compiler optimizes away everything that now looks like
> if (0) fprintf(...),
> the binary may become a lot smaller. Has anyone tried this?
> (This alone wouldn't disable -trace and ^T and ';' though.)
I tried it this morning while waiting for tapes to finish. A copy of
282dev16 was about 10 percent smaller than 281rel. I will look more
closely at the configure logic to do something like:
--enable-debug (default: always include TRACE code)
--disable-debug (don't include TRACE code for smaller executable)
+++++++++++++++++++++++++++++++++
Marvin the Paranoid Android says:
Who is Noone?