Update of /cvsroot/scopeapp/scopeapp/src
In directory usw-pr-cvs1:/tmp/cvs-serv16311
Modified Files:
TestSampler.h TestSampler.m
Log Message:
Fix boolean confusion
Index: TestSampler.h
===================================================================
RCS file: /cvsroot/scopeapp/scopeapp/src/TestSampler.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TestSampler.h 20 Jul 2002 12:23:13 -0000 1.5
--- TestSampler.h 21 Jul 2002 11:25:30 -0000 1.6
***************
*** 29,36 ****
#import "InputSampler.h"
- // Mac OS X defines true intrinsically, GNUstep does not
- #define true YES
- #define false NO
-
@interface TestSampler : NSObject <InputSampler> {
// InputSampler data
--- 29,32 ----
***************
*** 80,84 ****
-(unsigned long) blockSize;
! // return true if the sampler is currently sampling data
-(BOOL) isSampling;
--- 76,80 ----
-(unsigned long) blockSize;
! // return YES if the sampler is currently sampling data
-(BOOL) isSampling;
Index: TestSampler.m
===================================================================
RCS file: /cvsroot/scopeapp/scopeapp/src/TestSampler.m,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TestSampler.m 18 Jul 2002 07:36:00 -0000 1.5
--- TestSampler.m 21 Jul 2002 11:25:31 -0000 1.6
***************
*** 142,146 ****
}
! // return true if the sampler is currently sampling data
-(BOOL) isSampling
{
--- 142,146 ----
}
! // return YES if the sampler is currently sampling data
-(BOOL) isSampling
{
***************
*** 170,174 ****
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
! while(true)
{
if(![myStateLock tryLockWhenCondition: kTestSamplerRunning]) { break; }
--- 170,174 ----
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
! while(YES)
{
if(![myStateLock tryLockWhenCondition: kTestSamplerRunning]) { break; }
|