Skip to content

Commit 55cddb1

Browse files
committed
symbol collided
1 parent 7dd05b6 commit 55cddb1

6 files changed

Lines changed: 22 additions & 22 deletions

File tree

include/hlsyn.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
#include "flavor.h"
5151
#include "hlsynapi.h"
5252

53-
#define DEBUG
54-
#undef DEBUG
53+
//#define DEBUG
54+
//#undef DEBUG
5555

5656
#define WARNINGS
5757
#undef WARNINGS

src/brent.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#pragma arm section code="BRENTCODE", rwdata="BRENTRWDATA", rodata="BRENTRODATA", zidata="BRENTDATA"
2424
#endif
2525

26-
#if (defined(DEBUG) && !defined(UNDER_CE)) || (defined(WARNINGS) && !defined(UNDER_CE))
26+
#if (defined(DEBUG_OLD) && !defined(UNDER_CE)) || (defined(WARNINGS) && !defined(UNDER_CE))
2727
#include <stdio.h> /* for printf on error */
2828
#include <stdlib.h> /* for exit on error */
2929
#include <process.h> /* for exit on error */
@@ -42,7 +42,7 @@ BrentBracket(BrentFunctionType* pF, void* pOtherArgs,
4242
short j;
4343
float f1,f2;
4444

45-
#ifdef DEBUG
45+
#ifdef DEBUG_OLD
4646
if( fabs(*x1 - *x2) < FLOAT_EPS ){
4747
(void) printf("Bad initial range in BrentBracket()\n");
4848
exit(1);
@@ -84,7 +84,7 @@ Brent(BrentFunctionType* pF, void* pOtherArgs,
8484
float fb=(*pF)(b,pOtherArgs);
8585
float fc,p,q,r,s,tol1,xm;
8686

87-
#ifdef DEBUG
87+
#ifdef DEBUG_OLD
8888
if(fb*fa > 0.0f){
8989
(void) printf(" Root must be bracketed in Brent.");
9090
exit(1);
@@ -168,7 +168,7 @@ Brent(BrentFunctionType* pF, void* pOtherArgs,
168168

169169
fb=(*pF)(b,pOtherArgs);
170170
}
171-
#ifdef DEBUG
171+
#ifdef DEBUG_OLD
172172
(void) printf("Maximum number of iterations exceeded in Brent.");
173173
exit(1);
174174
#endif

src/circuit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#pragma arm section code="CIRCODE", rwdata="CIRRWDATA", rodata="CIRRODATA", zidata="CIRDATA"
4646
#endif
4747

48-
#if (defined(DEBUG) && !defined(UNDER_CE)) || (defined(WARNINGS) && !defined(UNDER_CE))
48+
#if (defined(DEBUG_OLD) && !defined(UNDER_CE)) || (defined(WARNINGS) && !defined(UNDER_CE))
4949

5050
#include <stdio.h> /* for printf on error */
5151
#include <stdlib.h> /* for exit on error */
@@ -272,7 +272,7 @@ if( state->Pm > 100.0f)
272272
&MinGuess, &MaxGuess, BRENT_BRACKET_DEFAULT_FACTOR,
273273
BRENT_BRACKET_DEFAULT_NTRY);
274274
if(!BracketReturn){
275-
#ifdef DEBUG
275+
#ifdef DEBUG_OLD
276276
printf("Unable to bracket root of Pm Root Function\n");
277277
exit(1);
278278
#endif

src/hlframe.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
#include "flavor.h"
6868

69-
#if (defined(DEBUG) && !defined(UNDER_CE)) || (defined(WARNINGS) && !defined(UNDER_CE))
69+
#if (defined(DEBUG_OLD) && !defined(UNDER_CE)) || (defined(WARNINGS) && !defined(UNDER_CE))
7070
#include <stdio.h> /* for printf on error */
7171
#include <stdlib.h> /* for exit on error */
7272
#include <process.h> /* for exit on error */
@@ -327,7 +327,7 @@ FricativeFilters(HLFrame *frame,HLSpeaker *speaker,HLState *state,
327327

328328
else
329329
{
330-
#ifdef DEBUG
330+
#ifdef DEBUG_OLD
331331
if(frame->f2 > (speaker->PalVelar_f2Offset
332332
+ speaker->PalVelar_f2Overf3_Slope * frame->f3))
333333
{
@@ -357,7 +357,7 @@ FricativeFilters(HLFrame *frame,HLSpeaker *speaker,HLState *state,
357357
llframe->NA3F = (short)speaker->LateralA3F;
358358
break;
359359

360-
#ifdef DEBUG
360+
#ifdef DEBUG_OLD
361361
default:
362362
printf(" Should not reach default (FricativeGains)");
363363
exit(1);

src/inithl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
#include "flavor.h"
4646

47-
#if (defined(DEBUG) && !defined(UNDER_CE)) || (defined(WARNINGS) && !defined(UNDER_CE))
47+
#if (defined(DEBUG_OLD) && !defined(UNDER_CE)) || (defined(WARNINGS) && !defined(UNDER_CE))
4848

4949
#include <stdlib.h> /* for exit on error */
5050
#include <process.h> /* for exit on error */
@@ -652,12 +652,12 @@ Atf3Setf2Range(HLSpeaker *speaker,short f3,short f2Min,short f2Max,
652652
if(AB>0)
653653
ALVEOLAR(f2,f3Scaled).AB=AB;
654654
}
655-
#ifdef DEBUG
655+
#ifdef DEBUG_OLD
656656
else{
657657
printf("Try to write out of alveolar range.");
658658
exit(1);
659659
}
660660
#endif
661661
}
662662
}
663-
#endif
663+
#endif

src/nasalf1x.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
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

Comments
 (0)