removed use of aitBool
This commit is contained in:
@@ -40,7 +40,7 @@ extern int main (int argc, const char **argv)
|
||||
continue;
|
||||
}
|
||||
if (sscanf(argv[i],"-t %lf", &executionTime)==1) {
|
||||
forever = aitFalse;
|
||||
forever = false;
|
||||
continue;
|
||||
}
|
||||
if (sscanf(argv[i],"-p %127s", pvPrefix)==1) {
|
||||
@@ -78,7 +78,7 @@ extern int main (int argc, const char **argv)
|
||||
//
|
||||
// loop here forever
|
||||
//
|
||||
while (aitTrue) {
|
||||
while (true) {
|
||||
fileDescriptorManager.process (1000.0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ class exFixedStringDestructor: public gddDestructor {
|
||||
//
|
||||
exPV::exPV (pvInfo &setup, bool preCreateFlag, bool scanOnIn) :
|
||||
info (setup),
|
||||
interest (aitFalse),
|
||||
interest (false),
|
||||
preCreate (preCreateFlag),
|
||||
scanOn (scanOnIn)
|
||||
{
|
||||
@@ -94,7 +94,7 @@ caStatus exPV::update(gdd &valueIn)
|
||||
//
|
||||
// post a value change event
|
||||
//
|
||||
if (this->interest==aitTrue && pCAS!=NULL) {
|
||||
if (this->interest==true && pCAS!=NULL) {
|
||||
casEventMask select(pCAS->valueEventMask()|pCAS->logEventMask());
|
||||
this->postEvent (select, *this->pValue);
|
||||
}
|
||||
@@ -161,7 +161,7 @@ caStatus exPV::interestRegister()
|
||||
return S_casApp_success;
|
||||
}
|
||||
|
||||
this->interest = aitTrue;
|
||||
this->interest = true;
|
||||
|
||||
if (!this->scanOn) {
|
||||
return S_casApp_success;
|
||||
@@ -193,7 +193,7 @@ caStatus exPV::interestRegister()
|
||||
//
|
||||
void exPV::interestDelete()
|
||||
{
|
||||
this->interest = aitFalse;
|
||||
this->interest = false;
|
||||
if (this->pScanTimer && this->scanOn) {
|
||||
this->pScanTimer->reschedule(this->getScanPeriod());
|
||||
}
|
||||
@@ -293,7 +293,7 @@ caStatus exPV::getUnits(gdd &units)
|
||||
//
|
||||
caStatus exPV::getEnums (gdd &enums)
|
||||
{
|
||||
unsigned nStr = 2;
|
||||
static const unsigned nStr = 2;
|
||||
aitFixedString *str;
|
||||
exFixedStringDestructor *pDes;
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ exServer::exServer(const char * const pvPrefix, unsigned aliasCount, bool scanOn
|
||||
// pre-create all of the simple PVs that this server will export
|
||||
//
|
||||
for (pPVI = exServer::pvList; pPVI < pPVAfter; pPVI++) {
|
||||
pPV = pPVI->createPV (*this, aitTrue, scanOnIn);
|
||||
pPV = pPVI->createPV (*this, true, scanOnIn);
|
||||
if (!pPV) {
|
||||
fprintf(stderr, "Unable to create new PV \"%s\"\n",
|
||||
pPVI->getName());
|
||||
@@ -210,7 +210,7 @@ pvAttachReturn exServer::pvAttach
|
||||
// If this is a synchronous PV create the PV now
|
||||
//
|
||||
if (pvi.getIOType() == excasIoSync) {
|
||||
pPV = pvi.createPV(*this, aitFalse, this->scanOn);
|
||||
pPV = pvi.createPV(*this, false, this->scanOn);
|
||||
if (pPV) {
|
||||
return *pPV;
|
||||
}
|
||||
@@ -348,7 +348,7 @@ void exAsyncCreateIO::expire()
|
||||
{
|
||||
exPV *pPV;
|
||||
|
||||
pPV = this->pvi.createPV(this->cas, aitFalse, this->scanOn);
|
||||
pPV = this->pvi.createPV(this->cas, false, this->scanOn);
|
||||
if (pPV) {
|
||||
this->postIOCompletion (pvAttachReturn(*pPV));
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ extern int main (int argc, const char **argv)
|
||||
unsigned aliasCount = 1u;
|
||||
unsigned scanOnAsUnsignedInt = true;
|
||||
bool scanOn;
|
||||
bool forever = aitTrue;
|
||||
bool forever = true;
|
||||
int i;
|
||||
|
||||
for (i=1; i<argc; i++) {
|
||||
@@ -24,7 +24,7 @@ extern int main (int argc, const char **argv)
|
||||
continue;
|
||||
}
|
||||
if (sscanf(argv[i],"-t %lf", &executionTime)==1) {
|
||||
forever = aitFalse;
|
||||
forever = false;
|
||||
continue;
|
||||
}
|
||||
if (sscanf(argv[i],"-p %127s", pvPrefix)==1) {
|
||||
@@ -62,7 +62,7 @@ extern int main (int argc, const char **argv)
|
||||
//
|
||||
// loop here forever
|
||||
//
|
||||
while (aitTrue) {
|
||||
while (true) {
|
||||
fileDescriptorManager.process(1000.0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user