Re: if(0)?

Scott Prahl <[email protected]> Sun, 11 Nov 2007 14:18:16 -0800
Newsgroups gmane.comp.tex.latex.latex2rtf.devel
Message-ID <[email protected]>
> I'm trying to track down a 'Nesting too deep' error on a file that
> works fine for regular LaTeX. I notice that the PushSource function in
> parser.c (line 151) contains two if(0){ ... } constructs. Does this
> serve any purpose? This code will never be executed under any
> circumstances, so could it be removed?

It is there for debugging purposes.  I usually use the if(0){} construct
when some variable is used by the contents.  This eliminates compiler
warnings.  Usually, the formatting is sufficiently painful that I leave
the potential code in so that it does not need to get rewritten.

So let's leave if(0) in.

Scott

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/