4646
4747#include "flavor.h"
4848
49- #if (defined(DEBUG ) && !defined(UNDER_CE )) || (defined(WARNINGS ) && !defined(UNDER_CE ))
49+ #if (defined(DEBUG_OLD ) && !defined(UNDER_CE )) || (defined(WARNINGS ) && !defined(UNDER_CE ))
5050
5151#include <stdio.h> /* for printf on error */
5252#include <stdlib.h> /* for exit on error */
@@ -158,7 +158,7 @@ NasalZero(HLFrame *frame,HLSpeaker *speaker,HLState *state,
158158 * pFNZ = fn * (float ) DTsqrt ((1.f + MmOverMn )
159159 / (1.f + MmOverMn * fn * fn /(fm * fm )) );
160160
161- #ifdef DEBUG
161+ #ifdef DEBUG_OLD
162162 if (!( (fn > * pFNZ && fm < * pFNZ )
163163 || (fn < * pFNZ && fm > * pFNZ ))){
164164
@@ -251,7 +251,7 @@ InterpolateTable(TableRow TheTable[],short TableLength,
251251 }
252252
253253 if (Column2Set == NO ){
254- #ifdef DEBUG
254+ #ifdef DEBUG_OLD
255255 printf (" InterpolateTable finished without a value." );
256256 exit (1 );
257257#endif
@@ -266,7 +266,7 @@ LinearInterpolate(float x,float x1,float y1,float x2,float y2)
266266{
267267 float Slope ,yIntercept ;
268268
269- #ifdef DEBUG
269+ #ifdef DEBUG_OLD
270270 if ( (x2 - x1 ) == 0.0f ){
271271 printf (" Cannot linear interpolate equal x values." );
272272 exit (1 );
@@ -356,7 +356,7 @@ NasalFirstFormant(HLFrame *frame,HLSpeaker *speaker,HLState *state,
356356 if ( fabs (Qf1c + Qfno ) < FLOAT_EPS )
357357 {
358358 * pf1x = (state -> f1c + speaker -> fno ) / 2.0f ; /* a guess */
359- #ifdef DEBUG
359+ #ifdef DEBUG_OLD
360360 printf ("Zero division in NasalFirstFormant.\n" );
361361 exit (1 );
362362#endif
@@ -415,7 +415,7 @@ NasalPole(HLFrame *frame,HLSpeaker *speaker,HLState *state,
415415 else
416416 FNPvars .fp = (float )(frame -> f2 - 100.f );
417417
418- #ifdef DEBUG
418+ #ifdef DEBUG_OLD
419419 if (FNPvars .fp == FNPvars .fn ){
420420 printf ("fp must not equal fn in NasalPole." );
421421 exit (1 );
@@ -444,7 +444,7 @@ NasalPole(HLFrame *frame,HLSpeaker *speaker,HLState *state,
444444 (float )FNP_TOL ,ITMAX ,(float )EPS );
445445 else {
446446 * pFNP = 0.5f * (FNPvars .fp + FNPvars .fn ); /* rough guess */
447- #ifdef DEBUG
447+ #ifdef DEBUG_OLD
448448 printf ("Unable to bracket nasal pole" );
449449 exit (1 );
450450#endif
@@ -491,7 +491,7 @@ NOT_FINITE_BRACKETED if not.
491491 short i ;
492492
493493
494- #ifdef DEBUG
494+ #ifdef DEBUG_OLD
495495 if (FNPvars -> fn >=FNPvars -> fp ){
496496 printf ("fn must be less than fp in FiniteBracketFNP" );
497497 exit (1 );
0 commit comments