Merge ~dirk.zimoch/epics-base:CleanupWhitespace into ~epics-core/epics-base/+git/epics-base:7.0

Proposed by Dirk Zimoch
Status: Merged
Merge reported by: mdavidsaver
Merged at revision: 2b1ce8cb2440947392a3f97ffee998ec8b3258dd
Proposed branch: ~dirk.zimoch/epics-base:CleanupWhitespace
Merge into: ~epics-core/epics-base/+git/epics-base:7.0
Diff against target: 74188 lines (+21141/-21141)
640 files modified
modules/ca/src/client/CASG.cpp (+6/-6)
modules/ca/src/client/SearchDest.h (+2/-2)
modules/ca/src/client/access.cpp (+235/-235)
modules/ca/src/client/acctst.c (+239/-239)
modules/ca/src/client/acctstMain.c (+11/-11)
modules/ca/src/client/acctstRegister.cpp (+1/-1)
modules/ca/src/client/addrList.h (+5/-5)
modules/ca/src/client/autoPtrFreeList.h (+10/-10)
modules/ca/src/client/autoPtrRecycle.h (+13/-13)
modules/ca/src/client/baseNMIU.cpp (+2/-2)
modules/ca/src/client/bhe.cpp (+36/-36)
modules/ca/src/client/bhe.h (+17/-17)
modules/ca/src/client/caConnTest.cpp (+19/-19)
modules/ca/src/client/caConnTestMain.cpp (+1/-1)
modules/ca/src/client/caDiagnostics.h (+3/-3)
modules/ca/src/client/caEventRate.cpp (+15/-15)
modules/ca/src/client/caEventRateMain.cpp (+1/-1)
modules/ca/src/client/caProto.h (+14/-14)
modules/ca/src/client/caRepeater.cpp (+1/-1)
modules/ca/src/client/caServerID.h (+4/-4)
modules/ca/src/client/ca_client_context.cpp (+3/-3)
modules/ca/src/client/cac.cpp (+1/-1)
modules/ca/src/client/cac.h (+4/-4)
modules/ca/src/client/cacChannel.cpp (+18/-18)
modules/ca/src/client/cacChannelNotify.cpp (+10/-10)
modules/ca/src/client/cacContextNotify.cpp (+4/-4)
modules/ca/src/client/cacIO.h (+5/-5)
modules/ca/src/client/cacReadNotify.cpp (+2/-2)
modules/ca/src/client/cacStateNotify.cpp (+2/-2)
modules/ca/src/client/cacWriteNotify.cpp (+2/-2)
modules/ca/src/client/cadef.h (+88/-88)
modules/ca/src/client/caerr.h (+6/-6)
modules/ca/src/client/caeventmask.h (+4/-4)
modules/ca/src/client/casw.cpp (+20/-20)
modules/ca/src/client/catime.c (+44/-44)
modules/ca/src/client/catimeMain.c (+1/-1)
modules/ca/src/client/comBuf.cpp (+11/-11)
modules/ca/src/client/comBuf.h (+21/-21)
modules/ca/src/client/comQueRecv.cpp (+6/-6)
modules/ca/src/client/comQueRecv.h (+12/-12)
modules/ca/src/client/comQueSend.cpp (+58/-58)
modules/ca/src/client/comQueSend.h (+49/-49)
modules/ca/src/client/convert.cpp (+92/-92)
modules/ca/src/client/db_access.h (+426/-426)
modules/ca/src/client/disconnectGovernorTimer.cpp (+10/-10)
modules/ca/src/client/disconnectGovernorTimer.h (+16/-16)
modules/ca/src/client/evtime.c (+39/-39)
modules/ca/src/client/getCallback.cpp (+11/-11)
modules/ca/src/client/getCopy.cpp (+21/-21)
modules/ca/src/client/hostNameCache.cpp (+10/-10)
modules/ca/src/client/hostNameCache.h (+10/-10)
modules/ca/src/client/inetAddrID.h (+3/-3)
modules/ca/src/client/iocinf.cpp (+23/-23)
modules/ca/src/client/iocinf.h (+15/-15)
modules/ca/src/client/localHostName.cpp (+4/-4)
modules/ca/src/client/localHostName.h (+2/-2)
modules/ca/src/client/msgForMultiplyDefinedPV.cpp (+14/-14)
modules/ca/src/client/msgForMultiplyDefinedPV.h (+12/-12)
modules/ca/src/client/nciu.cpp (+3/-3)
modules/ca/src/client/nciu.h (+5/-5)
modules/ca/src/client/netIO.h (+78/-78)
modules/ca/src/client/netReadNotifyIO.cpp (+16/-16)
modules/ca/src/client/netSubscription.cpp (+27/-27)
modules/ca/src/client/netWriteNotifyIO.cpp (+16/-16)
modules/ca/src/client/net_convert.h (+5/-5)
modules/ca/src/client/netiiu.cpp (+22/-22)
modules/ca/src/client/netiiu.h (+36/-36)
modules/ca/src/client/noopiiu.cpp (+34/-34)
modules/ca/src/client/noopiiu.h (+38/-38)
modules/ca/src/client/oldAccess.h (+13/-13)
modules/ca/src/client/oldChannelNotify.cpp (+3/-3)
modules/ca/src/client/oldSubscription.cpp (+8/-8)
modules/ca/src/client/putCallback.cpp (+13/-13)
modules/ca/src/client/repeater.cpp (+28/-28)
modules/ca/src/client/repeaterClient.h (+11/-11)
modules/ca/src/client/repeaterSubscribeTimer.cpp (+7/-7)
modules/ca/src/client/repeaterSubscribeTimer.h (+19/-19)
modules/ca/src/client/searchTimer.cpp (+64/-64)
modules/ca/src/client/searchTimer.h (+26/-26)
modules/ca/src/client/sgAutoPtr.h (+13/-13)
modules/ca/src/client/syncGroup.h (+10/-10)
modules/ca/src/client/syncGroupNotify.cpp (+2/-2)
modules/ca/src/client/syncGroupReadNotify.cpp (+1/-1)
modules/ca/src/client/syncGroupWriteNotify.cpp (+1/-1)
modules/ca/src/client/syncgrp.cpp (+3/-3)
modules/ca/src/client/tcpRecvThread.cpp (+1/-1)
modules/ca/src/client/tcpRecvWatchdog.cpp (+30/-30)
modules/ca/src/client/tcpRecvWatchdog.h (+16/-16)
modules/ca/src/client/tcpSendWatchdog.cpp (+6/-6)
modules/ca/src/client/tcpSendWatchdog.h (+12/-12)
modules/ca/src/client/tcpiiu.cpp (+230/-230)
modules/ca/src/client/test/ca_test.c (+213/-213)
modules/ca/src/client/test/ca_test.h (+3/-3)
modules/ca/src/client/test/ca_test_main.c (+31/-31)
modules/ca/src/client/test_event.cpp (+12/-12)
modules/ca/src/client/ucx.h (+34/-34)
modules/ca/src/client/udpiiu.cpp (+166/-166)
modules/ca/src/client/udpiiu.h (+91/-91)
modules/ca/src/client/virtualCircuit.h (+91/-91)
modules/ca/src/perl/CA.pm (+2/-2)
modules/ca/src/template/top/caClientApp/caExample.c (+4/-4)
modules/ca/src/template/top/caClientApp/caMonitor.c (+31/-31)
modules/ca/src/template/top/caPerlApp/camonitor.pl (+2/-2)
modules/ca/src/tools/caget.c (+20/-20)
modules/ca/src/tools/cainfo.c (+13/-13)
modules/ca/src/tools/camonitor.c (+16/-16)
modules/ca/src/tools/caput.c (+12/-12)
modules/ca/src/tools/tool_lib.c (+27/-27)
modules/ca/src/tools/tool_lib.h (+2/-2)
modules/database/src/ioc/as/asCa.c (+18/-18)
modules/database/src/ioc/as/asCa.h (+1/-1)
modules/database/src/ioc/as/asDbLib.c (+62/-62)
modules/database/src/ioc/as/asDbLib.h (+2/-2)
modules/database/src/ioc/as/asIocRegister.c (+1/-1)
modules/database/src/ioc/as/asIocRegister.h (+1/-1)
modules/database/src/ioc/as/ascheck.c (+22/-22)
modules/database/src/ioc/bpt/cvtTable.h (+2/-2)
modules/database/src/ioc/bpt/makeBpt.c (+221/-221)
modules/database/src/ioc/db/callback.c (+2/-2)
modules/database/src/ioc/db/callback.h (+9/-9)
modules/database/src/ioc/db/cvtBpt.c (+126/-126)
modules/database/src/ioc/db/dbAccess.c (+195/-195)
modules/database/src/ioc/db/dbAccess.h (+2/-2)
modules/database/src/ioc/db/dbAccessDefs.h (+34/-34)
modules/database/src/ioc/db/dbBkpt.c (+16/-16)
modules/database/src/ioc/db/dbBkpt.h (+4/-4)
modules/database/src/ioc/db/dbCAC.h (+3/-3)
modules/database/src/ioc/db/dbCa.c (+7/-7)
modules/database/src/ioc/db/dbCaPvt.h (+37/-37)
modules/database/src/ioc/db/dbCaTest.c (+2/-2)
modules/database/src/ioc/db/dbCaTest.h (+1/-1)
modules/database/src/ioc/db/dbChannelIO.cpp (+5/-5)
modules/database/src/ioc/db/dbChannelIO.h (+3/-3)
modules/database/src/ioc/db/dbContext.cpp (+7/-7)
modules/database/src/ioc/db/dbContextReadNotifyCache.cpp (+4/-4)
modules/database/src/ioc/db/dbConvert.h (+1/-1)
modules/database/src/ioc/db/dbConvertFast.h (+1/-1)
modules/database/src/ioc/db/dbConvertJSON.c (+2/-2)
modules/database/src/ioc/db/dbConvertJSON.h (+1/-1)
modules/database/src/ioc/db/dbEvent.c (+13/-13)
modules/database/src/ioc/db/dbEvent.h (+1/-1)
modules/database/src/ioc/db/dbFastLinkConv.c (+20/-20)
modules/database/src/ioc/db/dbIocRegister.c (+1/-1)
modules/database/src/ioc/db/dbIocRegister.h (+1/-1)
modules/database/src/ioc/db/dbLock.c (+14/-14)
modules/database/src/ioc/db/dbLock.h (+2/-2)
modules/database/src/ioc/db/dbLockPvt.h (+7/-7)
modules/database/src/ioc/db/dbNotify.c (+11/-11)
modules/database/src/ioc/db/dbNotify.h (+16/-16)
modules/database/src/ioc/db/dbPutNotifyBlocker.cpp (+8/-8)
modules/database/src/ioc/db/dbPutNotifyBlocker.h (+6/-6)
modules/database/src/ioc/db/dbScan.h (+1/-1)
modules/database/src/ioc/db/dbSubscriptionIO.cpp (+7/-7)
modules/database/src/ioc/db/dbTest.h (+1/-1)
modules/database/src/ioc/db/db_convert.h (+20/-20)
modules/database/src/ioc/db/db_field_log.h (+9/-9)
modules/database/src/ioc/db/db_test.c (+1/-1)
modules/database/src/ioc/db/db_test.h (+1/-1)
modules/database/src/ioc/db/recGbl.c (+26/-26)
modules/database/src/ioc/db/recGbl.h (+1/-1)
modules/database/src/ioc/dbStatic/dbBase.h (+97/-97)
modules/database/src/ioc/dbStatic/dbFldTypes.h (+41/-41)
modules/database/src/ioc/dbStatic/dbLex.l (+72/-72)
modules/database/src/ioc/dbStatic/dbLexRoutines.c (+265/-265)
modules/database/src/ioc/dbStatic/dbPvdLib.c (+2/-2)
modules/database/src/ioc/dbStatic/dbStaticIocRegister.c (+1/-1)
modules/database/src/ioc/dbStatic/dbStaticIocRegister.h (+1/-1)
modules/database/src/ioc/dbStatic/dbStaticLib.c (+863/-863)
modules/database/src/ioc/dbStatic/dbStaticLib.h (+1/-1)
modules/database/src/ioc/dbStatic/dbStaticPvt.h (+7/-7)
modules/database/src/ioc/dbStatic/dbStaticRun.c (+14/-14)
modules/database/src/ioc/dbStatic/dbYacc.y (+171/-171)
modules/database/src/ioc/dbStatic/devSup.h (+8/-8)
modules/database/src/ioc/dbStatic/drvSup.h (+2/-2)
modules/database/src/ioc/dbStatic/guigroup.h (+3/-3)
modules/database/src/ioc/dbStatic/link.h (+92/-92)
modules/database/src/ioc/dbStatic/recSup.h (+14/-14)
modules/database/src/ioc/dbStatic/special.h (+23/-23)
modules/database/src/ioc/dbtemplate/dbLoadTemplate.h (+1/-1)
modules/database/src/ioc/dbtemplate/dbLoadTemplate.y (+3/-3)
modules/database/src/ioc/dbtemplate/dbLoadTemplate_lex.l (+1/-1)
modules/database/src/ioc/dbtemplate/dbtoolsIocRegister.c (+1/-1)
modules/database/src/ioc/dbtemplate/dbtoolsIocRegister.h (+1/-1)
modules/database/src/ioc/misc/dlload.c (+1/-1)
modules/database/src/ioc/misc/epicsRelease.h (+1/-1)
modules/database/src/ioc/misc/iocInit.c (+1/-1)
modules/database/src/ioc/misc/iocInit.h (+2/-2)
modules/database/src/ioc/misc/iocshRegisterCommon.h (+1/-1)
modules/database/src/ioc/misc/miscIocRegister.c (+1/-1)
modules/database/src/ioc/misc/miscIocRegister.h (+1/-1)
modules/database/src/ioc/registry/registryCommon.c (+1/-1)
modules/database/src/ioc/registry/registryCommon.h (+1/-1)
modules/database/src/ioc/registry/registryDeviceSupport.h (+1/-1)
modules/database/src/ioc/registry/registryDriverSupport.h (+1/-1)
modules/database/src/ioc/registry/registryFunction.h (+1/-1)
modules/database/src/ioc/registry/registryIocRegister.c (+1/-1)
modules/database/src/ioc/registry/registryIocRegister.h (+1/-1)
modules/database/src/ioc/registry/registryJLinks.h (+1/-1)
modules/database/src/ioc/registry/registryRecordType.h (+1/-1)
modules/database/src/ioc/rsrv/camessage.c (+14/-14)
modules/database/src/ioc/rsrv/camsgtask.c (+7/-7)
modules/database/src/ioc/rsrv/caserverio.c (+19/-19)
modules/database/src/ioc/rsrv/cast_server.c (+14/-14)
modules/database/src/ioc/rsrv/online_notify.c (+4/-4)
modules/database/src/std/dev/asSubRecordFunctions.c (+11/-11)
modules/database/src/std/dev/devAaoSoft.c (+2/-2)
modules/database/src/std/dev/devAiSoft.c (+1/-1)
modules/database/src/std/dev/devAiSoftRaw.c (+1/-1)
modules/database/src/std/dev/devAoSoft.c (+15/-15)
modules/database/src/std/dev/devAoSoftCallback.c (+15/-15)
modules/database/src/std/dev/devAoSoftRaw.c (+15/-15)
modules/database/src/std/dev/devBiDbState.c (+12/-12)
modules/database/src/std/dev/devBiSoft.c (+1/-1)
modules/database/src/std/dev/devBiSoftRaw.c (+1/-1)
modules/database/src/std/dev/devBoDbState.c (+12/-12)
modules/database/src/std/dev/devBoSoft.c (+16/-16)
modules/database/src/std/dev/devBoSoftCallback.c (+12/-12)
modules/database/src/std/dev/devBoSoftRaw.c (+17/-17)
modules/database/src/std/dev/devCalcoutSoft.c (+7/-7)
modules/database/src/std/dev/devCalcoutSoftCallback.c (+7/-7)
modules/database/src/std/dev/devEnviron.c (+1/-1)
modules/database/src/std/dev/devEventSoft.c (+1/-1)
modules/database/src/std/dev/devGeneralTime.c (+2/-2)
modules/database/src/std/dev/devHistogramSoft.c (+18/-18)
modules/database/src/std/dev/devI64inSoft.c (+1/-1)
modules/database/src/std/dev/devI64outSoft.c (+1/-1)
modules/database/src/std/dev/devI64outSoftCallback.c (+6/-6)
modules/database/src/std/dev/devLiSoft.c (+1/-1)
modules/database/src/std/dev/devLoSoft.c (+16/-16)
modules/database/src/std/dev/devLoSoftCallback.c (+13/-13)
modules/database/src/std/dev/devLsoSoftCallback.c (+1/-1)
modules/database/src/std/dev/devMbbiDirectSoft.c (+1/-1)
modules/database/src/std/dev/devMbbiDirectSoftRaw.c (+1/-1)
modules/database/src/std/dev/devMbbiSoft.c (+1/-1)
modules/database/src/std/dev/devMbbiSoftCallback.c (+1/-1)
modules/database/src/std/dev/devMbbiSoftRaw.c (+1/-1)
modules/database/src/std/dev/devMbboDirectSoft.c (+1/-1)
modules/database/src/std/dev/devMbboDirectSoftRaw.c (+1/-1)
modules/database/src/std/dev/devMbboSoft.c (+14/-14)
modules/database/src/std/dev/devMbboSoftCallback.c (+12/-12)
modules/database/src/std/dev/devPrintfSoft.c (+1/-1)
modules/database/src/std/dev/devPrintfSoftCallback.c (+1/-1)
modules/database/src/std/dev/devSiSoft.c (+1/-1)
modules/database/src/std/dev/devSoSoft.c (+1/-1)
modules/database/src/std/dev/devStdio.c (+1/-1)
modules/database/src/std/dev/devTimestamp.c (+1/-1)
modules/database/src/std/link/lnkCalc.c (+1/-1)
modules/database/src/std/rec/aSubRecord.c (+1/-1)
modules/database/src/std/rec/aiRecord.c (+143/-143)
modules/database/src/std/rec/aoRecord.c (+163/-163)
modules/database/src/std/rec/biRecord.c (+102/-102)
modules/database/src/std/rec/boRecord.c (+174/-174)
modules/database/src/std/rec/calcRecord.c (+15/-15)
modules/database/src/std/rec/calcoutRecord.c (+5/-5)
modules/database/src/std/rec/dfanoutRecord.c (+24/-24)
modules/database/src/std/rec/eventRecord.c (+38/-38)
modules/database/src/std/rec/fanoutRecord.c (+1/-1)
modules/database/src/std/rec/histogramRecord.c (+1/-1)
modules/database/src/std/rec/int64inRecord.c (+58/-58)
modules/database/src/std/rec/int64outRecord.c (+92/-92)
modules/database/src/std/rec/longinRecord.c (+55/-55)
modules/database/src/std/rec/longoutRecord.c (+86/-86)
modules/database/src/std/rec/mbbiDirectRecord.c (+1/-1)
modules/database/src/std/rec/mbbiRecord.c (+1/-1)
modules/database/src/std/rec/mbboDirectRecord.c (+1/-1)
modules/database/src/std/rec/mbboRecord.c (+1/-1)
modules/database/src/std/rec/permissiveRecord.c (+22/-22)
modules/database/src/std/rec/printfRecord.c (+5/-5)
modules/database/src/std/rec/selRecord.c (+59/-59)
modules/database/src/std/rec/seqRecord.c (+5/-5)
modules/database/src/std/rec/stateRecord.c (+29/-29)
modules/database/src/std/rec/stringinRecord.c (+43/-43)
modules/database/src/std/rec/stringoutRecord.c (+71/-71)
modules/database/src/std/rec/subRecord.c (+4/-4)
modules/database/src/std/softIoc/makeInstallDir.pl (+1/-1)
modules/database/src/std/softIoc/softMain.cpp (+2/-2)
modules/database/src/template/top/exampleApp/src/_APPNAME_Hello.c (+2/-2)
modules/database/src/template/top/exampleApp/src/_APPNAME_Main.cpp (+1/-1)
modules/database/src/template/top/exampleApp/src/devXxxSoft.c (+14/-14)
modules/database/src/template/top/exampleApp/src/sncExample.stt (+9/-9)
modules/database/src/template/top/exampleApp/src/xxxRecord.c (+124/-124)
modules/database/src/template/top/iocApp/src/_APPNAME_Main.cpp (+1/-1)
modules/database/src/tools/DBD.pm (+1/-1)
modules/database/src/tools/DBD/Parser.pm (+5/-5)
modules/database/src/tools/makeIncludeDbd.pl (+1/-1)
modules/database/test/ioc/db/callbackParallelTest.c (+1/-1)
modules/database/test/ioc/db/callbackTest.c (+2/-2)
modules/database/test/ioc/db/dbCaLinkTest.c (+1/-1)
modules/database/test/ioc/db/dbPutLinkTest.c (+1/-1)
modules/database/test/std/rec/mbbioDirectTest.c (+5/-5)
modules/database/test/std/rec/seqTest.c (+1/-1)
modules/database/test/tools/Device.plt (+11/-11)
modules/libcom/RTEMS/rtems_config.c (+1/-1)
modules/libcom/RTEMS/rtems_netconfig.c (+2/-2)
modules/libcom/RTEMS/rtems_util.c (+2/-2)
modules/libcom/src/as/asLib.h (+71/-71)
modules/libcom/src/as/asLib.y (+164/-164)
modules/libcom/src/as/asLibRoutines.c (+608/-608)
modules/libcom/src/as/asLib_lex.l (+36/-36)
modules/libcom/src/as/asTrapWrite.c (+3/-3)
modules/libcom/src/bucketLib/bucketLib.c (+315/-315)
modules/libcom/src/bucketLib/bucketLib.h (+25/-25)
modules/libcom/src/calc/calcPerform.c (+383/-383)
modules/libcom/src/calc/postfix.c (+415/-415)
modules/libcom/src/calc/postfix.h (+1/-1)
modules/libcom/src/calc/postfixPvt.h (+61/-61)
modules/libcom/src/cppStd/epicsAlgorithm.h (+2/-2)
modules/libcom/src/cvtFast/cvtFast.c (+141/-141)
modules/libcom/src/cxxTemplates/epicsGuard.h (+15/-15)
modules/libcom/src/cxxTemplates/epicsSingleton.h (+40/-40)
modules/libcom/src/cxxTemplates/epicsSingletonMutex.cpp (+4/-4)
modules/libcom/src/cxxTemplates/resourceLib.cpp (+2/-2)
modules/libcom/src/cxxTemplates/resourceLib.h (+91/-91)
modules/libcom/src/cxxTemplates/test/minmaxTest.cc (+22/-22)
modules/libcom/src/cxxTemplates/test/resourceLibTest.cc (+194/-194)
modules/libcom/src/cxxTemplates/test/tsDLListBench.cc (+36/-36)
modules/libcom/src/cxxTemplates/test/tsDLListTest.cc (+5/-5)
modules/libcom/src/cxxTemplates/test/tsSLListBench.cc (+42/-42)
modules/libcom/src/cxxTemplates/test/tsSLListTest.cc (+65/-65)
modules/libcom/src/cxxTemplates/tsDLList.h (+42/-42)
modules/libcom/src/cxxTemplates/tsFreeList.h (+17/-17)
modules/libcom/src/cxxTemplates/tsMinMax.h (+5/-5)
modules/libcom/src/cxxTemplates/tsSLList.h (+9/-9)
modules/libcom/src/dbmf/dbmf.c (+25/-25)
modules/libcom/src/dbmf/dbmf.h (+2/-2)
modules/libcom/src/ellLib/ellLib.c (+1/-1)
modules/libcom/src/env/envDefs.h (+26/-26)
modules/libcom/src/env/envSubr.c (+171/-171)
modules/libcom/src/error/epicsPrint.h (+1/-1)
modules/libcom/src/error/errSymTbl.h (+1/-1)
modules/libcom/src/error/errlog.c (+1/-1)
modules/libcom/src/error/errlog.h (+1/-1)
modules/libcom/src/error/makeStatTbl.pl (+1/-1)
modules/libcom/src/fdmgr/fdManager.cpp (+25/-25)
modules/libcom/src/fdmgr/fdManager.h (+12/-12)
modules/libcom/src/fdmgr/fdmgr.cpp (+27/-27)
modules/libcom/src/fdmgr/fdmgr.h (+33/-33)
modules/libcom/src/flex/ccl.c (+39/-39)
modules/libcom/src/flex/dfa.c (+565/-565)
modules/libcom/src/flex/ecs.c (+168/-168)
modules/libcom/src/flex/flex.c (+375/-375)
modules/libcom/src/flex/flex.skel (+277/-277)
modules/libcom/src/flex/flex.skel.static (+280/-280)
modules/libcom/src/flex/flexdef.h (+60/-60)
modules/libcom/src/flex/gen.c (+669/-669)
modules/libcom/src/flex/libmain.c (+1/-1)
modules/libcom/src/flex/misc.c (+182/-182)
modules/libcom/src/flex/nfa.c (+197/-197)
modules/libcom/src/flex/parse.y (+498/-498)
modules/libcom/src/flex/scan.c (+687/-687)
modules/libcom/src/flex/sym.c (+42/-42)
modules/libcom/src/flex/tblcmp.c (+387/-387)
modules/libcom/src/flex/yylex.c (+150/-150)
modules/libcom/src/freeList/freeList.h (+2/-2)
modules/libcom/src/freeList/freeListLib.c (+20/-20)
modules/libcom/src/gpHash/gpHash.h (+4/-4)
modules/libcom/src/iocsh/initHooks.c (+1/-1)
modules/libcom/src/iocsh/initHooks.h (+1/-1)
modules/libcom/src/iocsh/iocsh.cpp (+15/-15)
modules/libcom/src/iocsh/iocsh.h (+1/-1)
modules/libcom/src/iocsh/libComRegister.c (+3/-3)
modules/libcom/src/iocsh/libComRegister.h (+1/-1)
modules/libcom/src/iocsh/registry.c (+3/-3)
modules/libcom/src/iocsh/registry.h (+1/-1)
modules/libcom/src/log/iocLog.c (+3/-3)
modules/libcom/src/log/iocLog.h (+3/-3)
modules/libcom/src/log/iocLogServer.c (+544/-544)
modules/libcom/src/log/logClient.h (+3/-3)
modules/libcom/src/macLib/macCore.c (+5/-5)
modules/libcom/src/macLib/macEnv.c (+2/-2)
modules/libcom/src/macLib/macLib.h (+1/-1)
modules/libcom/src/macLib/macUtil.c (+127/-127)
modules/libcom/src/misc/aToIPAddr.c (+18/-18)
modules/libcom/src/misc/adjustment.c (+6/-6)
modules/libcom/src/misc/adjustment.h (+1/-1)
modules/libcom/src/misc/alarm.h (+1/-1)
modules/libcom/src/misc/alarmString.c (+1/-1)
modules/libcom/src/misc/alarmString.h (+1/-1)
modules/libcom/src/misc/cantProceed.c (+3/-3)
modules/libcom/src/misc/cantProceed.h (+1/-1)
modules/libcom/src/misc/dbDefs.h (+1/-1)
modules/libcom/src/misc/epicsConvert.c (+1/-1)
modules/libcom/src/misc/epicsExit.c (+6/-6)
modules/libcom/src/misc/epicsExport.h (+1/-1)
modules/libcom/src/misc/epicsStdlib.c (+1/-1)
modules/libcom/src/misc/epicsString.c (+1/-1)
modules/libcom/src/misc/epicsString.h (+1/-1)
modules/libcom/src/misc/epicsUnitTest.c (+32/-32)
modules/libcom/src/misc/epicsUnitTest.h (+5/-5)
modules/libcom/src/misc/ipAddrToAsciiAsynchronous.cpp (+25/-25)
modules/libcom/src/misc/ipAddrToAsciiAsynchronous.h (+9/-9)
modules/libcom/src/misc/locationException.h (+1/-1)
modules/libcom/src/misc/makeEpicsVersion.pl (+1/-1)
modules/libcom/src/misc/shareLib.h (+21/-21)
modules/libcom/src/misc/testMain.h (+1/-1)
modules/libcom/src/misc/truncateFile.c (+99/-99)
modules/libcom/src/misc/unixFileName.h (+1/-1)
modules/libcom/src/osi/compiler/clang/compilerSpecific.h (+3/-3)
modules/libcom/src/osi/compiler/clang/epicsAtomicCD.h (+1/-1)
modules/libcom/src/osi/compiler/default/compilerSpecific.h (+3/-3)
modules/libcom/src/osi/compiler/default/epicsAtomicCD.h (+1/-1)
modules/libcom/src/osi/compiler/gcc/compilerSpecific.h (+5/-5)
modules/libcom/src/osi/compiler/gcc/epicsAtomicCD.h (+16/-16)
modules/libcom/src/osi/compiler/msvc/compilerSpecific.h (+6/-6)
modules/libcom/src/osi/compiler/msvc/epicsAtomicCD.h (+13/-13)
modules/libcom/src/osi/compiler/solStudio/compilerSpecific.h (+2/-2)
modules/libcom/src/osi/compiler/solStudio/epicsAtomicCD.h (+1/-1)
modules/libcom/src/osi/compilerDependencies.h (+2/-2)
modules/libcom/src/osi/devLib.h (+15/-15)
modules/libcom/src/osi/devLibVME.c (+29/-29)
modules/libcom/src/osi/devLibVME.h (+56/-56)
modules/libcom/src/osi/devLibVMEImpl.h (+53/-53)
modules/libcom/src/osi/epicsAssert.h (+1/-1)
modules/libcom/src/osi/epicsAtomic.h (+16/-16)
modules/libcom/src/osi/epicsAtomicDefault.h (+14/-14)
modules/libcom/src/osi/epicsEndian.h (+1/-1)
modules/libcom/src/osi/epicsEvent.cpp (+6/-6)
modules/libcom/src/osi/epicsEvent.h (+1/-1)
modules/libcom/src/osi/epicsFindSymbol.h (+1/-1)
modules/libcom/src/osi/epicsGeneralTime.c (+3/-3)
modules/libcom/src/osi/epicsInterrupt.h (+1/-1)
modules/libcom/src/osi/epicsMath.cpp (+1/-1)
modules/libcom/src/osi/epicsMessageQueue.cpp (+2/-2)
modules/libcom/src/osi/epicsMessageQueue.h (+1/-1)
modules/libcom/src/osi/epicsMutex.cpp (+17/-17)
modules/libcom/src/osi/epicsMutex.h (+4/-4)
modules/libcom/src/osi/epicsSignal.h (+6/-6)
modules/libcom/src/osi/epicsStackTrace.c (+42/-42)
modules/libcom/src/osi/epicsStackTrace.h (+3/-3)
modules/libcom/src/osi/epicsStackTracePvt.h (+7/-7)
modules/libcom/src/osi/epicsStdio.c (+1/-1)
modules/libcom/src/osi/epicsStdio.h (+2/-2)
modules/libcom/src/osi/epicsStdioRedirect.h (+1/-1)
modules/libcom/src/osi/epicsTempFile.h (+1/-1)
modules/libcom/src/osi/epicsThread.h (+4/-4)
modules/libcom/src/osi/epicsTime.h (+2/-2)
modules/libcom/src/osi/os/Darwin/epicsMath.h (+1/-1)
modules/libcom/src/osi/os/Darwin/osdBackTrace.cpp (+3/-3)
modules/libcom/src/osi/os/Darwin/osdEnv.c (+1/-1)
modules/libcom/src/osi/os/Darwin/osdFindAddr.c (+3/-3)
modules/libcom/src/osi/os/Darwin/osdTime.h (+1/-1)
modules/libcom/src/osi/os/Darwin/osiFileName.h (+1/-1)
modules/libcom/src/osi/os/Linux/osdBackTrace.cpp (+3/-3)
modules/libcom/src/osi/os/Linux/osdFindAddr.c (+3/-3)
modules/libcom/src/osi/os/Linux/osdTime.h (+1/-1)
modules/libcom/src/osi/os/Linux/osiFileName.h (+1/-1)
modules/libcom/src/osi/os/Linux/osiUnistd.h (+5/-5)
modules/libcom/src/osi/os/RTEMS/devLibVMEOSD.c (+14/-14)
modules/libcom/src/osi/os/RTEMS/epicsAtomicOSD.h (+1/-1)
modules/libcom/src/osi/os/RTEMS/epicsMath.h (+1/-1)
modules/libcom/src/osi/os/RTEMS/osdEnv.c (+1/-1)
modules/libcom/src/osi/os/RTEMS/osdEvent.c (+11/-11)
modules/libcom/src/osi/os/RTEMS/osdEvent.h (+1/-1)
modules/libcom/src/osi/os/RTEMS/osdFindSymbol.c (+1/-1)
modules/libcom/src/osi/os/RTEMS/osdInterrupt.c (+4/-4)
modules/libcom/src/osi/os/RTEMS/osdInterrupt.h (+1/-1)
modules/libcom/src/osi/os/RTEMS/osdMessageQueue.c (+8/-8)
modules/libcom/src/osi/os/RTEMS/osdMessageQueue.h (+1/-1)
modules/libcom/src/osi/os/RTEMS/osdMutex.c (+6/-6)
modules/libcom/src/osi/os/RTEMS/osdMutex.h (+1/-1)
modules/libcom/src/osi/os/RTEMS/osdPoolStatus.c (+1/-1)
modules/libcom/src/osi/os/RTEMS/osdProcess.c (+2/-2)
modules/libcom/src/osi/os/RTEMS/osdSignal.cpp (+1/-1)
modules/libcom/src/osi/os/RTEMS/osdStrtod.h (+1/-1)
modules/libcom/src/osi/os/RTEMS/osdThread.c (+3/-3)
modules/libcom/src/osi/os/RTEMS/osdVME.h (+1/-1)
modules/libcom/src/osi/os/RTEMS/osiFileName.h (+1/-1)
modules/libcom/src/osi/os/RTEMS/osiUnistd.h (+5/-5)
modules/libcom/src/osi/os/WIN32/epicsAtomicMS.h (+21/-21)
modules/libcom/src/osi/os/WIN32/epicsAtomicOSD.h (+8/-8)
modules/libcom/src/osi/os/WIN32/epicsGetopt.c (+70/-70)
modules/libcom/src/osi/os/WIN32/epicsGetopt.h (+1/-1)
modules/libcom/src/osi/os/WIN32/epicsMath.h (+2/-2)
modules/libcom/src/osi/os/WIN32/epicsSocketConvertErrnoToString.cpp (+2/-2)
modules/libcom/src/osi/os/WIN32/forceBadAllocException.cpp (+5/-5)
modules/libcom/src/osi/os/WIN32/osdBackTrace.cpp (+3/-3)
modules/libcom/src/osi/os/WIN32/osdEnv.c (+9/-9)
modules/libcom/src/osi/os/WIN32/osdEvent.c (+11/-11)
modules/libcom/src/osi/os/WIN32/osdEvent.h (+1/-1)
modules/libcom/src/osi/os/WIN32/osdFindSymbol.c (+1/-1)
modules/libcom/src/osi/os/WIN32/osdMutex.c (+21/-21)
modules/libcom/src/osi/os/WIN32/osdMutex.h (+1/-1)
modules/libcom/src/osi/os/WIN32/osdPoolStatus.c (+1/-1)
modules/libcom/src/osi/os/WIN32/osdPoolStatus.h (+1/-1)
modules/libcom/src/osi/os/WIN32/osdProcess.c (+24/-24)
modules/libcom/src/osi/os/WIN32/osdSignal.cpp (+1/-1)
modules/libcom/src/osi/os/WIN32/osdSock.c (+90/-90)
modules/libcom/src/osi/os/WIN32/osdSock.h (+7/-7)
modules/libcom/src/osi/os/WIN32/osdStdio.c (+1/-1)
modules/libcom/src/osi/os/WIN32/osdStrtod.h (+2/-2)
modules/libcom/src/osi/os/WIN32/osdThread.c (+65/-65)
modules/libcom/src/osi/os/WIN32/osdTime.cpp (+18/-18)
modules/libcom/src/osi/os/WIN32/osiFileName.h (+1/-1)
modules/libcom/src/osi/os/WIN32/osiUnistd.h (+5/-5)
modules/libcom/src/osi/os/WIN32/setThreadName.cpp (+2/-2)
modules/libcom/src/osi/os/WIN32/systemCallIntMech.cpp (+3/-3)
modules/libcom/src/osi/os/cygwin32/osdStrtod.h (+2/-2)
modules/libcom/src/osi/os/cygwin32/osiFileName.h (+1/-1)
modules/libcom/src/osi/os/cygwin32/systemCallIntMech.cpp (+2/-2)
modules/libcom/src/osi/os/default/epicsGetopt.h (+1/-1)
modules/libcom/src/osi/os/default/epicsSocketConvertErrnoToString.cpp (+3/-3)
modules/libcom/src/osi/os/default/gnuReadline.c (+1/-1)
modules/libcom/src/osi/os/default/osdAssert.c (+1/-1)
modules/libcom/src/osi/os/default/osdBackTrace.cpp (+4/-4)
modules/libcom/src/osi/os/default/osdEnv.c (+9/-9)
modules/libcom/src/osi/os/default/osdFindAddr.c (+3/-3)
modules/libcom/src/osi/os/default/osdFindSymbol.c (+1/-1)
modules/libcom/src/osi/os/default/osdInterrupt.c (+1/-1)
modules/libcom/src/osi/os/default/osdInterrupt.h (+1/-1)
modules/libcom/src/osi/os/default/osdMessageQueue.cpp (+2/-2)
modules/libcom/src/osi/os/default/osdNetIntf.c (+18/-18)
modules/libcom/src/osi/os/default/osdPoolStatus.c (+1/-1)
modules/libcom/src/osi/os/default/osdPoolStatus.h (+1/-1)
modules/libcom/src/osi/os/default/osdSignal.cpp (+1/-1)
modules/libcom/src/osi/os/default/osdSockAddrReuse.cpp (+2/-2)
modules/libcom/src/osi/os/default/osdSpin.c (+1/-1)
modules/libcom/src/osi/os/default/osdVME.h (+1/-1)
modules/libcom/src/osi/os/default/osdWireConfig.h (+3/-3)
modules/libcom/src/osi/os/default/osdWireFormat.h (+23/-23)
modules/libcom/src/osi/os/freebsd/osdTime.h (+1/-1)
modules/libcom/src/osi/os/freebsd/osiFileName.h (+1/-1)
modules/libcom/src/osi/os/freebsd/osiUnistd.h (+5/-5)
modules/libcom/src/osi/os/iOS/epicsMath.h (+1/-1)
modules/libcom/src/osi/os/iOS/osdEnv.c (+1/-1)
modules/libcom/src/osi/os/posix/epicsAtomicOSD.cpp (+13/-13)
modules/libcom/src/osi/os/posix/epicsAtomicOSD.h (+1/-1)
modules/libcom/src/osi/os/posix/epicsMath.h (+1/-1)
modules/libcom/src/osi/os/posix/epicsTempFile.c (+1/-1)
modules/libcom/src/osi/os/posix/osdElfFindAddr.c (+14/-14)
modules/libcom/src/osi/os/posix/osdEvent.c (+1/-1)
modules/libcom/src/osi/os/posix/osdEvent.h (+1/-1)
modules/libcom/src/osi/os/posix/osdExecinfoBackTrace.cpp (+5/-5)
modules/libcom/src/osi/os/posix/osdFindSymbol.c (+1/-1)
modules/libcom/src/osi/os/posix/osdMutex.c (+6/-6)
modules/libcom/src/osi/os/posix/osdMutex.h (+1/-1)
modules/libcom/src/osi/os/posix/osdProcess.c (+4/-4)
modules/libcom/src/osi/os/posix/osdSignal.cpp (+2/-2)
modules/libcom/src/osi/os/posix/osdSock.c (+40/-40)
modules/libcom/src/osi/os/posix/osdStdio.c (+1/-1)
modules/libcom/src/osi/os/posix/osdStrtod.h (+1/-1)
modules/libcom/src/osi/os/posix/osdThread.c (+2/-2)
modules/libcom/src/osi/os/posix/osdTime.h (+5/-5)
modules/libcom/src/osi/os/posix/osiUnistd.h (+5/-5)
modules/libcom/src/osi/os/posix/systemCallIntMech.cpp (+3/-3)
modules/libcom/src/osi/os/solaris/epicsAtomicOSD.h (+5/-5)
modules/libcom/src/osi/os/solaris/epicsMath.h (+1/-1)
modules/libcom/src/osi/os/solaris/osdBackTrace.cpp (+16/-16)
modules/libcom/src/osi/os/solaris/osdEnv.c (+1/-1)
modules/libcom/src/osi/os/solaris/osdFindAddr.c (+3/-3)
modules/libcom/src/osi/os/solaris/osdStrtod.h (+2/-2)
modules/libcom/src/osi/os/solaris/osiFileName.h (+1/-1)
modules/libcom/src/osi/os/vxWorks/atReboot.cpp (+1/-1)
modules/libcom/src/osi/os/vxWorks/camacLib.h (+32/-32)
modules/libcom/src/osi/os/vxWorks/devLibVMEOSD.c (+23/-23)
modules/libcom/src/osi/os/vxWorks/epicsAtomicOSD.h (+21/-21)
modules/libcom/src/osi/os/vxWorks/epicsMath.h (+1/-1)
modules/libcom/src/osi/os/vxWorks/logMsgToErrlog.cpp (+12/-12)
modules/libcom/src/osi/os/vxWorks/module_types.h (+134/-134)
modules/libcom/src/osi/os/vxWorks/osdEnv.c (+2/-2)
modules/libcom/src/osi/os/vxWorks/osdEvent.c (+1/-1)
modules/libcom/src/osi/os/vxWorks/osdEvent.h (+1/-1)
modules/libcom/src/osi/os/vxWorks/osdFindSymbol.c (+1/-1)
modules/libcom/src/osi/os/vxWorks/osdInterrupt.c (+1/-1)
modules/libcom/src/osi/os/vxWorks/osdInterrupt.h (+1/-1)
modules/libcom/src/osi/os/vxWorks/osdMessageQueue.cpp (+1/-1)
modules/libcom/src/osi/os/vxWorks/osdMessageQueue.h (+1/-1)
modules/libcom/src/osi/os/vxWorks/osdMutex.c (+1/-1)
modules/libcom/src/osi/os/vxWorks/osdMutex.h (+1/-1)
modules/libcom/src/osi/os/vxWorks/osdPoolStatus.c (+4/-4)
modules/libcom/src/osi/os/vxWorks/osdProcess.c (+4/-4)
modules/libcom/src/osi/os/vxWorks/osdReadline.c (+1/-1)
modules/libcom/src/osi/os/vxWorks/osdSignal.cpp (+1/-1)
modules/libcom/src/osi/os/vxWorks/osdSock.c (+17/-17)
modules/libcom/src/osi/os/vxWorks/osdSock.h (+1/-1)
modules/libcom/src/osi/os/vxWorks/osdStdio.c (+2/-2)
modules/libcom/src/osi/os/vxWorks/osdThread.c (+5/-5)
modules/libcom/src/osi/os/vxWorks/osdTime.h (+1/-1)
modules/libcom/src/osi/os/vxWorks/osdVME.h (+1/-1)
modules/libcom/src/osi/os/vxWorks/osiFileName.h (+1/-1)
modules/libcom/src/osi/os/vxWorks/strtoll.c (+88/-88)
modules/libcom/src/osi/os/vxWorks/strtoull.c (+66/-66)
modules/libcom/src/osi/os/vxWorks/task_params.h (+117/-117)
modules/libcom/src/osi/os/vxWorks/veclist.c (+134/-134)
modules/libcom/src/osi/osiClockTime.h (+1/-1)
modules/libcom/src/osi/osiNTPTime.c (+1/-1)
modules/libcom/src/osi/osiNTPTime.h (+1/-1)
modules/libcom/src/osi/osiPoolStatus.h (+1/-1)
modules/libcom/src/osi/osiProcess.h (+5/-5)
modules/libcom/src/osi/osiSock.c (+36/-36)
modules/libcom/src/osi/osiSock.h (+39/-39)
modules/libcom/src/osi/osiWireFormat.h (+24/-24)
modules/libcom/src/taskwd/taskwd.c (+2/-2)
modules/libcom/src/taskwd/taskwd.h (+2/-2)
modules/libcom/src/timer/epicsTimer.cpp (+22/-22)
modules/libcom/src/timer/epicsTimer.h (+21/-21)
modules/libcom/src/timer/timer.cpp (+11/-11)
modules/libcom/src/timer/timerPrivate.h (+26/-26)
modules/libcom/src/timer/timerQueue.cpp (+25/-25)
modules/libcom/src/timer/timerQueueActive.cpp (+10/-10)
modules/libcom/src/timer/timerQueueActiveMgr.cpp (+5/-5)
modules/libcom/src/timer/timerQueuePassive.cpp (+6/-6)
modules/libcom/src/valgrind/valgrind.h (+27/-27)
modules/libcom/src/yacc/antelope.c (+144/-144)
modules/libcom/src/yacc/closure.c (+93/-93)
modules/libcom/src/yacc/defs.h (+48/-48)
modules/libcom/src/yacc/error.c (+22/-22)
modules/libcom/src/yacc/lalr.c (+162/-162)
modules/libcom/src/yacc/lr0.c (+186/-186)
modules/libcom/src/yacc/mkpar.c (+124/-124)
modules/libcom/src/yacc/output.c (+596/-596)
modules/libcom/src/yacc/reader.c (+891/-891)
modules/libcom/src/yacc/skeleton.c (+40/-40)
modules/libcom/src/yacc/symtab.c (+10/-10)
modules/libcom/src/yacc/verbose.c (+135/-135)
modules/libcom/src/yacc/warshall.c (+31/-31)
modules/libcom/src/yajl/yajl.c (+2/-2)
modules/libcom/src/yajl/yajl_buf.c (+1/-1)
modules/libcom/src/yajl/yajl_buf.h (+1/-1)
modules/libcom/src/yajl/yajl_common.h (+1/-1)
modules/libcom/src/yajl/yajl_encode.c (+10/-10)
modules/libcom/src/yajl/yajl_gen.c (+8/-8)
modules/libcom/src/yajl/yajl_gen.h (+2/-2)
modules/libcom/src/yajl/yajl_lex.c (+52/-52)
modules/libcom/src/yajl/yajl_lex.h (+8/-8)
modules/libcom/src/yajl/yajl_parse.h (+1/-1)
modules/libcom/test/blockingSockTest.cpp (+13/-13)
modules/libcom/test/epicsAlgorithmTest.cpp (+12/-12)
modules/libcom/test/epicsAtomicPerform.cpp (+79/-79)
modules/libcom/test/epicsAtomicTest.cpp (+55/-55)
modules/libcom/test/epicsCalcTest.cpp (+66/-66)
modules/libcom/test/epicsEllTest.c (+1/-1)
modules/libcom/test/epicsEventTest.cpp (+1/-1)
modules/libcom/test/epicsMutexTest.cpp (+5/-5)
modules/libcom/test/epicsStackTraceTest.c (+6/-6)
modules/libcom/test/epicsStdioTest.c (+3/-3)
modules/libcom/test/epicsThreadPrivateTest.cpp (+2/-2)
modules/libcom/test/epicsTimerTest.cpp (+7/-7)
modules/libcom/test/fdmgrTest.c (+3/-3)
modules/libcom/test/macDefExpandTest.c (+5/-5)
modules/libcom/test/ringBytesTest.c (+3/-3)
Reviewer Review Type Date Requested Status
mdavidsaver Approve
Andrew Johnson Approve
Review via email: mp+382303@code.launchpad.net

Commit message

Cleanup whitespace

Description of the change

This is purely cosmetic:
1. There was a mess with tab character usage. Indention with spaces and tabs was mixed inconsistently sometimes with obviously different assumptions on tab width, even in the same file. This results in irregular, hard to read indents. Please stop using tabs in source code.
2. Clean up of space at end of line.

Can we please have a coding style guide?

To post a comment you must log in.
Revision history for this message
Andrew Johnson (anj) wrote :

I am concerned that merging this as is will make it difficult to merge commits made on the 3.15 branch up into the 7.0 branch. I just spent quite a few hours doing just that, without having to contend with a large number of lines that had white-space changes as well as code a documentation changes. Git's recursive merge strategy supports the flag -Xignore-space-change which ought to help, but for several of the conflicts I just had to fix git didn't make any attempt to do a 3-way merge at all, because there were file renames involved as well as large content changes, and it didn't recognize these as such.

If you don't think this will be a problem, please try checking out this branch and doing a git merge of the 3.15 branch into it. I got 63 lines of output with 31 CONFLICT lines when I did that last night to the 7.0 branch.

Don't get me wrong I would like us to have a unified source format and coding style (which of course would follow *my* code-formatting preferences, n'est-pas?), but since we have 2 branches to support I don't think this is the best way to achieve that (nor would doing this in the 3.15 branch and merging up be much better). This approach is fine for the PVA submodules because they don't have any older branches to support though.

We might be able to minimize the churn if we add a .indent.pro file and reformat both branches identically, then merge up with no code changes, but I'd want to try that out before committing to the approach. Are GNU indent and BSD indent (as provided on MacOS) fully compatible? I would also only do this once we have minimized the number of outstanding merge & pull requests.

Revision history for this message
Andrew Johnson (anj) wrote :

Sorry, I withdraw my concerns about this particular merge request. I had only looked at your commit messages and not at the actual diff when I wrote the previous commit – my bad. I see now that you are only proposing changes here to the modules/ca tree, which is unlikely to suffer from the problems I was concerned about. The libcom and database modules would be a different matter though.

review: Approve
Revision history for this message
Dirk Zimoch (dirk.zimoch) wrote :

Hi Andrew,
I had already started on an .indent.pro file, but so far found no setting that matches the majority of EPICS base coding styles (or let's better say: habits). But I am still trying...
I can also do the same for the 3.15 branch, so that the two look the same. I hope git is ok with two changes that do the same thing and then merging them?

And I was hoping not to limit the fixes on the modules/ca tree only. Let me check if I forgot something... But I have to admid, the ca tree was the worst.

Revision history for this message
Dirk Zimoch (dirk.zimoch) wrote :

Ok, it seems I have missed files, headers actually. I forgot to seach for them everywhere. Had happen in the PV modules as well, but I had updated those yesterday already.
Tabs are in database/src/ioc/dbStatic/dbBase.h only but spaces on line end are in 225 more header files and multiple empty lines at file end in 51 headers.

Revision history for this message
Dirk Zimoch (dirk.zimoch) wrote :

In the list of changed files above, I see many changes in modules/database and modules/libcom as well. But in the diff below I only find modules/ca. How that? When downloading the diff, the changes are there. Is there something wrong with the diff view of launchpad?

Revision history for this message
Dirk Zimoch (dirk.zimoch) wrote :

What is your favorite coding style, mine looks like this:

int function(int a, int b)
{
    int i;

    for (i=a; i<b; i++)
    {
        if (i<10)
            doThis(i);
        else
        {
            switch (i)
            {
                case 42:
                    doSomethingSpecial();
                    break;
                default:
                {
                    doTheNormalThing(i, a, b);
                    break;
                }
            }
        }
    }
    return 0;
}

Revision history for this message
Ralph Lange (ralph-lange) wrote :

I don't think it's a good idea to change practically all lines in base to achieve a common coding style. It pretty much renders SCM's blame functionality useless, and is a matter of personal preference anyway.

Here's a nice list of the most common styles for braces and indentation:
http://astyle.sourceforge.net/astyle.html#_Brace_Style_Options

I don't think agreement will be easy.

Revision history for this message
Ralph Lange (ralph-lange) wrote :

To answer your question:
I prefer K&R style (attached braces), and would usually have spaces around binary operators like = and < in your example.

Revision history for this message
Dirk Zimoch (dirk.zimoch) wrote :

'git blame -w' to ignore whitespace change?

Revision history for this message
Dirk Zimoch (dirk.zimoch) wrote :

I just found that I used 'find' the wrong way and there are many more files. I will try again ...

Revision history for this message
Ben Franksen (bfrk) wrote :

I propose to shortcut discussion about coding style by agreeing on the status quo. A long time ago I figured out the indent options needed to reproduce the style preferred in EPICS base over the last decade or so:

indent -bap -bl -bli0 -br -brs -c41 -ce -cd41 -ci0 -cli0 -di1 -i4 -ip4 -nbc -ncdb -ncs -nfc1 -nfca -nlp -npcs -npsl -npro -nv -sob -ss -st -ts0

Revision history for this message
mdavidsaver (mdavidsaver) wrote :

> 'git blame -w' to ignore whitespace change?

To my mind this is the important point. I'm fairly open about accepting the occasional reformatting which 'git diff --ignore-all-space' renders as empty. And I would be fairly closed to reformatting which doesn't. So eg. no moving brackets between lines. Also, this isn't something to be done frequently. (once per decade is ok)

This change is almost empty. 'git diff --ignore-all-space' still shows the removal of blank lines at the end of files. I'm not so bother this time, although I don't see much point to doing this in future.

As far as style rules. I'm not so strict on aspects other than indentation. There my first rule is to be consistent. With indentation of 4 spaces being a very strong preference (where allowed).

Beyond that, I'm not so concerned beyond a small bias towards schemes which qtcreator can apply automatically. In short, this is not an area where I want to spend much time.

So this change is acceptable to me, provided it doesn't complicate upmerge by whatever version of Git Andrew has these days.

I'm marking this "Needs Fixing" since Dirk has indicated he has more work to do.

review: Needs Fixing
Revision history for this message
Dirk Zimoch (dirk.zimoch) wrote :

I will push a new version which produces empty 'git diff --ignore-all-space' output and which is re-based to the laterst 7.0. I can continue resasing it until Andrew is done with the pending merges. I am also willing to do the same for the 3.15 branch, so that future merges can go smoothly.
My most important issue is with the indention mixing tabs and spaces. Clearing out space at the end of lines is secondary. Least important are empty lines at eof (even though they should not lead to git blame confusion).

I will leave .dbd and .dbd.pod untouched for the moment, even though they have the same indention issue. But here I would probably aim for a consistent use of tab.

2b1ce8c... by Dirk Zimoch

removed spaces at end of line

Conflicts:
 modules/libcom/test/epicsCalcTest.cpp

Revision history for this message
Dirk Zimoch (dirk.zimoch) wrote :

I took out the deletion of empty lines at eof and rebased the remaining changes onto the current 7.0 commit 85d198. I did not clean up the files in boost as they are an external, unlikely to ever change package.

'git diff --ignore-all-space 7.0' gives no output.

Revision history for this message
mdavidsaver (mdavidsaver) wrote :

Ok by me.

review: Approve
Revision history for this message
mdavidsaver (mdavidsaver) wrote :

Applied as 36a8b51d8e743c487cc5f4c079746b234b2afca1

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/modules/ca/src/client/CASG.cpp b/modules/ca/src/client/CASG.cpp
2index 4ffb414..9eb44e6 100644
3--- a/modules/ca/src/client/CASG.cpp
4+++ b/modules/ca/src/client/CASG.cpp
5@@ -209,23 +209,23 @@ bool CASG::ioComplete (
6 return this->ioPendingList.count () == 0u;
7 }
8
9-void CASG::put ( epicsGuard < epicsMutex > & guard, chid pChan,
10+void CASG::put ( epicsGuard < epicsMutex > & guard, chid pChan,
11 unsigned type, arrayElementCount count, const void * pValue )
12 {
13 guard.assertIdenticalMutex ( this->client.mutexRef() );
14 sgAutoPtr < syncGroupWriteNotify > pNotify ( guard, *this );
15- pNotify = syncGroupWriteNotify::factory (
16+ pNotify = syncGroupWriteNotify::factory (
17 this->freeListWriteOP, *this, & CASG :: recycleWriteNotifyIO, pChan );
18 pNotify->begin ( guard, type, count, pValue );
19 pNotify.release ();
20 }
21
22-void CASG::get ( epicsGuard < epicsMutex > & guard, chid pChan,
23+void CASG::get ( epicsGuard < epicsMutex > & guard, chid pChan,
24 unsigned type, arrayElementCount count, void *pValue )
25 {
26 guard.assertIdenticalMutex ( this->client.mutexRef() );
27 sgAutoPtr < syncGroupReadNotify > pNotify ( guard, *this );
28- pNotify = syncGroupReadNotify::factory (
29+ pNotify = syncGroupReadNotify::factory (
30 this->freeListReadOP, *this, & CASG :: recycleReadNotifyIO, pChan, pValue );
31 pNotify->begin ( guard, type, count );
32 pNotify.release ();
33@@ -242,14 +242,14 @@ void CASG::completionNotify (
34 }
35 }
36
37-void CASG :: recycleReadNotifyIO ( epicsGuard < epicsMutex > & guard,
38+void CASG :: recycleReadNotifyIO ( epicsGuard < epicsMutex > & guard,
39 syncGroupReadNotify & io )
40 {
41 guard.assertIdenticalMutex ( this->client.mutexRef() );
42 this->freeListReadOP.release ( & io );
43 }
44
45-void CASG :: recycleWriteNotifyIO ( epicsGuard < epicsMutex > & guard,
46+void CASG :: recycleWriteNotifyIO ( epicsGuard < epicsMutex > & guard,
47 syncGroupWriteNotify & io )
48 {
49 guard.assertIdenticalMutex ( this->client.mutexRef() );
50diff --git a/modules/ca/src/client/SearchDest.h b/modules/ca/src/client/SearchDest.h
51index c22be7c..c31f688 100644
52--- a/modules/ca/src/client/SearchDest.h
53+++ b/modules/ca/src/client/SearchDest.h
54@@ -5,7 +5,7 @@
55 * Operator of Los Alamos National Laboratory.
56 * EPICS BASE Versions 3.13.7
57 * and higher are distributed subject to a Software License Agreement found
58- * in file LICENSE that is included with this distribution.
59+ * in file LICENSE that is included with this distribution.
60 \*************************************************************************/
61
62 #ifndef SearchDest_h
63@@ -28,7 +28,7 @@ struct SearchDest :
64 virtual void notify (
65 const caHdr & msg, const void * pPayload,
66 const osiSockAddr & addr, const epicsTime & ) = 0;
67- virtual void show (
68+ virtual void show (
69 epicsGuard < epicsMutex > &, unsigned level ) const = 0;
70 };
71 virtual void searchRequest ( epicsGuard < epicsMutex > &,
72diff --git a/modules/ca/src/client/access.cpp b/modules/ca/src/client/access.cpp
73index a36899c..528cd6c 100644
74--- a/modules/ca/src/client/access.cpp
75+++ b/modules/ca/src/client/access.cpp
76@@ -183,19 +183,19 @@ int epicsShareAPI ca_context_create (
77 }
78
79 pcac = ( ca_client_context * ) epicsThreadPrivateGet ( caClientContextId );
80- if ( pcac ) {
81+ if ( pcac ) {
82 if ( premptiveCallbackSelect == ca_enable_preemptive_callback &&
83 ! pcac->preemptiveCallbakIsEnabled() ) {
84 return ECA_NOTTHREADED;
85 }
86- return ECA_NORMAL;
87- }
88+ return ECA_NORMAL;
89+ }
90
91 pcac = new ca_client_context (
92 premptiveCallbackSelect == ca_enable_preemptive_callback );
93- if ( ! pcac ) {
94- return ECA_ALLOCMEM;
95- }
96+ if ( ! pcac ) {
97+ return ECA_ALLOCMEM;
98+ }
99
100 epicsThreadPrivateSet ( caClientContextId, (void *) pcac );
101 }
102@@ -467,7 +467,7 @@ int epicsShareAPI ca_pend_event ( ca_real timeout )
103 try {
104 // preserve past odd ball behavior of waiting forever when
105 // the delay is zero
106- if ( timeout == 0.0 ) {
107+ if ( timeout == 0.0 ) {
108 while ( true ) {
109 pcac->pendEvent ( 60.0 );
110 }
111@@ -696,7 +696,7 @@ int epicsShareAPI ca_channel_status ( epicsThreadId /* tid */ )
112 {
113 ::printf ("The R3.14 EPICS OS abstraction API does not allow peeking at thread private storage of another thread.\n");
114 ::printf ("Please call \"ca_client_status ( unsigned level )\" from the subsystem specific diagnostic code.\n");
115- return ECA_ANACHRONISM;
116+ return ECA_ANACHRONISM;
117 }
118
119 // extern "C"
120@@ -802,253 +802,253 @@ epicsShareDef const int epicsTypeToDBR_XXXX [lastEpicsType+1] = {
121
122 // extern "C"
123 epicsShareDef const epicsType DBR_XXXXToEpicsType [LAST_BUFFER_TYPE+1] = {
124- epicsOldStringT,
125- epicsInt16T,
126- epicsFloat32T,
127- epicsEnum16T,
128- epicsUInt8T,
129- epicsInt32T,
130- epicsFloat64T,
131-
132- epicsOldStringT,
133- epicsInt16T,
134- epicsFloat32T,
135- epicsEnum16T,
136- epicsUInt8T,
137- epicsInt32T,
138- epicsFloat64T,
139-
140- epicsOldStringT,
141- epicsInt16T,
142- epicsFloat32T,
143- epicsEnum16T,
144- epicsUInt8T,
145- epicsInt32T,
146- epicsFloat64T,
147-
148- epicsOldStringT,
149- epicsInt16T,
150- epicsFloat32T,
151- epicsEnum16T,
152- epicsUInt8T,
153- epicsInt32T,
154- epicsFloat64T,
155-
156- epicsOldStringT,
157- epicsInt16T,
158- epicsFloat32T,
159- epicsEnum16T,
160- epicsUInt8T,
161- epicsInt32T,
162- epicsFloat64T,
163-
164- epicsUInt16T,
165- epicsUInt16T,
166- epicsOldStringT,
167- epicsOldStringT
168+ epicsOldStringT,
169+ epicsInt16T,
170+ epicsFloat32T,
171+ epicsEnum16T,
172+ epicsUInt8T,
173+ epicsInt32T,
174+ epicsFloat64T,
175+
176+ epicsOldStringT,
177+ epicsInt16T,
178+ epicsFloat32T,
179+ epicsEnum16T,
180+ epicsUInt8T,
181+ epicsInt32T,
182+ epicsFloat64T,
183+
184+ epicsOldStringT,
185+ epicsInt16T,
186+ epicsFloat32T,
187+ epicsEnum16T,
188+ epicsUInt8T,
189+ epicsInt32T,
190+ epicsFloat64T,
191+
192+ epicsOldStringT,
193+ epicsInt16T,
194+ epicsFloat32T,
195+ epicsEnum16T,
196+ epicsUInt8T,
197+ epicsInt32T,
198+ epicsFloat64T,
199+
200+ epicsOldStringT,
201+ epicsInt16T,
202+ epicsFloat32T,
203+ epicsEnum16T,
204+ epicsUInt8T,
205+ epicsInt32T,
206+ epicsFloat64T,
207+
208+ epicsUInt16T,
209+ epicsUInt16T,
210+ epicsOldStringT,
211+ epicsOldStringT
212 };
213
214 // extern "C"
215 epicsShareDef const unsigned short dbr_size[LAST_BUFFER_TYPE+1] = {
216- sizeof(dbr_string_t), /* string max size */
217- sizeof(dbr_short_t), /* short */
218- sizeof(dbr_float_t), /* IEEE Float */
219- sizeof(dbr_enum_t), /* item number */
220- sizeof(dbr_char_t), /* character */
221-
222- sizeof(dbr_long_t), /* long */
223- sizeof(dbr_double_t), /* double */
224- sizeof(struct dbr_sts_string), /* string field with status */
225- sizeof(struct dbr_sts_short), /* short field with status */
226- sizeof(struct dbr_sts_float), /* float field with status */
227-
228- sizeof(struct dbr_sts_enum), /* item number with status */
229- sizeof(struct dbr_sts_char), /* char field with status */
230- sizeof(struct dbr_sts_long), /* long field with status */
231- sizeof(struct dbr_sts_double), /* double field with time */
232- sizeof(struct dbr_time_string), /* string field with time */
233-
234- sizeof(struct dbr_time_short), /* short field with time */
235- sizeof(struct dbr_time_float), /* float field with time */
236- sizeof(struct dbr_time_enum), /* item number with time */
237- sizeof(struct dbr_time_char), /* char field with time */
238- sizeof(struct dbr_time_long), /* long field with time */
239-
240- sizeof(struct dbr_time_double), /* double field with time */
241- sizeof(struct dbr_sts_string), /* graphic string info */
242- sizeof(struct dbr_gr_short), /* graphic short info */
243- sizeof(struct dbr_gr_float), /* graphic float info */
244- sizeof(struct dbr_gr_enum), /* graphic item info */
245-
246- sizeof(struct dbr_gr_char), /* graphic char info */
247- sizeof(struct dbr_gr_long), /* graphic long info */
248- sizeof(struct dbr_gr_double), /* graphic double info */
249- sizeof(struct dbr_sts_string), /* control string info */
250- sizeof(struct dbr_ctrl_short), /* control short info */
251-
252- sizeof(struct dbr_ctrl_float), /* control float info */
253- sizeof(struct dbr_ctrl_enum), /* control item info */
254- sizeof(struct dbr_ctrl_char), /* control char info */
255- sizeof(struct dbr_ctrl_long), /* control long info */
256- sizeof(struct dbr_ctrl_double), /* control double info */
257-
258- sizeof(dbr_put_ackt_t), /* put ackt */
259- sizeof(dbr_put_acks_t), /* put acks */
260- sizeof(struct dbr_stsack_string),/* string field with status/ack*/
261- sizeof(dbr_string_t), /* string max size */
262+ sizeof(dbr_string_t), /* string max size */
263+ sizeof(dbr_short_t), /* short */
264+ sizeof(dbr_float_t), /* IEEE Float */
265+ sizeof(dbr_enum_t), /* item number */
266+ sizeof(dbr_char_t), /* character */
267+
268+ sizeof(dbr_long_t), /* long */
269+ sizeof(dbr_double_t), /* double */
270+ sizeof(struct dbr_sts_string), /* string field with status */
271+ sizeof(struct dbr_sts_short), /* short field with status */
272+ sizeof(struct dbr_sts_float), /* float field with status */
273+
274+ sizeof(struct dbr_sts_enum), /* item number with status */
275+ sizeof(struct dbr_sts_char), /* char field with status */
276+ sizeof(struct dbr_sts_long), /* long field with status */
277+ sizeof(struct dbr_sts_double), /* double field with time */
278+ sizeof(struct dbr_time_string), /* string field with time */
279+
280+ sizeof(struct dbr_time_short), /* short field with time */
281+ sizeof(struct dbr_time_float), /* float field with time */
282+ sizeof(struct dbr_time_enum), /* item number with time */
283+ sizeof(struct dbr_time_char), /* char field with time */
284+ sizeof(struct dbr_time_long), /* long field with time */
285+
286+ sizeof(struct dbr_time_double), /* double field with time */
287+ sizeof(struct dbr_sts_string), /* graphic string info */
288+ sizeof(struct dbr_gr_short), /* graphic short info */
289+ sizeof(struct dbr_gr_float), /* graphic float info */
290+ sizeof(struct dbr_gr_enum), /* graphic item info */
291+
292+ sizeof(struct dbr_gr_char), /* graphic char info */
293+ sizeof(struct dbr_gr_long), /* graphic long info */
294+ sizeof(struct dbr_gr_double), /* graphic double info */
295+ sizeof(struct dbr_sts_string), /* control string info */
296+ sizeof(struct dbr_ctrl_short), /* control short info */
297+
298+ sizeof(struct dbr_ctrl_float), /* control float info */
299+ sizeof(struct dbr_ctrl_enum), /* control item info */
300+ sizeof(struct dbr_ctrl_char), /* control char info */
301+ sizeof(struct dbr_ctrl_long), /* control long info */
302+ sizeof(struct dbr_ctrl_double), /* control double info */
303+
304+ sizeof(dbr_put_ackt_t), /* put ackt */
305+ sizeof(dbr_put_acks_t), /* put acks */
306+ sizeof(struct dbr_stsack_string),/* string field with status/ack*/
307+ sizeof(dbr_string_t), /* string max size */
308 };
309
310 // extern "C"
311 epicsShareDef const unsigned short dbr_value_size[LAST_BUFFER_TYPE+1] = {
312- sizeof(dbr_string_t), /* string max size */
313- sizeof(dbr_short_t), /* short */
314- sizeof(dbr_float_t), /* IEEE Float */
315- sizeof(dbr_enum_t), /* item number */
316- sizeof(dbr_char_t), /* character */
317-
318- sizeof(dbr_long_t), /* long */
319- sizeof(dbr_double_t), /* double */
320- sizeof(dbr_string_t), /* string max size */
321- sizeof(dbr_short_t), /* short */
322- sizeof(dbr_float_t), /* IEEE Float */
323-
324- sizeof(dbr_enum_t), /* item number */
325- sizeof(dbr_char_t), /* character */
326- sizeof(dbr_long_t), /* long */
327- sizeof(dbr_double_t), /* double */
328- sizeof(dbr_string_t), /* string max size */
329-
330- sizeof(dbr_short_t), /* short */
331- sizeof(dbr_float_t), /* IEEE Float */
332- sizeof(dbr_enum_t), /* item number */
333- sizeof(dbr_char_t), /* character */
334- sizeof(dbr_long_t), /* long */
335-
336- sizeof(dbr_double_t), /* double */
337- sizeof(dbr_string_t), /* string max size */
338- sizeof(dbr_short_t), /* short */
339- sizeof(dbr_float_t), /* IEEE Float */
340- sizeof(dbr_enum_t), /* item number */
341-
342- sizeof(dbr_char_t), /* character */
343- sizeof(dbr_long_t), /* long */
344- sizeof(dbr_double_t), /* double */
345- sizeof(dbr_string_t), /* string max size */
346- sizeof(dbr_short_t), /* short */
347-
348- sizeof(dbr_float_t), /* IEEE Float */
349- sizeof(dbr_enum_t), /* item number */
350- sizeof(dbr_char_t), /* character */
351- sizeof(dbr_long_t), /* long */
352- sizeof(dbr_double_t), /* double */
353-
354- sizeof(dbr_ushort_t), /* put_ackt */
355- sizeof(dbr_ushort_t), /* put_acks */
356- sizeof(dbr_string_t), /* string max size */
357- sizeof(dbr_string_t), /* string max size */
358+ sizeof(dbr_string_t), /* string max size */
359+ sizeof(dbr_short_t), /* short */
360+ sizeof(dbr_float_t), /* IEEE Float */
361+ sizeof(dbr_enum_t), /* item number */
362+ sizeof(dbr_char_t), /* character */
363+
364+ sizeof(dbr_long_t), /* long */
365+ sizeof(dbr_double_t), /* double */
366+ sizeof(dbr_string_t), /* string max size */
367+ sizeof(dbr_short_t), /* short */
368+ sizeof(dbr_float_t), /* IEEE Float */
369+
370+ sizeof(dbr_enum_t), /* item number */
371+ sizeof(dbr_char_t), /* character */
372+ sizeof(dbr_long_t), /* long */
373+ sizeof(dbr_double_t), /* double */
374+ sizeof(dbr_string_t), /* string max size */
375+
376+ sizeof(dbr_short_t), /* short */
377+ sizeof(dbr_float_t), /* IEEE Float */
378+ sizeof(dbr_enum_t), /* item number */
379+ sizeof(dbr_char_t), /* character */
380+ sizeof(dbr_long_t), /* long */
381+
382+ sizeof(dbr_double_t), /* double */
383+ sizeof(dbr_string_t), /* string max size */
384+ sizeof(dbr_short_t), /* short */
385+ sizeof(dbr_float_t), /* IEEE Float */
386+ sizeof(dbr_enum_t), /* item number */
387+
388+ sizeof(dbr_char_t), /* character */
389+ sizeof(dbr_long_t), /* long */
390+ sizeof(dbr_double_t), /* double */
391+ sizeof(dbr_string_t), /* string max size */
392+ sizeof(dbr_short_t), /* short */
393+
394+ sizeof(dbr_float_t), /* IEEE Float */
395+ sizeof(dbr_enum_t), /* item number */
396+ sizeof(dbr_char_t), /* character */
397+ sizeof(dbr_long_t), /* long */
398+ sizeof(dbr_double_t), /* double */
399+
400+ sizeof(dbr_ushort_t), /* put_ackt */
401+ sizeof(dbr_ushort_t), /* put_acks */
402+ sizeof(dbr_string_t), /* string max size */
403+ sizeof(dbr_string_t), /* string max size */
404 };
405
406 //extern "C"
407 epicsShareDef const enum dbr_value_class dbr_value_class[LAST_BUFFER_TYPE+1] = {
408- dbr_class_string, /* string max size */
409- dbr_class_int, /* short */
410- dbr_class_float, /* IEEE Float */
411- dbr_class_int, /* item number */
412- dbr_class_int, /* character */
413- dbr_class_int, /* long */
414- dbr_class_float, /* double */
415-
416- dbr_class_string, /* string max size */
417- dbr_class_int, /* short */
418- dbr_class_float, /* IEEE Float */
419- dbr_class_int, /* item number */
420- dbr_class_int, /* character */
421- dbr_class_int, /* long */
422- dbr_class_float, /* double */
423-
424- dbr_class_string, /* string max size */
425- dbr_class_int, /* short */
426- dbr_class_float, /* IEEE Float */
427- dbr_class_int, /* item number */
428- dbr_class_int, /* character */
429- dbr_class_int, /* long */
430- dbr_class_float, /* double */
431-
432- dbr_class_string, /* string max size */
433- dbr_class_int, /* short */
434- dbr_class_float, /* IEEE Float */
435- dbr_class_int, /* item number */
436- dbr_class_int, /* character */
437- dbr_class_int, /* long */
438- dbr_class_float, /* double */
439-
440- dbr_class_string, /* string max size */
441- dbr_class_int, /* short */
442- dbr_class_float, /* IEEE Float */
443- dbr_class_int, /* item number */
444- dbr_class_int, /* character */
445- dbr_class_int, /* long */
446- dbr_class_float, /* double */
447- dbr_class_int,
448- dbr_class_int,
449- dbr_class_string,
450- dbr_class_string, /* string max size */
451+ dbr_class_string, /* string max size */
452+ dbr_class_int, /* short */
453+ dbr_class_float, /* IEEE Float */
454+ dbr_class_int, /* item number */
455+ dbr_class_int, /* character */
456+ dbr_class_int, /* long */
457+ dbr_class_float, /* double */
458+
459+ dbr_class_string, /* string max size */
460+ dbr_class_int, /* short */
461+ dbr_class_float, /* IEEE Float */
462+ dbr_class_int, /* item number */
463+ dbr_class_int, /* character */
464+ dbr_class_int, /* long */
465+ dbr_class_float, /* double */
466+
467+ dbr_class_string, /* string max size */
468+ dbr_class_int, /* short */
469+ dbr_class_float, /* IEEE Float */
470+ dbr_class_int, /* item number */
471+ dbr_class_int, /* character */
472+ dbr_class_int, /* long */
473+ dbr_class_float, /* double */
474+
475+ dbr_class_string, /* string max size */
476+ dbr_class_int, /* short */
477+ dbr_class_float, /* IEEE Float */
478+ dbr_class_int, /* item number */
479+ dbr_class_int, /* character */
480+ dbr_class_int, /* long */
481+ dbr_class_float, /* double */
482+
483+ dbr_class_string, /* string max size */
484+ dbr_class_int, /* short */
485+ dbr_class_float, /* IEEE Float */
486+ dbr_class_int, /* item number */
487+ dbr_class_int, /* character */
488+ dbr_class_int, /* long */
489+ dbr_class_float, /* double */
490+ dbr_class_int,
491+ dbr_class_int,
492+ dbr_class_string,
493+ dbr_class_string, /* string max size */
494 };
495
496 // extern "C"
497 epicsShareDef const unsigned short dbr_value_offset[LAST_BUFFER_TYPE+1] = {
498- 0, /* string */
499- 0, /* short */
500- 0, /* IEEE Float */
501- 0, /* item number */
502- 0, /* character */
503- 0, /* long */
504- 0, /* IEEE double */
505- (unsigned short) offsetof(dbr_sts_string,value[0]),/* string field with status */
506- (unsigned short) offsetof(dbr_sts_short,value), /* short field with status */
507- (unsigned short) offsetof(dbr_sts_float,value), /* float field with status */
508- (unsigned short) offsetof(dbr_sts_enum,value), /* item number with status */
509- (unsigned short) offsetof(dbr_sts_char,value), /* char field with status */
510- (unsigned short) offsetof(dbr_sts_long,value), /* long field with status */
511- (unsigned short) offsetof(dbr_sts_double,value), /* double field with time */
512- (unsigned short) offsetof(dbr_time_string,value[0] ),/* string field with time */
513- (unsigned short) offsetof(dbr_time_short,value), /* short field with time */
514- (unsigned short) offsetof(dbr_time_float,value), /* float field with time */
515- (unsigned short) offsetof(dbr_time_enum,value), /* item number with time */
516- (unsigned short) offsetof(dbr_time_char,value), /* char field with time */
517- (unsigned short) offsetof(dbr_time_long,value), /* long field with time */
518- (unsigned short) offsetof(dbr_time_double,value), /* double field with time */
519- (unsigned short) offsetof(dbr_sts_string,value[0]),/* graphic string info */
520- (unsigned short) offsetof(dbr_gr_short,value), /* graphic short info */
521- (unsigned short) offsetof(dbr_gr_float,value), /* graphic float info */
522- (unsigned short) offsetof(dbr_gr_enum,value), /* graphic item info */
523- (unsigned short) offsetof(dbr_gr_char,value), /* graphic char info */
524- (unsigned short) offsetof(dbr_gr_long,value), /* graphic long info */
525- (unsigned short) offsetof(dbr_gr_double,value), /* graphic double info */
526- (unsigned short) offsetof(dbr_sts_string,value[0]),/* control string info */
527- (unsigned short) offsetof(dbr_ctrl_short,value), /* control short info */
528- (unsigned short) offsetof(dbr_ctrl_float,value), /* control float info */
529- (unsigned short) offsetof(dbr_ctrl_enum,value), /* control item info */
530- (unsigned short) offsetof(dbr_ctrl_char,value), /* control char info */
531- (unsigned short) offsetof(dbr_ctrl_long,value), /* control long info */
532- (unsigned short) offsetof(dbr_ctrl_double,value), /* control double info */
533- 0, /* put ackt */
534- 0, /* put acks */
535- (unsigned short) offsetof(dbr_stsack_string,value[0]),/* string field with status */
536- 0, /* string */
537+ 0, /* string */
538+ 0, /* short */
539+ 0, /* IEEE Float */
540+ 0, /* item number */
541+ 0, /* character */
542+ 0, /* long */
543+ 0, /* IEEE double */
544+ (unsigned short) offsetof(dbr_sts_string,value[0]), /* string field with status */
545+ (unsigned short) offsetof(dbr_sts_short,value), /* short field with status */
546+ (unsigned short) offsetof(dbr_sts_float,value), /* float field with status */
547+ (unsigned short) offsetof(dbr_sts_enum,value), /* item number with status */
548+ (unsigned short) offsetof(dbr_sts_char,value), /* char field with status */
549+ (unsigned short) offsetof(dbr_sts_long,value), /* long field with status */
550+ (unsigned short) offsetof(dbr_sts_double,value), /* double field with time */
551+ (unsigned short) offsetof(dbr_time_string,value[0] ), /* string field with time */
552+ (unsigned short) offsetof(dbr_time_short,value), /* short field with time */
553+ (unsigned short) offsetof(dbr_time_float,value), /* float field with time */
554+ (unsigned short) offsetof(dbr_time_enum,value), /* item number with time */
555+ (unsigned short) offsetof(dbr_time_char,value), /* char field with time */
556+ (unsigned short) offsetof(dbr_time_long,value), /* long field with time */
557+ (unsigned short) offsetof(dbr_time_double,value), /* double field with time */
558+ (unsigned short) offsetof(dbr_sts_string,value[0]), /* graphic string info */
559+ (unsigned short) offsetof(dbr_gr_short,value), /* graphic short info */
560+ (unsigned short) offsetof(dbr_gr_float,value), /* graphic float info */
561+ (unsigned short) offsetof(dbr_gr_enum,value), /* graphic item info */
562+ (unsigned short) offsetof(dbr_gr_char,value), /* graphic char info */
563+ (unsigned short) offsetof(dbr_gr_long,value), /* graphic long info */
564+ (unsigned short) offsetof(dbr_gr_double,value), /* graphic double info */
565+ (unsigned short) offsetof(dbr_sts_string,value[0]), /* control string info */
566+ (unsigned short) offsetof(dbr_ctrl_short,value), /* control short info */
567+ (unsigned short) offsetof(dbr_ctrl_float,value), /* control float info */
568+ (unsigned short) offsetof(dbr_ctrl_enum,value), /* control item info */
569+ (unsigned short) offsetof(dbr_ctrl_char,value), /* control char info */
570+ (unsigned short) offsetof(dbr_ctrl_long,value), /* control long info */
571+ (unsigned short) offsetof(dbr_ctrl_double,value), /* control double info */
572+ 0, /* put ackt */
573+ 0, /* put acks */
574+ (unsigned short) offsetof(dbr_stsack_string,value[0]), /* string field with status */
575+ 0, /* string */
576 };
577
578 // extern "C"
579 epicsShareDef const char *dbf_text[LAST_TYPE+3] = {
580- "TYPENOTCONN",
581- "DBF_STRING",
582- "DBF_SHORT",
583- "DBF_FLOAT",
584- "DBF_ENUM",
585- "DBF_CHAR",
586- "DBF_LONG",
587- "DBF_DOUBLE",
588- "DBF_NO_ACCESS"
589+ "TYPENOTCONN",
590+ "DBF_STRING",
591+ "DBF_SHORT",
592+ "DBF_FLOAT",
593+ "DBF_ENUM",
594+ "DBF_CHAR",
595+ "DBF_LONG",
596+ "DBF_DOUBLE",
597+ "DBF_NO_ACCESS"
598 };
599
600 // extern "C"
601diff --git a/modules/ca/src/client/acctst.c b/modules/ca/src/client/acctst.c
602index fd18ae4..9f3e907 100644
603--- a/modules/ca/src/client/acctst.c
604+++ b/modules/ca/src/client/acctst.c
605@@ -5,7 +5,7 @@
606 * Operator of Los Alamos National Laboratory.
607 * EPICS BASE Versions 3.13.7
608 * and higher are distributed subject to a Software License Agreement found
609-* in file LICENSE that is included with this distribution.
610+* in file LICENSE that is included with this distribution.
611 \*************************************************************************/
612
613 /*
614@@ -14,7 +14,7 @@
615 * Jeff Hill
616 * Murali Shankar - initial versions of verifyMultithreadSubscr
617 * Michael Abbott - initial versions of multiSubscrDestroyNoLateCallbackTest
618- *
619+ *
620 */
621
622 /*
623@@ -110,7 +110,7 @@ void nUpdatesTester ( struct event_handler_args args )
624 ( *pCtr ) ++;
625 }
626 else {
627- printf ( "subscription update failed for \"%s\" because \"%s\"",
628+ printf ( "subscription update failed for \"%s\" because \"%s\"",
629 ca_name ( args.chid ), ca_message ( args.status ) );
630 }
631 }
632@@ -131,7 +131,7 @@ void monitorSubscriptionFirstUpdateTest ( const char *pName, chid chan, unsigned
633 * verify that the first event arrives (with evid)
634 * and channel connected
635 */
636- status = ca_add_event ( DBR_FLOAT,
637+ status = ca_add_event ( DBR_FLOAT,
638 chan, nUpdatesTester, &eventCount, &id );
639 SEVCHK ( status, 0 );
640 ca_flush_io ();
641@@ -190,7 +190,7 @@ void monitorSubscriptionFirstUpdateTest ( const char *pName, chid chan, unsigned
642 waitCount = 0u;
643 status = ca_search ( pName, &chan2 );
644 SEVCHK ( status, 0 );
645- status = ca_add_event ( DBR_FLOAT, chan2,
646+ status = ca_add_event ( DBR_FLOAT, chan2,
647 nUpdatesTester, &eventCount, 0 );
648 SEVCHK ( status, 0 );
649 status = ca_pend_io ( timeoutToPendIO );
650@@ -250,7 +250,7 @@ void ioTesterGet ( struct event_handler_args args )
651 ( *pCtr ) ++;
652 }
653 else {
654- printf("get call back failed for \"%s\" because \"%s\"",
655+ printf("get call back failed for \"%s\" because \"%s\"",
656 ca_name ( args.chid ), ca_message ( args.status ) );
657 }
658 }
659@@ -263,7 +263,7 @@ void ioTesterEvent ( struct event_handler_args args )
660 SEVCHK ( status, 0 );
661 }
662 else {
663- printf ( "subscription update failed for \"%s\" because \"%s\"",
664+ printf ( "subscription update failed for \"%s\" because \"%s\"",
665 ca_name ( args.chid ), ca_message ( args.status ) );
666 }
667 }
668@@ -280,7 +280,7 @@ void verifyMonitorSubscriptionFlushIO ( chid chan, unsigned interestLevel )
669 /*
670 * verify that the first event arrives
671 */
672- status = ca_add_event ( DBR_FLOAT,
673+ status = ca_add_event ( DBR_FLOAT,
674 chan, nUpdatesTester, &eventCount, &id );
675 SEVCHK (status, 0);
676 ca_flush_io ();
677@@ -317,8 +317,8 @@ void getCallbackStateChange ( struct event_handler_args args )
678 verify ( pChan->channel == args.chid );
679 verify ( pChan->connected );
680 if ( args.status != ECA_NORMAL ) {
681- printf ( "getCallbackStateChange abnormal status was \"%s\"\n",
682- ca_message ( args.status ) );
683+ printf ( "getCallbackStateChange abnormal status was \"%s\"\n",
684+ ca_message ( args.status ) );
685 verify ( args.status == ECA_NORMAL );
686 }
687
688@@ -373,7 +373,7 @@ void subscriptionStateChange ( struct event_handler_args args )
689 void noopSubscriptionStateChange ( struct event_handler_args args )
690 {
691 if ( args.status != ECA_NORMAL ) {
692- printf ( "noopSubscriptionStateChange: subscription update failed for \"%s\" because \"%s\"",
693+ printf ( "noopSubscriptionStateChange: subscription update failed for \"%s\" because \"%s\"",
694 ca_name ( args.chid ), ca_message ( args.status ) );
695 }
696 }
697@@ -396,7 +396,7 @@ void noopSubscriptionStateChange ( struct event_handler_args args )
698 *
699 * 7) verify that a nill access rights handler can be installed
700 */
701-void verifyConnectionHandlerConnect ( appChan *pChans, unsigned chanCount,
702+void verifyConnectionHandlerConnect ( appChan *pChans, unsigned chanCount,
703 unsigned repetitionCount, unsigned interestLevel )
704 {
705 int status;
706@@ -439,7 +439,7 @@ void verifyConnectionHandlerConnect ( appChan *pChans, unsigned chanCount,
707
708 showProgress ( interestLevel );
709
710- while ( connectionUpdateCount < chanCount ||
711+ while ( connectionUpdateCount < chanCount ||
712 getCallbackCount < chanCount ) {
713 epicsThreadSleep ( 0.1 );
714 ca_poll (); /* emulate typical GUI */
715@@ -471,7 +471,7 @@ void verifyConnectionHandlerConnect ( appChan *pChans, unsigned chanCount,
716 ca_self_test ();
717
718 showProgress ( interestLevel );
719-
720+
721 for ( j = 0u; j < chanCount; j++ ) {
722 status = ca_replace_access_rights_event (
723 pChans[j].channel, 0 );
724@@ -494,7 +494,7 @@ void verifyConnectionHandlerConnect ( appChan *pChans, unsigned chanCount,
725 /*
726 * verifyBlockingConnect ()
727 *
728- * 1) verify that we dont print a disconnect message when
729+ * 1) verify that we dont print a disconnect message when
730 * we delete the last channel
731 *
732 * 2) verify that we delete the connection to the IOC
733@@ -502,7 +502,7 @@ void verifyConnectionHandlerConnect ( appChan *pChans, unsigned chanCount,
734 *
735 * 3) verify channel connection state variables
736 *
737- * 4) verify ca_test_io () and ca_pend_io () work with
738+ * 4) verify ca_test_io () and ca_pend_io () work with
739 * channels w/o connection handlers
740 *
741 * 5) verify that the pending IO count is properly
742@@ -512,7 +512,7 @@ void verifyConnectionHandlerConnect ( appChan *pChans, unsigned chanCount,
743 * 6) verify that the pending IO count goes to zero
744 * if the channel is deleted before it connects.
745 */
746-void verifyBlockingConnect ( appChan *pChans, unsigned chanCount,
747+void verifyBlockingConnect ( appChan *pChans, unsigned chanCount,
748 unsigned repetitionCount, unsigned interestLevel )
749 {
750 int status;
751@@ -551,7 +551,7 @@ void verifyBlockingConnect ( appChan *pChans, unsigned chanCount,
752 verify ( INVALID_DB_REQ ( ca_field_type ( pChans[j].channel ) ) );
753 verify ( ca_test_io () == ECA_IOINPROGRESS );
754 }
755-
756+
757 status = ca_replace_access_rights_event (
758 pChans[j].channel, accessRightsStateChange );
759 SEVCHK ( status, NULL );
760@@ -605,7 +605,7 @@ void verifyBlockingConnect ( appChan *pChans, unsigned chanCount,
761 showProgress ( interestLevel );
762
763 /*
764- * verify that connections to IOC's that are
765+ * verify that connections to IOC's that are
766 * not in use are dropped
767 */
768 if ( ca_get_ioc_connection_count () != backgroundConnCount ) {
769@@ -698,13 +698,13 @@ void verifyClear ( appChan *pChans, unsigned interestLevel )
770
771 /*
772 * verify subscription clear before connect
773- * and verify that NULL evid does not cause failure
774+ * and verify that NULL evid does not cause failure
775 */
776 status = ca_search ( pChans[0].name, &pChans[0].channel );
777 SEVCHK ( status, NULL );
778
779 SEVCHK ( status, NULL );
780- status = ca_add_event ( DBR_GR_DOUBLE,
781+ status = ca_add_event ( DBR_GR_DOUBLE,
782 pChans[0].channel, noopSubscriptionStateChange, NULL, NULL );
783 SEVCHK ( status, NULL );
784
785@@ -791,7 +791,7 @@ void ctrlDoubleTest ( chid chan, unsigned interestLevel )
786 SEVCHK (status, "ctrlDoubleTest, ca_array_put");
787
788 size = dbr_size_n(DBR_CTRL_DOUBLE, ca_element_count(chan));
789- pCtrlDbl = (struct dbr_ctrl_double *) malloc (size);
790+ pCtrlDbl = (struct dbr_ctrl_double *) malloc (size);
791 verify (pCtrlDbl!=NULL);
792
793 /*
794@@ -846,7 +846,7 @@ void verifyBlockInPendIO ( chid chan, unsigned interestLevel )
795 else if ( resp != -100 ) {
796 printf ( "CA didnt block for get to return?\n" );
797 }
798-
799+
800 req = 1;
801 resp = -100;
802 SEVCHK ( ca_put (DBR_LONG, chan, &req), NULL );
803@@ -898,7 +898,7 @@ void floatTest ( chid chan, dbr_float_t beginValue, dbr_float_t increment,
804 /*
805 * doubleTest ()
806 */
807-void doubleTest ( chid chan, dbr_double_t beginValue,
808+void doubleTest ( chid chan, dbr_double_t beginValue,
809 dbr_double_t increment, dbr_double_t epsilon,
810 unsigned iterations)
811 {
812@@ -929,7 +929,7 @@ void doubleTest ( chid chan, dbr_double_t beginValue,
813 * Verify that we can write and then read back
814 * the same analog value
815 */
816-void verifyAnalogIO ( chid chan, int dataType, double min, double max,
817+void verifyAnalogIO ( chid chan, int dataType, double min, double max,
818 int minExp, int maxExp, double epsilon, unsigned interestLevel )
819 {
820 int i;
821@@ -962,11 +962,11 @@ void verifyAnalogIO ( chid chan, int dataType, double min, double max,
822 iter = 10u;
823 }
824 if ( dataType == DBR_FLOAT ) {
825- floatTest ( chan, (dbr_float_t) base, (dbr_float_t) incr,
826+ floatTest ( chan, (dbr_float_t) base, (dbr_float_t) incr,
827 (dbr_float_t) epsil, iter );
828 }
829 else if (dataType == DBR_DOUBLE ) {
830- doubleTest ( chan, (dbr_double_t) base, (dbr_double_t) incr,
831+ doubleTest ( chan, (dbr_double_t) base, (dbr_double_t) incr,
832 (dbr_double_t) epsil, iter );
833 }
834 else {
835@@ -983,11 +983,11 @@ void verifyAnalogIO ( chid chan, int dataType, double min, double max,
836 iter = 10u;
837 }
838 if ( dataType == DBR_FLOAT ) {
839- floatTest ( chan, (dbr_float_t) base, (dbr_float_t) incr,
840+ floatTest ( chan, (dbr_float_t) base, (dbr_float_t) incr,
841 (dbr_float_t) epsil, iter );
842 }
843 else if (dataType == DBR_DOUBLE ) {
844- doubleTest ( chan, (dbr_double_t) base, (dbr_double_t) incr,
845+ doubleTest ( chan, (dbr_double_t) base, (dbr_double_t) incr,
846 (dbr_double_t) epsil, iter );
847 }
848 else {
849@@ -1004,11 +1004,11 @@ void verifyAnalogIO ( chid chan, int dataType, double min, double max,
850 iter = 10l;
851 }
852 if ( dataType == DBR_FLOAT ) {
853- floatTest ( chan, (dbr_float_t) base, (dbr_float_t) incr,
854+ floatTest ( chan, (dbr_float_t) base, (dbr_float_t) incr,
855 (dbr_float_t) epsil, iter );
856 }
857 else if (dataType == DBR_DOUBLE ) {
858- doubleTest ( chan, (dbr_double_t) base, (dbr_double_t) incr,
859+ doubleTest ( chan, (dbr_double_t) base, (dbr_double_t) incr,
860 (dbr_double_t) epsil, iter );
861 }
862 else {
863@@ -1045,7 +1045,7 @@ void verifyLongIO ( chid chan, unsigned interestLevel )
864 if ( incr == 0 ) {
865 incr = 1;
866 }
867- for ( iter = cl.lower_ctrl_limit;
868+ for ( iter = cl.lower_ctrl_limit;
869 iter <= cl.upper_ctrl_limit; iter+=incr ) {
870
871 ca_put ( DBR_LONG, chan, &iter );
872@@ -1089,8 +1089,8 @@ void verifyShortIO ( chid chan, unsigned interestLevel )
873 if ( incr == 0 ) {
874 incr = 1;
875 }
876- for ( iter = (dbr_short_t) cl.lower_ctrl_limit;
877- iter <= (dbr_short_t) cl.upper_ctrl_limit;
878+ for ( iter = (dbr_short_t) cl.lower_ctrl_limit;
879+ iter <= (dbr_short_t) cl.upper_ctrl_limit;
880 iter = (dbr_short_t) (iter + incr) ) {
881
882 ca_put ( DBR_SHORT, chan, &iter );
883@@ -1131,7 +1131,7 @@ void verifyHighThroughputRead ( chid chan, unsigned interestLevel )
884 }
885 }
886
887-void verifyHighThroughputWrite ( chid chan, unsigned interestLevel )
888+void verifyHighThroughputWrite ( chid chan, unsigned interestLevel )
889 {
890 int status;
891 unsigned i;
892@@ -1155,12 +1155,12 @@ void verifyHighThroughputWrite ( chid chan, unsigned interestLevel )
893 * verify we dont jam up on many uninterrupted
894 * get callback requests
895 */
896-void verifyHighThroughputReadCallback ( chid chan, unsigned interestLevel )
897+void verifyHighThroughputReadCallback ( chid chan, unsigned interestLevel )
898 {
899 unsigned i;
900 int status;
901
902- if ( ca_read_access ( chan ) ) {
903+ if ( ca_read_access ( chan ) ) {
904 unsigned count = 0u;
905 showProgressBegin ( "verifyHighThroughputReadCallback", interestLevel );
906 for ( i=0; i<10000; i++ ) {
907@@ -1203,10 +1203,10 @@ void verifyHighThroughputWriteCallback ( chid chan, unsigned interestLevel )
908 SEVCHK ( ca_flush_io (), NULL );
909 dval = 0.0;
910 status = ca_get ( DBR_DOUBLE, chan, &dval );
911- SEVCHK ( status,
912+ SEVCHK ( status,
913 "verifyHighThroughputWriteCallback, verification get" );
914 status = ca_pend_io ( timeoutToPendIO );
915- SEVCHK ( status,
916+ SEVCHK ( status,
917 "verifyHighThroughputWriteCallback, verification get pend" );
918 verify ( dval == i );
919 showProgressEnd ( interestLevel );
920@@ -1360,9 +1360,9 @@ static void noLateCallbackDetect ( struct event_handler_args args )
921 verify ( callbackIsOk );
922 }
923
924-static void multiSubscrDestroyNoLateCallbackThread ( void * pParm )
925+static void multiSubscrDestroyNoLateCallbackThread ( void * pParm )
926 {
927- struct MultiSubscrDestroyNoLateCallbackTestData * const pTestData =
928+ struct MultiSubscrDestroyNoLateCallbackTestData * const pTestData =
929 ( struct MultiSubscrDestroyNoLateCallbackTestData * ) pParm;
930 unsigned i, j;
931 int status;
932@@ -1391,10 +1391,10 @@ static void multiSubscrDestroyNoLateCallbackThread ( void * pParm )
933 SEVCHK ( ca_add_event ( DBR_GR_FLOAT, pTestData->m_chan, noLateCallbackDetect,
934 &pTestData->m_eventData[j], &pTestData->m_eventData[j].m_id ) , NULL );
935 }
936- SEVCHK ( ca_flush_io(), NULL );
937+ SEVCHK ( ca_flush_io(), NULL );
938
939 /*
940- * raise the priority of the current thread hoping to improve our
941+ * raise the priority of the current thread hoping to improve our
942 * likelyhood of detecting a bug
943 */
944 priorityOfTestThread = epicsThreadGetPrioritySelf ();
945@@ -1445,7 +1445,7 @@ static void multiSubscrDestroyNoLateCallbackThread ( void * pParm )
946 }
947
948 /*
949- * verify that, in a preemtive callback mode client, a subscription callback never
950+ * verify that, in a preemtive callback mode client, a subscription callback never
951 * comes after the subscription is destroyed
952 */
953 static void multiSubscrDestroyNoLateCallbackTest ( const char *pName, unsigned interestLevel )
954@@ -1456,13 +1456,13 @@ static void multiSubscrDestroyNoLateCallbackTest ( const char *pName, unsigned i
955
956 pTestData = calloc ( 1u, sizeof ( struct MultiSubscrDestroyNoLateCallbackTestData ) );
957 verify ( pTestData );
958- pTestData->m_mutex = epicsMutexMustCreate ();
959+ pTestData->m_mutex = epicsMutexMustCreate ();
960 pTestData->m_testDoneEvent = epicsEventMustCreate ( epicsEventEmpty );
961 pTestData->m_pChanName = pName;
962 pTestData->m_interestLevel = interestLevel;
963 epicsThreadMustCreate (
964 "multiSubscrDestroyNoLateCallbackTest",
965- epicsThreadPriorityLow,
966+ epicsThreadPriorityLow,
967 epicsThreadGetStackSize ( epicsThreadStackMedium ),
968 multiSubscrDestroyNoLateCallbackThread,
969 pTestData );
970@@ -1488,7 +1488,7 @@ static void multiSubscrDestroyNoLateCallbackTest ( const char *pName, unsigned i
971 * 1) verify we can add many monitors at once
972 * 2) verify that under heavy load the last monitor
973 * returned is the last modification sent
974- * 3) attempt to delete monitors while many monitors
975+ * 3) attempt to delete monitors while many monitors
976 * are running
977 */
978 void multiSubscriptionDeleteTest ( chid chan, unsigned interestLevel )
979@@ -1497,7 +1497,7 @@ void multiSubscriptionDeleteTest ( chid chan, unsigned interestLevel )
980 evid mid[1000];
981 dbr_float_t temp, getResp;
982 unsigned i;
983-
984+
985 showProgressBegin ( "multiSubscriptionDeleteTest", interestLevel );
986
987 for ( i=0; i < NELEMENTS (mid); i++ ) {
988@@ -1510,7 +1510,7 @@ void multiSubscriptionDeleteTest ( chid chan, unsigned interestLevel )
989 * complete
990 *
991 * NOTE: this hopefully demonstrates that when the
992- * server is very busy with monitors the client
993+ * server is very busy with monitors the client
994 * is still able to punch through with a request.
995 */
996 SEVCHK ( ca_get ( DBR_FLOAT,chan,&getResp ), NULL );
997@@ -1521,7 +1521,7 @@ void multiSubscriptionDeleteTest ( chid chan, unsigned interestLevel )
998 /*
999 * attempt to generate heavy event traffic before initiating
1000 * the monitor delete
1001- */
1002+ */
1003 if ( ca_write_access (chan) ) {
1004 for ( i=0; i < NELEMENTS (mid); i++ ) {
1005 temp = (float) i;
1006@@ -1532,12 +1532,12 @@ void multiSubscriptionDeleteTest ( chid chan, unsigned interestLevel )
1007 showProgress ( interestLevel );
1008
1009 /*
1010- * without pausing begin deleting the event subscriptions
1011+ * without pausing begin deleting the event subscriptions
1012 * while the queue is full
1013 *
1014- * continue attempting to generate heavy event traffic
1015- * while deleting subscriptions with the hope that we will
1016- * deleting an event at the instant that its callback is
1017+ * continue attempting to generate heavy event traffic
1018+ * while deleting subscriptions with the hope that we will
1019+ * deleting an event at the instant that its callback is
1020 * occurring
1021 */
1022 for ( i=0; i < NELEMENTS (mid); i++ ) {
1023@@ -1557,14 +1557,14 @@ void multiSubscriptionDeleteTest ( chid chan, unsigned interestLevel )
1024 SEVCHK ( ca_pend_io (timeoutToPendIO), NULL );
1025
1026 showProgressEnd ( interestLevel );
1027-}
1028+}
1029
1030
1031 /*
1032 * singleSubscriptionDeleteTest
1033 *
1034- * verify that we dont fail when we repeatedly create
1035- * and delete only one subscription with a high level of
1036+ * verify that we dont fail when we repeatedly create
1037+ * and delete only one subscription with a high level of
1038 * traffic on it
1039 */
1040 void singleSubscriptionDeleteTest ( chid chan, unsigned interestLevel )
1041@@ -1573,7 +1573,7 @@ void singleSubscriptionDeleteTest ( chid chan, unsigned interestLevel )
1042 evid sid;
1043 dbr_float_t temp, getResp;
1044 unsigned i;
1045-
1046+
1047 showProgressBegin ( "singleSubscriptionDeleteTest", interestLevel );
1048
1049 for ( i=0; i < 1000; i++ ){
1050@@ -1595,14 +1595,14 @@ void singleSubscriptionDeleteTest ( chid chan, unsigned interestLevel )
1051 * attempt to generate heavy event traffic before initiating
1052 * the monitor delete
1053 *
1054- * try to interrupt the recv thread while it is processing
1055+ * try to interrupt the recv thread while it is processing
1056 * incoming subscription updates
1057- */
1058+ */
1059 if ( ca_write_access (chan) ) {
1060 unsigned j = 0;
1061 while ( j < i ) {
1062 temp = (float) j++;
1063- SEVCHK ( ca_put (DBR_FLOAT, chan, &temp),
1064+ SEVCHK ( ca_put (DBR_FLOAT, chan, &temp),
1065 "singleSubscriptionDeleteTest - one of multiple puts" );
1066 }
1067 ca_flush_io ();
1068@@ -1612,7 +1612,7 @@ void singleSubscriptionDeleteTest ( chid chan, unsigned interestLevel )
1069 }
1070
1071 showProgressEnd ( interestLevel );
1072-}
1073+}
1074
1075 /*
1076 * channelClearWithEventTrafficTest
1077@@ -1626,13 +1626,13 @@ void channelClearWithEventTrafficTest ( const char *pName, unsigned interestLeve
1078 evid sid;
1079 dbr_float_t temp, getResp;
1080 unsigned i;
1081-
1082+
1083 showProgressBegin ( "channelClearWithEventTrafficTest", interestLevel );
1084
1085 for ( i=0; i < 1000; i++ ) {
1086 chid chan;
1087
1088- int status = ca_create_channel ( pName, 0, 0,
1089+ int status = ca_create_channel ( pName, 0, 0,
1090 CA_PRIORITY_DEFAULT, &chan );
1091 status = ca_pend_io ( timeoutToPendIO );
1092 SEVCHK ( status, "channelClearWithEventTrafficTest: channel connect failed" );
1093@@ -1652,9 +1652,9 @@ void channelClearWithEventTrafficTest ( const char *pName, unsigned interestLeve
1094 * attempt to generate heavy event traffic before initiating
1095 * the channel delete
1096 *
1097- * try to interrupt the recv thread while it is processing
1098+ * try to interrupt the recv thread while it is processing
1099 * incoming subscription updates
1100- */
1101+ */
1102 if ( ca_write_access (chan) ) {
1103 unsigned j = 0;
1104 while ( j < i ) {
1105@@ -1669,7 +1669,7 @@ void channelClearWithEventTrafficTest ( const char *pName, unsigned interestLeve
1106 }
1107
1108 showProgressEnd ( interestLevel );
1109-}
1110+}
1111
1112
1113
1114@@ -1679,7 +1679,7 @@ void selfDeleteEvent ( struct event_handler_args args )
1115 {
1116 int status;
1117 status = ca_clear_event ( globalEventID );
1118- verify ( status == ECA_NORMAL );
1119+ verify ( status == ECA_NORMAL );
1120 }
1121
1122 void eventClearTest ( chid chan )
1123@@ -1687,29 +1687,29 @@ void eventClearTest ( chid chan )
1124 int status;
1125 evid monix1, monix2, monix3;
1126
1127- status = ca_add_event ( DBR_FLOAT, chan, noopSubscriptionStateChange,
1128+ status = ca_add_event ( DBR_FLOAT, chan, noopSubscriptionStateChange,
1129 NULL, &monix1 );
1130 SEVCHK ( status, NULL );
1131
1132 status = ca_clear_event ( monix1 );
1133 SEVCHK ( status, NULL );
1134
1135- status = ca_add_event ( DBR_FLOAT, chan, noopSubscriptionStateChange,
1136+ status = ca_add_event ( DBR_FLOAT, chan, noopSubscriptionStateChange,
1137 NULL, &monix1 );
1138 SEVCHK ( status, NULL );
1139
1140- status = ca_add_event ( DBR_FLOAT, chan, noopSubscriptionStateChange,
1141+ status = ca_add_event ( DBR_FLOAT, chan, noopSubscriptionStateChange,
1142 NULL, &monix2);
1143 SEVCHK (status, NULL);
1144
1145 status = ca_clear_event ( monix2 );
1146 SEVCHK ( status, NULL);
1147
1148- status = ca_add_event ( DBR_FLOAT, chan, noopSubscriptionStateChange,
1149+ status = ca_add_event ( DBR_FLOAT, chan, noopSubscriptionStateChange,
1150 NULL, &monix2);
1151 SEVCHK ( status, NULL );
1152
1153- status = ca_add_event ( DBR_FLOAT, chan, noopSubscriptionStateChange,
1154+ status = ca_add_event ( DBR_FLOAT, chan, noopSubscriptionStateChange,
1155 NULL, &monix3);
1156 SEVCHK ( status, NULL );
1157
1158@@ -1722,7 +1722,7 @@ void eventClearTest ( chid chan )
1159 status = ca_clear_event ( monix3 );
1160 SEVCHK ( status, NULL);
1161
1162- status = ca_add_event ( DBR_FLOAT, chan, selfDeleteEvent,
1163+ status = ca_add_event ( DBR_FLOAT, chan, selfDeleteEvent,
1164 0, &globalEventID );
1165 SEVCHK ( status, NULL );
1166 }
1167@@ -1739,7 +1739,7 @@ void arrayEventExceptionNotify ( struct event_handler_args args )
1168 if ( args.status == ECA_NORMAL ) {
1169 printf (
1170 "arrayEventExceptionNotify: expected "
1171- "exception but didnt receive one against \"%s\" \n",
1172+ "exception but didnt receive one against \"%s\" \n",
1173 ca_name ( args.chid ) );
1174 }
1175 else {
1176@@ -1765,8 +1765,8 @@ void exceptionTest ( chid chan, unsigned interestLevel )
1177
1178 pRS = malloc ( ca_element_count (chan) * sizeof (*pRS) );
1179 verify ( pRS );
1180- status = ca_array_get ( DBR_PUT_ACKT,
1181- ca_element_count (chan), chan, pRS );
1182+ status = ca_array_get ( DBR_PUT_ACKT,
1183+ ca_element_count (chan), chan, pRS );
1184 SEVCHK ( status, "array read request failed" );
1185 ca_pend_io ( 1e-5 );
1186 epicsThreadSleep ( 0.1 );
1187@@ -1787,8 +1787,8 @@ void exceptionTest ( chid chan, unsigned interestLevel )
1188 */
1189 {
1190 arrayEventExceptionNotifyComplete = 0u;
1191- status = ca_array_get_callback ( DBR_PUT_ACKT,
1192- ca_element_count (chan), chan, arrayEventExceptionNotify, 0 );
1193+ status = ca_array_get_callback ( DBR_PUT_ACKT,
1194+ ca_element_count (chan), chan, arrayEventExceptionNotify, 0 );
1195 if ( status != ECA_NORMAL ) {
1196 verify ( status == ECA_BADTYPE || status == ECA_GETFAIL );
1197 arrayEventExceptionNotifyComplete = 1;
1198@@ -1811,8 +1811,8 @@ void exceptionTest ( chid chan, unsigned interestLevel )
1199 evid id;
1200
1201 arrayEventExceptionNotifyComplete = 0u;
1202- status = ca_add_array_event ( DBR_PUT_ACKT, ca_element_count ( chan ),
1203- chan, arrayEventExceptionNotify, 0, 0.0, 0.0, 0.0, &id );
1204+ status = ca_add_array_event ( DBR_PUT_ACKT, ca_element_count ( chan ),
1205+ chan, arrayEventExceptionNotify, 0, 0.0, 0.0, 0.0, &id );
1206 if ( status != ECA_NORMAL ) {
1207 verify ( status == ECA_BADTYPE || status == ECA_GETFAIL );
1208 arrayEventExceptionNotifyComplete = 1;
1209@@ -1846,8 +1846,8 @@ void exceptionTest ( chid chan, unsigned interestLevel )
1210 for ( i = 0; i < ca_element_count (chan); i++ ) {
1211 strcpy ( pWS[i], "@#$%" );
1212 }
1213- status = ca_array_put ( DBR_STRING,
1214- ca_element_count (chan), chan, pWS );
1215+ status = ca_array_put ( DBR_STRING,
1216+ ca_element_count (chan), chan, pWS );
1217 if ( status != ECA_NORMAL ) {
1218 verify ( status == ECA_BADTYPE || status == ECA_PUTFAIL );
1219 acctstExceptionCount++; /* local PV case */
1220@@ -1879,9 +1879,9 @@ void exceptionTest ( chid chan, unsigned interestLevel )
1221 strcpy ( pWS[i], "@#$%" );
1222 }
1223 arrayEventExceptionNotifyComplete = 0u;
1224- status = ca_array_put_callback ( DBR_STRING,
1225+ status = ca_array_put_callback ( DBR_STRING,
1226 ca_element_count (chan), chan, pWS,
1227- arrayEventExceptionNotify, 0);
1228+ arrayEventExceptionNotify, 0);
1229 if ( status != ECA_NORMAL ) {
1230 arrayEventExceptionNotifyComplete = 1;
1231 }
1232@@ -1924,7 +1924,7 @@ void arrayWriteNotify ( struct event_handler_args args )
1233 arrayWriteNotifyComplete = 1;
1234 }
1235 else {
1236- printf ( "arrayWriteNotify: update failed for \"%s\" because \"%s\"",
1237+ printf ( "arrayWriteNotify: update failed for \"%s\" because \"%s\"",
1238 ca_name ( args.chid ), ca_message ( args.status ) );
1239 }
1240 }
1241@@ -1956,15 +1956,15 @@ void arrayTest ( chid chan, unsigned maxArrayBytes, unsigned interestLevel )
1242 pWF[i] = rand ();
1243 pRF[i] = - pWF[i];
1244 }
1245- status = ca_array_put ( DBR_DOUBLE, ca_element_count ( chan ),
1246- chan, pWF );
1247+ status = ca_array_put ( DBR_DOUBLE, ca_element_count ( chan ),
1248+ chan, pWF );
1249 SEVCHK ( status, "array write request failed" );
1250
1251 /*
1252 * read back the array
1253 */
1254- status = ca_array_get ( DBR_DOUBLE, ca_element_count (chan),
1255- chan, pRF );
1256+ status = ca_array_get ( DBR_DOUBLE, ca_element_count (chan),
1257+ chan, pRF );
1258 SEVCHK ( status, "array read request failed" );
1259 status = ca_pend_io ( timeoutToPendIO );
1260 SEVCHK ( status, "array read failed" );
1261@@ -1991,8 +1991,8 @@ void arrayTest ( chid chan, unsigned maxArrayBytes, unsigned interestLevel )
1262
1263 pRS = malloc ( ca_element_count (chan) * MAX_STRING_SIZE );
1264 verify ( pRS );
1265- status = ca_array_get ( DBR_STRING,
1266- ca_element_count (chan), chan, pRS );
1267+ status = ca_array_get ( DBR_STRING,
1268+ ca_element_count (chan), chan, pRS );
1269 SEVCHK ( status, "array read request failed" );
1270 status = ca_pend_io ( timeoutToPendIO );
1271 SEVCHK ( status, "array read failed" );
1272@@ -2010,11 +2010,11 @@ void arrayTest ( chid chan, unsigned maxArrayBytes, unsigned interestLevel )
1273 pWF[i] = rand ();
1274 pRF[i] = - pWF[i];
1275 }
1276- status = ca_array_put_callback ( DBR_DOUBLE, ca_element_count (chan),
1277- chan, pWF, arrayWriteNotify, 0 );
1278+ status = ca_array_put_callback ( DBR_DOUBLE, ca_element_count (chan),
1279+ chan, pWF, arrayWriteNotify, 0 );
1280 SEVCHK ( status, "array write notify request failed" );
1281- status = ca_array_get_callback ( DBR_DOUBLE, ca_element_count (chan),
1282- chan, arrayReadNotify, pWF );
1283+ status = ca_array_get_callback ( DBR_DOUBLE, ca_element_count (chan),
1284+ chan, arrayReadNotify, pWF );
1285 SEVCHK ( status, "array read notify request failed" );
1286 ca_flush_io ();
1287 while ( ! arrayWriteNotifyComplete || ! arrayReadNotifyComplete ) {
1288@@ -2030,11 +2030,11 @@ void arrayTest ( chid chan, unsigned maxArrayBytes, unsigned interestLevel )
1289 pRF[i] = - pWF[i];
1290 }
1291 arrayReadNotifyComplete = 0;
1292- status = ca_array_put ( DBR_DOUBLE, ca_element_count ( chan ),
1293- chan, pWF );
1294+ status = ca_array_put ( DBR_DOUBLE, ca_element_count ( chan ),
1295+ chan, pWF );
1296 SEVCHK ( status, "array write notify request failed" );
1297- status = ca_add_array_event ( DBR_DOUBLE, ca_element_count ( chan ),
1298- chan, arrayReadNotify, pWF, 0.0, 0.0, 0.0, &id );
1299+ status = ca_add_array_event ( DBR_DOUBLE, ca_element_count ( chan ),
1300+ chan, arrayReadNotify, pWF, 0.0, 0.0, 0.0, &id );
1301 SEVCHK ( status, "array subscription request failed" );
1302 ca_flush_io ();
1303 while ( ! arrayReadNotifyComplete ) {
1304@@ -2052,8 +2052,8 @@ void arrayTest ( chid chan, unsigned maxArrayBytes, unsigned interestLevel )
1305 acctstExceptionCount = 0u;
1306 status = ca_add_exception_event ( acctstExceptionNotify, 0 );
1307 SEVCHK ( status, "exception notify install failed" );
1308- status = ca_array_get ( DBR_DOUBLE,
1309- ca_element_count (chan)+1, chan, pRF );
1310+ status = ca_array_get ( DBR_DOUBLE,
1311+ ca_element_count (chan)+1, chan, pRF );
1312 if ( status == ECA_NORMAL ) {
1313 ca_poll ();
1314 while ( acctstExceptionCount < 1u ) {
1315@@ -2076,7 +2076,7 @@ void arrayTest ( chid chan, unsigned maxArrayBytes, unsigned interestLevel )
1316 showProgressEnd ( interestLevel );
1317 }
1318
1319-/*
1320+/*
1321 * verify that unequal send/recv buffer sizes work
1322 * (a bug related to this test was detected in early R3.14)
1323 *
1324@@ -2115,8 +2115,8 @@ void unequalServerBufferSizeTest ( const char * pName, unsigned interestLevel )
1325 pWF = (dbr_double_t *) calloc ( ca_element_count (newChan), sizeof (*pWF) );
1326 verify ( pWF != NULL );
1327
1328- status = ca_array_get ( DBR_DOUBLE, ca_element_count ( newChan ),
1329- newChan, pRF );
1330+ status = ca_array_get ( DBR_DOUBLE, ca_element_count ( newChan ),
1331+ newChan, pRF );
1332 status = ca_pend_io ( timeoutToPendIO );
1333 verify ( status == ECA_NORMAL );
1334 status = ca_clear_channel ( newChan );
1335@@ -2131,11 +2131,11 @@ void unequalServerBufferSizeTest ( const char * pName, unsigned interestLevel )
1336
1337 showProgress ( interestLevel );
1338
1339- status = ca_array_put ( DBR_DOUBLE, ca_element_count ( newChan ),
1340- newChan, pWF );
1341+ status = ca_array_put ( DBR_DOUBLE, ca_element_count ( newChan ),
1342+ newChan, pWF );
1343 verify ( status == ECA_NORMAL );
1344- status = ca_array_get ( DBR_DOUBLE, 1,
1345- newChan, pRF );
1346+ status = ca_array_get ( DBR_DOUBLE, 1,
1347+ newChan, pRF );
1348 verify ( status == ECA_NORMAL );
1349 status = ca_pend_io ( timeoutToPendIO );
1350 verify ( status == ECA_NORMAL );
1351@@ -2205,9 +2205,9 @@ void verifyDataTypeMacros (void)
1352 verify ( dbf_type_is_valid ( DBF_SHORT ) );
1353 {
1354 int dataType = -1;
1355- dbf_text_to_type ( "DBF_SHORT", dataType );
1356+ dbf_text_to_type ( "DBF_SHORT", dataType );
1357 verify ( dataType == DBF_SHORT );
1358- dbr_text_to_type ( "DBR_CLASS_NAME", dataType );
1359+ dbr_text_to_type ( "DBR_CLASS_NAME", dataType );
1360 verify ( dataType == DBR_CLASS_NAME );
1361 }
1362 }
1363@@ -2225,7 +2225,7 @@ void updateTestEvent ( struct event_handler_args args )
1364 {
1365 eventTest *pET = (eventTest *) args.usr;
1366 struct dbr_gr_float *pGF = (struct dbr_gr_float *) args.dbr;
1367- pET->lastValue = pGF->value;
1368+ pET->lastValue = pGF->value;
1369 pET->count++;
1370 }
1371
1372@@ -2246,7 +2246,7 @@ void clearChannelInGetCallbackTest ( const char *pName, unsigned level )
1373 unsigned i;
1374 chid chan;
1375 int status;
1376-
1377+
1378 showProgressBegin ( "clearChannelInGetCallbackTest", level );
1379
1380 for ( i = 0; ca_get_ioc_connection_count () > 0 ; i++ ) {
1381@@ -2259,15 +2259,15 @@ void clearChannelInGetCallbackTest ( const char *pName, unsigned level )
1382
1383 status = ca_pend_io ( timeoutToPendIO );
1384 SEVCHK ( status, "clearChannelInGetCallbackTest connect channel" );
1385-
1386+
1387 status = ca_get_callback ( DBR_DOUBLE, chan, callbackClearsChannel, 0 );
1388 SEVCHK ( status, "clearChannelInGetCallbackTest get callback" );
1389-
1390+
1391 for ( i = 0; ca_get_ioc_connection_count () > 0 ; i++ ) {
1392 ca_pend_event ( 0.1 );
1393 verify ( i < 100 );
1394 }
1395-
1396+
1397 showProgressEnd ( level );
1398 }
1399
1400@@ -2277,7 +2277,7 @@ void clearChannelInPutCallbackTest ( const char *pName, unsigned level )
1401 const dbr_double_t value = 1.1;
1402 chid chan;
1403 int status;
1404-
1405+
1406 showProgressBegin ( "clearChannelInPutCallbackTest", level );
1407
1408 for ( i = 0; ca_get_ioc_connection_count () > 0 ; i++ ) {
1409@@ -2291,15 +2291,15 @@ void clearChannelInPutCallbackTest ( const char *pName, unsigned level )
1410 status = ca_pend_io ( timeoutToPendIO );
1411 SEVCHK ( status, "clearChannelInPutCallbackTest connect channel" );
1412
1413- status = ca_put_callback ( DBR_DOUBLE, chan, & value,
1414+ status = ca_put_callback ( DBR_DOUBLE, chan, & value,
1415 callbackClearsChannel, 0 );
1416 SEVCHK ( status, "clearChannelInPutCallbackTest get callback" );
1417-
1418+
1419 for ( i = 0; ca_get_ioc_connection_count () > 0 ; i++ ) {
1420 ca_pend_event ( 0.1 );
1421 verify ( i < 100 );
1422 }
1423-
1424+
1425 showProgressEnd ( level );
1426 }
1427
1428@@ -2308,7 +2308,7 @@ void clearChannelInSubscrCallbackTest ( const char *pName, unsigned level )
1429 unsigned i;
1430 chid chan;
1431 int status;
1432-
1433+
1434 showProgressBegin ( "clearChannelInSubscrCallbackTest", level );
1435
1436 for ( i = 0; ca_get_ioc_connection_count () > 0 ; i++ ) {
1437@@ -2321,8 +2321,8 @@ void clearChannelInSubscrCallbackTest ( const char *pName, unsigned level )
1438
1439 status = ca_pend_io ( timeoutToPendIO );
1440 SEVCHK ( status, "clearChannelInSubscrCallbackTest connect channel" );
1441-
1442- status = ca_create_subscription ( DBR_DOUBLE, 1, chan,
1443+
1444+ status = ca_create_subscription ( DBR_DOUBLE, 1, chan,
1445 DBE_VALUE, callbackClearsChannel, 0, 0 );
1446 SEVCHK ( status, "clearChannelInSubscrCallbackTest subscribe" );
1447
1448@@ -2330,18 +2330,18 @@ void clearChannelInSubscrCallbackTest ( const char *pName, unsigned level )
1449 ca_pend_event ( 0.1 );
1450 verify ( i < 100 );
1451 }
1452-
1453+
1454 showProgressEnd ( level );
1455 }
1456
1457-void monitorAddConnectionCallback ( struct connection_handler_args args )
1458+void monitorAddConnectionCallback ( struct connection_handler_args args )
1459 {
1460 if ( args.op == CA_OP_CONN_UP ) {
1461 unsigned * pEventCount = ( unsigned * ) ca_puser ( args.chid );
1462 int status;
1463 verify ( *pEventCount == 0u );
1464 (*pEventCount)++;
1465- status = ca_create_subscription ( DBR_DOUBLE, 1,
1466+ status = ca_create_subscription ( DBR_DOUBLE, 1,
1467 args.chid, DBE_VALUE, nUpdatesTester, ca_puser ( args.chid ), 0 );
1468 SEVCHK ( status, "monitorAddConnectionCallback create subscription" );
1469 }
1470@@ -2363,7 +2363,7 @@ void monitorAddConnectionCallbackTest ( const char *pName, unsigned interestLeve
1471 int status;
1472 unsigned eventCount = 0u;
1473 unsigned getCallbackCount = 0u;
1474-
1475+
1476 showProgressBegin ( "monitorAddConnectionCallbackTest", interestLevel );
1477
1478 for ( i = 0; ca_get_ioc_connection_count () > 0 ; i++ ) {
1479@@ -2371,7 +2371,7 @@ void monitorAddConnectionCallbackTest ( const char *pName, unsigned interestLeve
1480 verify ( i < 100 );
1481 }
1482
1483- status = ca_create_channel ( pName,
1484+ status = ca_create_channel ( pName,
1485 monitorAddConnectionCallback, &eventCount, 0, & chan );
1486 SEVCHK ( status, "monitorAddConnectionCallbackTest create channel" );
1487
1488@@ -2379,7 +2379,7 @@ void monitorAddConnectionCallbackTest ( const char *pName, unsigned interestLeve
1489 ca_pend_event ( 0.1 );
1490 }
1491 verify ( eventCount >= 2u );
1492-
1493+
1494 status = ca_get_callback ( DBR_DOUBLE, chan, nUpdatesTester, &getCallbackCount );
1495 SEVCHK ( status, "monitorAddConnectionCallback get callback" );
1496 while ( getCallbackCount == 0 ) {
1497@@ -2390,7 +2390,7 @@ void monitorAddConnectionCallbackTest ( const char *pName, unsigned interestLeve
1498
1499 status = ca_clear_channel ( chan );
1500 SEVCHK ( status, "monitorAddConnectionCallbackTest clear channel" );
1501-
1502+
1503 status = ca_flush_io ();
1504 SEVCHK ( status, "monitorAddConnectionCallbackTest flush" );
1505
1506@@ -2423,7 +2423,7 @@ void monitorUpdateTest ( chid chan, unsigned interestLevel )
1507 printf ("skipped monitorUpdateTest test - not an analog type\n");
1508 return;
1509 }
1510-
1511+
1512 showProgressBegin ( "monitorUpdateTest", interestLevel );
1513
1514 /*
1515@@ -2444,12 +2444,12 @@ void monitorUpdateTest ( chid chan, unsigned interestLevel )
1516 * complete
1517 *
1518 * NOTE: this hopefully demonstrates that when the
1519- * server is very busy with monitors the client
1520+ * server is very busy with monitors the client
1521 * is still able to punch through with a request.
1522 */
1523 SEVCHK ( ca_get ( DBR_FLOAT, chan, &getResp) ,NULL );
1524 SEVCHK ( ca_pend_io ( timeoutToPendIO ) ,NULL );
1525-
1526+
1527 showProgress ( interestLevel );
1528
1529 /*
1530@@ -2483,7 +2483,7 @@ void monitorUpdateTest ( chid chan, unsigned interestLevel )
1531 /*
1532 * attempt to uncover problems where the last event isnt sent
1533 * and hopefully get into a flow control situation
1534- */
1535+ */
1536 prevPassCount = 0u;
1537 for ( i = 0; i < 10; i++ ) {
1538 for ( j = 0; j < NELEMENTS(test); j++ ) {
1539@@ -2492,7 +2492,7 @@ void monitorUpdateTest ( chid chan, unsigned interestLevel )
1540 test[j].lastValue = -1.0f;
1541 SEVCHK ( ca_add_event ( DBR_GR_FLOAT, chan, updateTestEvent,
1542 &test[j], &test[j].id ) , NULL );
1543- }
1544+ }
1545
1546 for ( j = 0; j <= i; j++ ) {
1547 temp = monitorUpdateTestPattern ( j );
1548@@ -2522,7 +2522,7 @@ void monitorUpdateTest ( chid chan, unsigned interestLevel )
1549 ca_poll (); /* emulate typical GUI */
1550 for ( j = 0; j < NELEMENTS ( test ); j++ ) {
1551 /*
1552- * we shouldnt see old monitors because
1553+ * we shouldnt see old monitors because
1554 * we resubscribed
1555 */
1556 verify ( test[j].count <= i + 2 );
1557@@ -2562,12 +2562,12 @@ void monitorUpdateTest ( chid chan, unsigned interestLevel )
1558 showProgress ( interestLevel );
1559
1560 /*
1561- * delete the event subscriptions
1562+ * delete the event subscriptions
1563 */
1564 for ( i = 0; i < NELEMENTS ( test ); i++ ) {
1565 SEVCHK ( ca_clear_event ( test[i].id ), NULL );
1566 }
1567-
1568+
1569 /*
1570 * force all of the clear event requests to
1571 * complete
1572@@ -2578,7 +2578,7 @@ void monitorUpdateTest ( chid chan, unsigned interestLevel )
1573 /* printf ( "flow control bypassed %u events\n", flowCtrlCount ); */
1574
1575 showProgressEnd ( interestLevel );
1576-}
1577+}
1578
1579 void verifyReasonableBeaconPeriod ( chid chan, unsigned interestLevel )
1580 {
1581@@ -2594,7 +2594,7 @@ void verifyReasonableBeaconPeriod ( chid chan, unsigned interestLevel )
1582 ca_beacon_anomaly_count () );
1583
1584 beaconPeriod = ca_beacon_period ( chan );
1585- printf ( "Estimated beacon period for channel %s = %g sec.\n",
1586+ printf ( "Estimated beacon period for channel %s = %g sec.\n",
1587 ca_name ( chan ), beaconPeriod );
1588
1589 watchDogDelay = ca_receive_watchdog_delay ( chan );
1590@@ -2603,8 +2603,8 @@ void verifyReasonableBeaconPeriod ( chid chan, unsigned interestLevel )
1591 printf ( "busy: receive watchdog for \"%s\" expires in %g sec.\n",
1592 ca_name ( chan ), watchDogDelay );
1593
1594- /*
1595- * let one default connection timeout go by w/o receive activity
1596+ /*
1597+ * let one default connection timeout go by w/o receive activity
1598 * so we can see if beacons reset the watchdog
1599 */
1600 for ( i = 0u; i < 15u; i++ ) {
1601@@ -2667,18 +2667,18 @@ void verifyTimeStamps ( chid chan, unsigned interestLevel )
1602 status = ca_pend_io ( timeoutToPendIO );
1603 verify ( status == ECA_NORMAL );
1604
1605- length = epicsTimeToStrftime ( buf, sizeof ( buf ),
1606+ length = epicsTimeToStrftime ( buf, sizeof ( buf ),
1607 "%a %b %d %Y %H:%M:%S.%f", & first.stamp );
1608 verify ( length );
1609- printf ("Processing time of channel \"%s\" was \"%s\"\n",
1610+ printf ("Processing time of channel \"%s\" was \"%s\"\n",
1611 ca_name ( chan ), buf );
1612
1613 diff = epicsTimeDiffInSeconds ( & last.stamp, & first.stamp );
1614- printf ("Time difference between two successive reads was %g sec\n",
1615+ printf ("Time difference between two successive reads was %g sec\n",
1616 diff );
1617
1618 diff = epicsTimeDiffInSeconds ( & first.stamp, & localTime );
1619- printf ("Time difference between client and server %g sec\n",
1620+ printf ("Time difference between client and server %g sec\n",
1621 diff );
1622
1623 showProgressEnd ( interestLevel );
1624@@ -2700,7 +2700,7 @@ void verifyChannelPriorities ( const char *pName, unsigned interestLevel )
1625 double value;
1626 chid chan0, chan1;
1627 unsigned priority0, priority1;
1628-
1629+
1630 priority0 = ( i * ( CA_PRIORITY_MAX - CA_PRIORITY_MIN ) ) / nPrio;
1631 priority0 += CA_PRIORITY_MIN;
1632 if ( priority0 > CA_PRIORITY_MAX ) {
1633@@ -2713,11 +2713,11 @@ void verifyChannelPriorities ( const char *pName, unsigned interestLevel )
1634 priority1 = CA_PRIORITY_MAX;
1635 }
1636
1637- status = ca_create_channel ( pName, 0, 0,
1638+ status = ca_create_channel ( pName, 0, 0,
1639 priority0, &chan0 );
1640 SEVCHK ( status, "prioritized channel create failed" );
1641
1642- status = ca_create_channel ( pName, 0, 0,
1643+ status = ca_create_channel ( pName, 0, 0,
1644 priority1, &chan1 );
1645 SEVCHK ( status, "prioritized channel create failed" );
1646
1647@@ -2751,8 +2751,8 @@ void verifyChannelPriorities ( const char *pName, unsigned interestLevel )
1648 showProgressEnd ( interestLevel );
1649 }
1650
1651-void verifyTearDownWhenChannelConnected ( const char * pName,
1652- enum ca_preemptive_callback_select select,
1653+void verifyTearDownWhenChannelConnected ( const char * pName,
1654+ enum ca_preemptive_callback_select select,
1655 unsigned interestLevel )
1656 {
1657 static const unsigned chanCount = 20;
1658@@ -2761,15 +2761,15 @@ void verifyTearDownWhenChannelConnected ( const char * pName,
1659 chid * const pChans = (chid * const) calloc ( chanCount, sizeof ( *pChans ) );
1660 double * const pValues = (double * const) calloc ( chanCount, sizeof ( *pValues ) );
1661 unsigned i, j;
1662-
1663+
1664 verify ( pChans && pValues );
1665-
1666+
1667 showProgressBegin ( "verifyTearDownWhenChannelConnected", interestLevel );
1668
1669 for ( i = 0u; i < loopCount; i++ ) {
1670 int status;
1671 ca_context_create ( select );
1672-
1673+
1674 for ( j = 0; j < chanCount; j++ ) {
1675 status = ca_create_channel ( pName, 0, 0, 0, & pChans[j] );
1676 SEVCHK ( status, "immediate tear down channel create failed" );
1677@@ -2782,11 +2782,11 @@ void verifyTearDownWhenChannelConnected ( const char * pName,
1678 status = ca_get ( DBR_DOUBLE, pChans[j], &pValues[j] );
1679 SEVCHK ( status, "immediate tear down channel get failed" );
1680 }
1681-
1682+
1683 status = ca_pend_io ( timeoutToPendIO );
1684 SEVCHK ( status, "immediate tear down get pend io failed" );
1685
1686- ca_context_destroy ();
1687+ ca_context_destroy ();
1688 }
1689
1690 ca_context_create ( select );
1691@@ -2798,8 +2798,8 @@ void verifyTearDownWhenChannelConnected ( const char * pName,
1692 }
1693
1694
1695-void verifyImmediateTearDown ( const char * pName,
1696- enum ca_preemptive_callback_select select,
1697+void verifyImmediateTearDown ( const char * pName,
1698+ enum ca_preemptive_callback_select select,
1699 unsigned interestLevel )
1700 {
1701 int i;
1702@@ -2817,8 +2817,8 @@ void verifyImmediateTearDown ( const char * pName,
1703 status = ca_pend_io ( timeoutToPendIO );
1704 SEVCHK ( status, "immediate tear down channel connect failed" );
1705 verify ( status == ECA_NORMAL );
1706- /*
1707- * verify that puts pending when we call ca_task_exit()
1708+ /*
1709+ * verify that puts pending when we call ca_task_exit()
1710 * get flushed out
1711 */
1712 if ( i > 0 ) {
1713@@ -2868,12 +2868,12 @@ void fdRegCB ( void * parg, int fd, int opened )
1714
1715 fdctx * mgrCtx = ( fdctx * ) parg;
1716 if ( opened ) {
1717- status = fdmgr_add_callback (
1718+ status = fdmgr_add_callback (
1719 mgrCtx, fd, fdi_read, fdcb, 0 );
1720 verify ( status >= 0 );
1721 }
1722 else {
1723- status = fdmgr_clear_callback (
1724+ status = fdmgr_clear_callback (
1725 mgrCtx, fd, fdi_read );
1726 verify ( status >= 0 );
1727 }
1728@@ -2893,21 +2893,21 @@ typedef struct {
1729 unsigned m_interestLevel;
1730 } MultiThreadSubscrTest;
1731
1732-static void testMultithreadSubscrSubscrCallback
1733+static void testMultithreadSubscrSubscrCallback
1734 ( struct event_handler_args eha )
1735 {
1736 const epicsEventId firstUpdateEvent = ( epicsEventId ) eha.usr;
1737 epicsEventSignal ( firstUpdateEvent );
1738 }
1739
1740-static void testMultithreadSubscrCreateSubscr ( void * pParm )
1741+static void testMultithreadSubscrCreateSubscr ( void * pParm )
1742 {
1743 static unsigned nElem = 0;
1744 int testComplete = FALSE;
1745 evid id;
1746 epicsEventId firstUpdateEvent;
1747- epicsEventWaitStatus eventWaitStatus;
1748- MultiThreadSubscrTest * const pMultiThreadSubscrTest =
1749+ epicsEventWaitStatus eventWaitStatus;
1750+ MultiThreadSubscrTest * const pMultiThreadSubscrTest =
1751 ( MultiThreadSubscrTest * ) pParm;
1752
1753 /* this is required for the ca_flush below to work correctly */
1754@@ -2915,19 +2915,19 @@ static void testMultithreadSubscrCreateSubscr ( void * pParm )
1755 verify ( status == ECA_NORMAL );
1756 firstUpdateEvent = epicsEventMustCreate ( epicsEventEmpty );
1757 verify ( firstUpdateEvent );
1758- status = ca_create_subscription (
1759- DBR_TIME_LONG,
1760- nElem,
1761- pMultiThreadSubscrTest->m_chan,
1762- DBE_VALUE,
1763- testMultithreadSubscrSubscrCallback,
1764- firstUpdateEvent,
1765+ status = ca_create_subscription (
1766+ DBR_TIME_LONG,
1767+ nElem,
1768+ pMultiThreadSubscrTest->m_chan,
1769+ DBE_VALUE,
1770+ testMultithreadSubscrSubscrCallback,
1771+ firstUpdateEvent,
1772 & id );
1773 verify ( status == ECA_NORMAL );
1774 status = ca_flush_io ();
1775 verify ( status == ECA_NORMAL );
1776 /* wait for first update */
1777- eventWaitStatus = epicsEventWaitWithTimeout (
1778+ eventWaitStatus = epicsEventWaitWithTimeout (
1779 firstUpdateEvent, 60.0 * 10 );
1780 verify ( eventWaitStatus == epicsEventWaitOK );
1781 epicsEventDestroy ( firstUpdateEvent );
1782@@ -2935,7 +2935,7 @@ static void testMultithreadSubscrCreateSubscr ( void * pParm )
1783 verify ( status == ECA_NORMAL );
1784 epicsMutexMustLock ( pMultiThreadSubscrTest->m_mutex );
1785 pMultiThreadSubscrTest->m_nUpdatesReceived++;
1786- testComplete = ( pMultiThreadSubscrTest->m_nUpdatesReceived ==
1787+ testComplete = ( pMultiThreadSubscrTest->m_nUpdatesReceived ==
1788 pMultiThreadSubscrTest->m_nUpdatesRequired );
1789 pMultiThreadSubscrTest->m_testComplete = testComplete;
1790 epicsMutexUnlock ( pMultiThreadSubscrTest->m_mutex );
1791@@ -2946,10 +2946,10 @@ static void testMultithreadSubscrCreateSubscr ( void * pParm )
1792
1793 void testMultithreadSubscrConnHandler ( struct connection_handler_args args )
1794 {
1795- MultiThreadSubscrTest * const pMultiThreadSubscrTest =
1796+ MultiThreadSubscrTest * const pMultiThreadSubscrTest =
1797 ( MultiThreadSubscrTest * ) ca_puser ( args.chid );
1798 epicsMutexMustLock ( pMultiThreadSubscrTest->m_mutex );
1799- if ( !pMultiThreadSubscrTest->m_testInitiated &&
1800+ if ( !pMultiThreadSubscrTest->m_testInitiated &&
1801 args.op == CA_OP_CONN_UP ) {
1802 int i;
1803 pMultiThreadSubscrTest->m_testInitiated = TRUE;
1804@@ -2957,10 +2957,10 @@ void testMultithreadSubscrConnHandler ( struct connection_handler_args args )
1805 char threadname[64];
1806 epicsThreadId threadId;
1807 sprintf(threadname, "testSubscr%06u", i);
1808- threadId = epicsThreadCreate ( threadname,
1809- epicsThreadPriorityMedium,
1810- epicsThreadGetStackSize(epicsThreadStackSmall),
1811- testMultithreadSubscrCreateSubscr,
1812+ threadId = epicsThreadCreate ( threadname,
1813+ epicsThreadPriorityMedium,
1814+ epicsThreadGetStackSize(epicsThreadStackSmall),
1815+ testMultithreadSubscrCreateSubscr,
1816 pMultiThreadSubscrTest );
1817 verify ( threadId );
1818 }
1819@@ -2970,7 +2970,7 @@ void testMultithreadSubscrConnHandler ( struct connection_handler_args args )
1820
1821 void testMultithreadSubscr ( void * pParm )
1822 {
1823- MultiThreadSubscrTest * const pMultiThreadSubscrTest =
1824+ MultiThreadSubscrTest * const pMultiThreadSubscrTest =
1825 ( MultiThreadSubscrTest * ) pParm;
1826 int status;
1827 unsigned i;
1828@@ -2983,11 +2983,11 @@ void testMultithreadSubscr ( void * pParm )
1829 pMultiThreadSubscrTest->m_chanName,
1830 testMultithreadSubscrConnHandler,
1831 pMultiThreadSubscrTest,
1832- CA_PRIORITY_MIN,
1833+ CA_PRIORITY_MIN,
1834 & pMultiThreadSubscrTest->m_chan );
1835 verify ( status == ECA_NORMAL );
1836
1837- showProgressBegin ( "verifyMultithreadSubscr",
1838+ showProgressBegin ( "verifyMultithreadSubscr",
1839 pMultiThreadSubscrTest->m_interestLevel );
1840 i = 0;
1841 while ( TRUE ) {
1842@@ -2999,11 +2999,11 @@ void testMultithreadSubscr ( void * pParm )
1843 if ( success ) {
1844 break;
1845 }
1846- eventWaitStatus = epicsEventWaitWithTimeout (
1847+ eventWaitStatus = epicsEventWaitWithTimeout (
1848 pMultiThreadSubscrTest->m_testCompleteEvent, 0.1 );
1849- verify ( eventWaitStatus == epicsEventWaitOK ||
1850+ verify ( eventWaitStatus == epicsEventWaitOK ||
1851 eventWaitStatus == epicsEventWaitTimeout );
1852- if ( i++ % 100 == 0u )
1853+ if ( i++ % 100 == 0u )
1854 showProgress ( pMultiThreadSubscrTest->m_interestLevel );
1855 verify ( i < 1000 );
1856 }
1857@@ -3023,33 +3023,33 @@ void verifyMultithreadSubscr ( const char * pName, unsigned interestLevel )
1858 {
1859 static unsigned nSubscr = 3000;
1860 epicsThreadId threadId;
1861- MultiThreadSubscrTest * const pMultiThreadSubscrTest =
1862- (MultiThreadSubscrTest*) calloc ( 1,
1863+ MultiThreadSubscrTest * const pMultiThreadSubscrTest =
1864+ (MultiThreadSubscrTest*) calloc ( 1,
1865 sizeof ( MultiThreadSubscrTest ) );
1866 verify ( pMultiThreadSubscrTest);
1867 pMultiThreadSubscrTest->m_mutex = epicsMutexMustCreate ();
1868 verify ( pMultiThreadSubscrTest->m_mutex );
1869- pMultiThreadSubscrTest->m_testCompleteEvent =
1870+ pMultiThreadSubscrTest->m_testCompleteEvent =
1871 epicsEventMustCreate ( epicsEventEmpty );
1872 verify ( pMultiThreadSubscrTest->m_testCompleteEvent );
1873- pMultiThreadSubscrTest->m_threadExitEvent =
1874+ pMultiThreadSubscrTest->m_threadExitEvent =
1875 epicsEventMustCreate ( epicsEventEmpty );
1876 verify ( pMultiThreadSubscrTest->m_threadExitEvent );
1877- strncpy ( pMultiThreadSubscrTest->m_chanName, pName,
1878+ strncpy ( pMultiThreadSubscrTest->m_chanName, pName,
1879 sizeof ( pMultiThreadSubscrTest->m_chanName ) );
1880 pMultiThreadSubscrTest->m_chanName
1881 [ sizeof ( pMultiThreadSubscrTest->m_chanName ) - 1u ] = '\0';
1882 pMultiThreadSubscrTest->m_nUpdatesRequired = nSubscr;
1883 pMultiThreadSubscrTest->m_interestLevel = interestLevel;
1884- threadId = epicsThreadCreate (
1885- "testMultithreadSubscr",
1886- epicsThreadPriorityMedium,
1887- epicsThreadGetStackSize(epicsThreadStackSmall),
1888+ threadId = epicsThreadCreate (
1889+ "testMultithreadSubscr",
1890+ epicsThreadPriorityMedium,
1891+ epicsThreadGetStackSize(epicsThreadStackSmall),
1892 testMultithreadSubscr, pMultiThreadSubscrTest );
1893 verify ( threadId );
1894 {
1895 epicsEventWaitStatus eventWaitStatus;
1896- eventWaitStatus = epicsEventWaitWithTimeout (
1897+ eventWaitStatus = epicsEventWaitWithTimeout (
1898 pMultiThreadSubscrTest->m_threadExitEvent, 1000.0 );
1899 verify ( eventWaitStatus == epicsEventWaitOK );
1900 }
1901@@ -3068,7 +3068,7 @@ void fdManagerVerify ( const char * pName, unsigned interestLevel )
1902 evid subscription;
1903 unsigned eventCount = 0u;
1904 epicsTimeStamp begin, end;
1905-
1906+
1907 mgrCtx = fdmgr_init ();
1908 verify ( mgrCtx );
1909
1910@@ -3089,7 +3089,7 @@ void fdManagerVerify ( const char * pName, unsigned interestLevel )
1911
1912 showProgress ( interestLevel );
1913
1914- status = ca_add_event ( DBR_FLOAT, newChan,
1915+ status = ca_add_event ( DBR_FLOAT, newChan,
1916 nUpdatesTester, & eventCount, & subscription );
1917 verify ( status == ECA_NORMAL );
1918
1919@@ -3142,7 +3142,7 @@ void fdManagerVerify ( const char * pName, unsigned interestLevel )
1920 showProgressEnd ( interestLevel );
1921 }
1922
1923-void verifyConnectWithDisconnectedChannels (
1924+void verifyConnectWithDisconnectedChannels (
1925 const char *pName, unsigned interestLevel )
1926 {
1927 int status;
1928@@ -3171,11 +3171,11 @@ void verifyConnectWithDisconnectedChannels (
1929 status = ca_create_channel ( pName, 0, 0, 0, & validChan );
1930 verify ( status == ECA_NORMAL );
1931
1932- /*
1933- * we should be able to connect to a valid
1934+ /*
1935+ * we should be able to connect to a valid
1936 * channel within a reasonable delay even
1937- * though there is one permanently
1938- * diasconnected channel
1939+ * though there is one permanently
1940+ * diasconnected channel
1941 */
1942 status = ca_pend_io ( timeoutToPendIO );
1943 verify ( status == ECA_NORMAL );
1944@@ -3205,7 +3205,7 @@ void noopExceptionCallback ( struct exception_handler_args args )
1945 {
1946 }
1947
1948-void verifyDisconnect (
1949+void verifyDisconnect (
1950 const char * pName, unsigned interestLevel )
1951 {
1952 int disconnectFlag = 0;
1953@@ -3214,8 +3214,8 @@ void verifyDisconnect (
1954 chid chan1;
1955 int status;
1956
1957- status = ca_create_channel (
1958- pName, verifyClearChannelOnDisconnectCallback,
1959+ status = ca_create_channel (
1960+ pName, verifyClearChannelOnDisconnectCallback,
1961 & disconnectFlag, 0, & chan0 );
1962 SEVCHK ( status, NULL );
1963
1964@@ -3256,7 +3256,7 @@ void verifyDisconnect (
1965 fprintf ( stdout, "confirmed.\n" );
1966 /* channel cleared by disconnect handler */
1967
1968- status = ca_create_channel (
1969+ status = ca_create_channel (
1970 pName, 0, 0, 0, & chan1 );
1971 SEVCHK ( status, NULL );
1972
1973@@ -3275,11 +3275,11 @@ void verifyDisconnect (
1974 SEVCHK ( status, NULL );
1975 }
1976
1977-void verifyName (
1978+void verifyName (
1979 const char * pName, unsigned interestLevel )
1980 {
1981 chid chan;
1982- int status = ca_create_channel (
1983+ int status = ca_create_channel (
1984 pName, 0, 0, 0, & chan );
1985 SEVCHK ( status, NULL );
1986 if ( strcmp ( pName, ca_name ( chan ) ) != 0 ) {
1987@@ -3297,13 +3297,13 @@ void verifyContextRundownFlush ( const char * pName, unsigned interestLevel )
1988
1989 for ( i=0u; i < 1000; i++ ) {
1990 const dbr_double_t stim = i;
1991-
1992- {
1993+
1994+ {
1995 chid chan;
1996 int status;
1997 status = ca_context_create ( ca_disable_preemptive_callback );
1998 SEVCHK ( status, "context create failed" );
1999-
2000+
2001 status = ca_create_channel ( pName, 0, 0, 0, & chan );
2002 /*
2003 * currently in-memory channels cant be used with this test
2004@@ -3311,26 +3311,26 @@ void verifyContextRundownFlush ( const char * pName, unsigned interestLevel )
2005 */
2006 if ( status != ECA_UNAVAILINSERV ) {
2007 SEVCHK ( status, NULL );
2008-
2009+
2010 status = ca_pend_io( timeoutToPendIO );
2011 SEVCHK ( status, "channel connect failed" );
2012-
2013+
2014 status = ca_put ( DBR_DOUBLE, chan, & stim );
2015 SEVCHK ( status, "channel put failed" );
2016-
2017+
2018 status = ca_clear_channel ( chan );
2019 SEVCHK ( status, NULL );
2020 }
2021 ca_context_destroy ();
2022 }
2023-
2024+
2025 {
2026 chid chan;
2027 int status;
2028 dbr_double_t resp;
2029 status = ca_context_create ( ca_disable_preemptive_callback );
2030 SEVCHK ( status, "context create failed" );
2031-
2032+
2033 status = ca_create_channel ( pName, 0, 0, 0, & chan );
2034 SEVCHK ( status, NULL );
2035 /*
2036@@ -3340,15 +3340,15 @@ void verifyContextRundownFlush ( const char * pName, unsigned interestLevel )
2037 if ( status != ECA_UNAVAILINSERV ) {
2038 status = ca_pend_io( timeoutToPendIO );
2039 SEVCHK ( status, "channel connect failed" );
2040-
2041+
2042 status = ca_get ( DBR_DOUBLE, chan, & resp );
2043 SEVCHK ( status, "channel get failed" );
2044-
2045+
2046 status = ca_pend_io ( timeoutToPendIO );
2047 SEVCHK ( status, "get, pend io failed" );
2048-
2049+
2050 verify ( stim == resp );
2051-
2052+
2053 status = ca_clear_channel ( chan );
2054 SEVCHK ( status, NULL );
2055 }
2056@@ -3359,11 +3359,11 @@ void verifyContextRundownFlush ( const char * pName, unsigned interestLevel )
2057 showProgress ( interestLevel );
2058 }
2059 }
2060-
2061+
2062 showProgressEnd ( interestLevel );
2063 }
2064
2065-void verifyContextRundownChanStillExist (
2066+void verifyContextRundownChanStillExist (
2067 const char * pName, unsigned interestLevel )
2068 {
2069 chid chan[10000];
2070@@ -3374,7 +3374,7 @@ void verifyContextRundownChanStillExist (
2071
2072 status = ca_context_create ( ca_disable_preemptive_callback );
2073 SEVCHK ( status, "context create failed" );
2074-
2075+
2076 for ( i = 0; i < NELEMENTS ( chan ); i++ ) {
2077 status = ca_create_channel ( pName, 0, 0, 0, & chan[i] );
2078 /*
2079@@ -3386,17 +3386,17 @@ void verifyContextRundownChanStillExist (
2080 }
2081 SEVCHK ( status, NULL );
2082 }
2083-
2084+
2085 status = ca_pend_io( timeoutToPendIO );
2086 SEVCHK ( status, "channel connect failed" );
2087
2088 ca_context_destroy ();
2089-
2090+
2091 showProgressEnd ( interestLevel );
2092 }
2093
2094-int acctst ( const char * pName, unsigned interestLevel, unsigned channelCount,
2095- unsigned repetitionCount, enum ca_preemptive_callback_select select )
2096+int acctst ( const char * pName, unsigned interestLevel, unsigned channelCount,
2097+ unsigned repetitionCount, enum ca_preemptive_callback_select select )
2098 {
2099 chid chan;
2100 int status;
2101@@ -3405,7 +3405,7 @@ int acctst ( const char * pName, unsigned interestLevel, unsigned channelCount,
2102 unsigned connections;
2103 unsigned maxArrayBytes = 10000000;
2104
2105- printf ( "CA Client V%s, channel name \"%s\", timeout %g\n",
2106+ printf ( "CA Client V%s, channel name \"%s\", timeout %g\n",
2107 ca_version (), pName, timeoutToPendIO );
2108 if ( select == ca_enable_preemptive_callback ) {
2109 printf ( "Preemptive call back is enabled.\n" );
2110@@ -3414,7 +3414,7 @@ int acctst ( const char * pName, unsigned interestLevel, unsigned channelCount,
2111 {
2112 char tmpString[32];
2113 sprintf ( tmpString, "%u", maxArrayBytes );
2114- epicsEnvSet ( "EPICS_CA_MAX_ARRAY_BYTES", tmpString );
2115+ epicsEnvSet ( "EPICS_CA_MAX_ARRAY_BYTES", tmpString );
2116 }
2117
2118 /*
2119@@ -3447,7 +3447,7 @@ int acctst ( const char * pName, unsigned interestLevel, unsigned channelCount,
2120 showProgressEnd ( interestLevel );
2121
2122 printf ( "native type was %s, native count was %lu\n",
2123- dbf_type_to_text ( ca_field_type ( chan ) ),
2124+ dbf_type_to_text ( ca_field_type ( chan ) ),
2125 ca_element_count ( chan ) );
2126
2127 connections = ca_get_ioc_connection_count ();
2128@@ -3464,14 +3464,14 @@ int acctst ( const char * pName, unsigned interestLevel, unsigned channelCount,
2129 verifyTimeStamps ( chan, interestLevel );
2130 verifyOldPend ( interestLevel );
2131 exceptionTest ( chan, interestLevel );
2132- arrayTest ( chan, maxArrayBytes, interestLevel );
2133+ arrayTest ( chan, maxArrayBytes, interestLevel );
2134 verifyMonitorSubscriptionFlushIO ( chan, interestLevel );
2135 monitorSubscriptionFirstUpdateTest ( pName, chan, interestLevel );
2136 ctrlDoubleTest ( chan, interestLevel );
2137 verifyBlockInPendIO ( chan, interestLevel );
2138- verifyAnalogIO ( chan, DBR_FLOAT, FLT_MIN, FLT_MAX,
2139+ verifyAnalogIO ( chan, DBR_FLOAT, FLT_MIN, FLT_MAX,
2140 FLT_MIN_EXP, FLT_MAX_EXP, FLT_EPSILON, interestLevel );
2141- verifyAnalogIO ( chan, DBR_DOUBLE, DBL_MIN, DBL_MAX,
2142+ verifyAnalogIO ( chan, DBR_DOUBLE, DBL_MIN, DBL_MAX,
2143 DBL_MIN_EXP, DBL_MAX_EXP, DBL_EPSILON, interestLevel );
2144 verifyLongIO ( chan, interestLevel );
2145 verifyShortIO ( chan, interestLevel );
2146@@ -3486,7 +3486,7 @@ int acctst ( const char * pName, unsigned interestLevel, unsigned channelCount,
2147 verifyBadString ( chan, interestLevel );
2148 verifyMultithreadSubscr ( pName, interestLevel );
2149 if ( select != ca_enable_preemptive_callback ) {
2150- fdManagerVerify ( pName, interestLevel );
2151+ fdManagerVerify ( pName, interestLevel );
2152 }
2153
2154 /*
2155@@ -3497,7 +3497,7 @@ int acctst ( const char * pName, unsigned interestLevel, unsigned channelCount,
2156 printf ( "\n" );
2157 pend_event_delay_test ( 1.0 );
2158 pend_event_delay_test ( 0.1 );
2159- pend_event_delay_test ( 0.25 );
2160+ pend_event_delay_test ( 0.25 );
2161
2162 /* ca_channel_status ( 0 ); */
2163 ca_client_status ( 0 );
2164@@ -3539,10 +3539,10 @@ int acctst ( const char * pName, unsigned interestLevel, unsigned channelCount,
2165 /* SEVCHK ( status, NULL ); */
2166
2167 caTaskExitTest ( interestLevel );
2168-
2169+
2170 verifyContextRundownFlush ( pName, interestLevel );
2171 verifyContextRundownChanStillExist ( pName, interestLevel );
2172-
2173+
2174 free ( pChans );
2175
2176 printf ( "\nTest Complete\n" );
2177diff --git a/modules/ca/src/client/acctstMain.c b/modules/ca/src/client/acctstMain.c
2178index 4c700a3..5386019 100644
2179--- a/modules/ca/src/client/acctstMain.c
2180+++ b/modules/ca/src/client/acctstMain.c
2181@@ -5,7 +5,7 @@
2182 * Operator of Los Alamos National Laboratory.
2183 * EPICS BASE Versions 3.13.7
2184 * and higher are distributed subject to a Software License Agreement found
2185-* in file LICENSE that is included with this distribution.
2186+* in file LICENSE that is included with this distribution.
2187 \*************************************************************************/
2188
2189 #include <stdio.h>
2190@@ -19,15 +19,15 @@ int main ( int argc, char **argv )
2191 unsigned progressLoggingLevel;
2192 unsigned channelCount;
2193 unsigned repetitionCount;
2194- enum ca_preemptive_callback_select preempt;
2195- int aBoolean;
2196+ enum ca_preemptive_callback_select preempt;
2197+ int aBoolean;
2198
2199
2200 if ( argc < 2 || argc > 6 ) {
2201 printf ("usage: %s <PV name> [progress logging level] [channel count] "
2202- "[repetition count] [enable preemptive callback]\n",
2203+ "[repetition count] [enable preemptive callback]\n",
2204 argv[0] );
2205- return 1;
2206+ return 1;
2207 }
2208
2209 if ( argc >= 3 ) {
2210@@ -57,12 +57,12 @@ int main ( int argc, char **argv )
2211 else {
2212 aBoolean = 0;
2213 }
2214- if ( aBoolean ) {
2215- preempt = ca_enable_preemptive_callback;
2216- }
2217- else {
2218- preempt = ca_disable_preemptive_callback;
2219- }
2220+ if ( aBoolean ) {
2221+ preempt = ca_enable_preemptive_callback;
2222+ }
2223+ else {
2224+ preempt = ca_disable_preemptive_callback;
2225+ }
2226
2227 acctst ( argv[1], progressLoggingLevel, channelCount, repetitionCount, preempt );
2228
2229diff --git a/modules/ca/src/client/acctstRegister.cpp b/modules/ca/src/client/acctstRegister.cpp
2230index e75ed7f..5ddc5af 100644
2231--- a/modules/ca/src/client/acctstRegister.cpp
2232+++ b/modules/ca/src/client/acctstRegister.cpp
2233@@ -60,7 +60,7 @@ struct AutoInit {
2234 AutoInit ();
2235 };
2236
2237-AutoInit :: AutoInit ()
2238+AutoInit :: AutoInit ()
2239 {
2240 iocshRegister ( &acctstFuncDef, acctstCallFunc );
2241 }
2242diff --git a/modules/ca/src/client/addrList.h b/modules/ca/src/client/addrList.h
2243index c06c8b2..9d51e0c 100644
2244--- a/modules/ca/src/client/addrList.h
2245+++ b/modules/ca/src/client/addrList.h
2246@@ -5,28 +5,28 @@
2247 * Operator of Los Alamos National Laboratory.
2248 * EPICS BASE Versions 3.13.7
2249 * and higher are distributed subject to a Software License Agreement found
2250-* in file LICENSE that is included with this distribution.
2251+* in file LICENSE that is included with this distribution.
2252 \*************************************************************************/
2253
2254 #ifndef addrListh
2255 #define addrListh
2256
2257 #include "shareLib.h"
2258-#include "envDefs.h"
2259+#include "envDefs.h"
2260 #include "osiSock.h"
2261
2262 #ifdef __cplusplus
2263 extern "C" {
2264 #endif
2265
2266-epicsShareFunc void epicsShareAPI configureChannelAccessAddressList
2267+epicsShareFunc void epicsShareAPI configureChannelAccessAddressList
2268 ( struct ELLLIST *pList, SOCKET sock, unsigned short port );
2269
2270 epicsShareFunc int epicsShareAPI addAddrToChannelAccessAddressList
2271- ( struct ELLLIST *pList, const ENV_PARAM *pEnv,
2272+ ( struct ELLLIST *pList, const ENV_PARAM *pEnv,
2273 unsigned short port, int ignoreNonDefaultPort );
2274
2275-epicsShareFunc void epicsShareAPI printChannelAccessAddressList
2276+epicsShareFunc void epicsShareAPI printChannelAccessAddressList
2277 ( const struct ELLLIST *pList );
2278
2279 epicsShareFunc void epicsShareAPI removeDuplicateAddresses
2280diff --git a/modules/ca/src/client/autoPtrFreeList.h b/modules/ca/src/client/autoPtrFreeList.h
2281index 7dc7360..9c1d967 100644
2282--- a/modules/ca/src/client/autoPtrFreeList.h
2283+++ b/modules/ca/src/client/autoPtrFreeList.h
2284@@ -5,22 +5,22 @@
2285 * Operator of Los Alamos National Laboratory.
2286 * EPICS BASE Versions 3.13.7
2287 * and higher are distributed subject to a Software License Agreement found
2288-* in file LICENSE that is included with this distribution.
2289+* in file LICENSE that is included with this distribution.
2290 \*************************************************************************/
2291
2292-/*
2293+/*
2294+ *
2295 *
2296- *
2297 * L O S A L A M O S
2298 * Los Alamos National Laboratory
2299 * Los Alamos, New Mexico 87545
2300- *
2301+ *
2302 * Copyright, The Regents of the University of California.
2303- *
2304- *
2305- * Author Jeffrey O. Hill
2306- * johill@lanl.gov
2307- * 505 665 1831
2308+ *
2309+ *
2310+ * Author Jeffrey O. Hill
2311+ * johill@lanl.gov
2312+ * 505 665 1831
2313 */
2314
2315 #ifndef autoPtrFreeListh
2316@@ -56,7 +56,7 @@ private:
2317 };
2318
2319 template < class T, unsigned N, class MUTEX >
2320-inline autoPtrFreeList < T, N, MUTEX >::autoPtrFreeList (
2321+inline autoPtrFreeList < T, N, MUTEX >::autoPtrFreeList (
2322 tsFreeList < T, N, MUTEX > & freeListIn, T * pIn ) :
2323 p ( pIn ), freeList ( freeListIn ) {}
2324
2325diff --git a/modules/ca/src/client/autoPtrRecycle.h b/modules/ca/src/client/autoPtrRecycle.h
2326index 173e148..600bb5a 100644
2327--- a/modules/ca/src/client/autoPtrRecycle.h
2328+++ b/modules/ca/src/client/autoPtrRecycle.h
2329@@ -5,22 +5,22 @@
2330 * Operator of Los Alamos National Laboratory.
2331 * EPICS BASE Versions 3.13.7
2332 * and higher are distributed subject to a Software License Agreement found
2333-* in file LICENSE that is included with this distribution.
2334+* in file LICENSE that is included with this distribution.
2335 \*************************************************************************/
2336
2337-/*
2338+/*
2339+ *
2340 *
2341- *
2342 * L O S A L A M O S
2343 * Los Alamos National Laboratory
2344 * Los Alamos, New Mexico 87545
2345- *
2346+ *
2347 * Copyright, The Regents of the University of California.
2348- *
2349- *
2350- * Author Jeffrey O. Hill
2351- * johill@lanl.gov
2352- * 505 665 1831
2353+ *
2354+ *
2355+ * Author Jeffrey O. Hill
2356+ * johill@lanl.gov
2357+ * 505 665 1831
2358 */
2359
2360 #ifndef autoPtrRecycleh
2361@@ -29,7 +29,7 @@
2362 template < class T >
2363 class autoPtrRecycle {
2364 public:
2365- autoPtrRecycle (
2366+ autoPtrRecycle (
2367 epicsGuard < epicsMutex > &, chronIntIdResTable < baseNMIU > &,
2368 cacRecycle &, T * );
2369 ~autoPtrRecycle ();
2370@@ -43,12 +43,12 @@ private:
2371 chronIntIdResTable < baseNMIU > & ioTable;
2372 epicsGuard < epicsMutex > & guard;
2373 // not implemented
2374- autoPtrRecycle ( const autoPtrRecycle & );
2375- autoPtrRecycle & operator = ( const autoPtrRecycle & );
2376+ autoPtrRecycle ( const autoPtrRecycle & );
2377+ autoPtrRecycle & operator = ( const autoPtrRecycle & );
2378 };
2379
2380 template < class T >
2381-inline autoPtrRecycle<T>::autoPtrRecycle (
2382+inline autoPtrRecycle<T>::autoPtrRecycle (
2383 epicsGuard < epicsMutex > & guardIn, chronIntIdResTable < baseNMIU > & tbl,
2384 cacRecycle & rIn, T * pIn ) :
2385 p ( pIn ), r ( rIn ), ioTable ( tbl ), guard ( guardIn ) {}
2386diff --git a/modules/ca/src/client/baseNMIU.cpp b/modules/ca/src/client/baseNMIU.cpp
2387index 20f153b..8d444c1 100644
2388--- a/modules/ca/src/client/baseNMIU.cpp
2389+++ b/modules/ca/src/client/baseNMIU.cpp
2390@@ -5,10 +5,10 @@
2391 * Operator of Los Alamos National Laboratory.
2392 * EPICS BASE Versions 3.13.7
2393 * and higher are distributed subject to a Software License Agreement found
2394-* in file LICENSE that is included with this distribution.
2395+* in file LICENSE that is included with this distribution.
2396 \*************************************************************************/
2397
2398-/*
2399+/*
2400 *
2401 * L O S A L A M O S
2402 * Los Alamos National Laboratory
2403diff --git a/modules/ca/src/client/bhe.cpp b/modules/ca/src/client/bhe.cpp
2404index d6f1796..4fac257 100644
2405--- a/modules/ca/src/client/bhe.cpp
2406+++ b/modules/ca/src/client/bhe.cpp
2407@@ -5,10 +5,10 @@
2408 * Operator of Los Alamos National Laboratory.
2409 * EPICS BASE Versions 3.13.7
2410 * and higher are distributed subject to a Software License Agreement found
2411-* in file LICENSE that is included with this distribution.
2412+* in file LICENSE that is included with this distribution.
2413 \*************************************************************************/
2414-
2415-/*
2416+
2417+/*
2418 *
2419 * L O S A L A M O S
2420 * Los Alamos National Laboratory
2421@@ -42,12 +42,12 @@
2422 * start up
2423 *
2424 * if creating this in response to a search reply
2425- * and not in response to a beacon then
2426+ * and not in response to a beacon then
2427 * we set the beacon time stamp to
2428 * zero (so we can correctly compute the period
2429 * between the 1st and 2nd beacons)
2430 */
2431-bhe::bhe ( epicsMutex & mutexIn, const epicsTime & initialTimeStamp,
2432+bhe::bhe ( epicsMutex & mutexIn, const epicsTime & initialTimeStamp,
2433 unsigned initialBeaconNumber, const inetAddrID & addr ) :
2434 inetAddrID ( addr ), timeStamp ( initialTimeStamp ), averagePeriod ( - DBL_MAX ),
2435 mutex ( mutexIn ), pIIU ( 0 ), lastBeaconNumber ( initialBeaconNumber )
2436@@ -74,7 +74,7 @@ void bhe::beaconAnomalyNotify ( epicsGuard < epicsMutex > & guard )
2437 }
2438
2439 #ifdef DEBUG
2440-void bhe::logBeacon ( const char * pDiagnostic,
2441+void bhe::logBeacon ( const char * pDiagnostic,
2442 const double & currentPeriod,
2443 const epicsTime & currentTime )
2444 {
2445@@ -82,10 +82,10 @@ void bhe::logBeacon ( const char * pDiagnostic,
2446 char name[64];
2447 this->name ( name, sizeof ( name ) );
2448 char date[64];
2449- currentTime.strftime ( date, sizeof ( date ),
2450+ currentTime.strftime ( date, sizeof ( date ),
2451 "%a %b %d %Y %H:%M:%S.%f");
2452 ::printf ( "%s cp=%g ap=%g %s %s\n",
2453- pDiagnostic, currentPeriod,
2454+ pDiagnostic, currentPeriod,
2455 this->averagePeriod, name, date );
2456 }
2457 }
2458@@ -105,7 +105,7 @@ void bhe::logBeaconDiscard ( unsigned beaconAdvance,
2459 char name[64];
2460 this->name ( name, sizeof ( name ) );
2461 char date[64];
2462- currentTime.strftime ( date, sizeof ( date ),
2463+ currentTime.strftime ( date, sizeof ( date ),
2464 "%a %b %d %Y %H:%M:%S.%f");
2465 ::printf ( "bb %u %s %s\n",
2466 beaconAdvance, name, date );
2467@@ -123,16 +123,16 @@ void bhe::logBeaconDiscard ( unsigned /* beaconAdvance */,
2468 *
2469 * updates beacon period, and looks for beacon anomalies
2470 */
2471-bool bhe::updatePeriod (
2472- epicsGuard < epicsMutex > & guard, const epicsTime & programBeginTime,
2473- const epicsTime & currentTime, ca_uint32_t beaconNumber,
2474+bool bhe::updatePeriod (
2475+ epicsGuard < epicsMutex > & guard, const epicsTime & programBeginTime,
2476+ const epicsTime & currentTime, ca_uint32_t beaconNumber,
2477 unsigned protocolRevision )
2478 {
2479 guard.assertIdenticalMutex ( this->mutex );
2480
2481 //
2482 // this block is enetered if the beacon was created as a side effect of
2483- // creating a connection and so we dont yet know the first beacon time
2484+ // creating a connection and so we dont yet know the first beacon time
2485 // and sequence number
2486 //
2487 if ( this->timeStamp == epicsTime () ) {
2488@@ -142,7 +142,7 @@ bool bhe::updatePeriod (
2489
2490 this->beaconAnomalyNotify ( guard );
2491
2492- /*
2493+ /*
2494 * this is the 1st beacon seen - the beacon time stamp
2495 * was not initialized during BHE create because
2496 * a TCP/IP connection created the beacon.
2497@@ -167,15 +167,15 @@ bool bhe::updatePeriod (
2498 }
2499 this->lastBeaconNumber = beaconNumber;
2500
2501- // throw out sequence numbers just prior to, or the same as, the last one received
2502+ // throw out sequence numbers just prior to, or the same as, the last one received
2503 // (this situation is probably caused by a temporary duplicate route )
2504 if ( beaconSeqAdvance == 0 || beaconSeqAdvance > ca_uint32_max - 256 ) {
2505 logBeaconDiscard ( beaconSeqAdvance, currentTime );
2506 return false;
2507 }
2508
2509- // throw out sequence numbers that jump forward by only a few numbers
2510- // (this situation is probably caused by a duplicate route
2511+ // throw out sequence numbers that jump forward by only a few numbers
2512+ // (this situation is probably caused by a duplicate route
2513 // or a beacon due to input queue overun)
2514 if ( beaconSeqAdvance > 1 && beaconSeqAdvance < 4 ) {
2515 logBeaconDiscard ( beaconSeqAdvance, currentTime );
2516@@ -205,7 +205,7 @@ bool bhe::updatePeriod (
2517 /*
2518 * ignore beacons seen for the first time shortly after
2519 * init, but do not ignore beacons arriving with a short
2520- * period because the IOC was rebooted soon after the
2521+ * period because the IOC was rebooted soon after the
2522 * client starts up.
2523 */
2524 totalRunningTime = this->timeStamp - programBeginTime;
2525@@ -217,24 +217,24 @@ bool bhe::updatePeriod (
2526
2527 /*
2528 * Is this an IOC seen because of a restored
2529- * network segment?
2530+ * network segment?
2531 *
2532- * It may be possible to get false triggers here
2533+ * It may be possible to get false triggers here
2534 * if the client is busy, but this does not cause
2535- * problems because the echo response will tell us
2536+ * problems because the echo response will tell us
2537 * that the server is available
2538 */
2539 if ( currentPeriod >= this->averagePeriod * 1.25 ) {
2540
2541- /*
2542- * trigger on any missing beacon
2543+ /*
2544+ * trigger on any missing beacon
2545 * if connected to this server
2546- */
2547+ */
2548 this->beaconAnomalyNotify ( guard );
2549
2550 if ( currentPeriod >= this->averagePeriod * 3.25 ) {
2551- /*
2552- * trigger on any 3 contiguous missing beacons
2553+ /*
2554+ * trigger on any 3 contiguous missing beacons
2555 * if not connected to this server
2556 */
2557 netChange = true;
2558@@ -248,9 +248,9 @@ bool bhe::updatePeriod (
2559 * IOC reboots). Lower tolarance here because we
2560 * dont have to worry about lost beacons.
2561 *
2562- * It may be possible to get false triggers here
2563+ * It may be possible to get false triggers here
2564 * if the client is busy, but this does not cause
2565- * problems because the echo response will tell us
2566+ * problems because the echo response will tell us
2567 * that the server is available
2568 */
2569 else if ( currentPeriod <= this->averagePeriod * 0.80 ) {
2570@@ -259,14 +259,14 @@ bool bhe::updatePeriod (
2571 logBeacon ( "bal", currentPeriod, currentTime );
2572 }
2573 else if ( this->pIIU ) {
2574- // update state of health for active virtual circuits
2575+ // update state of health for active virtual circuits
2576 // if the beacon looks ok
2577 this->pIIU->beaconArrivalNotify ( guard );
2578 logBeacon ( "vb", currentPeriod, currentTime );
2579 }
2580
2581 // update a running average period
2582- this->averagePeriod = currentPeriod * 0.125 +
2583+ this->averagePeriod = currentPeriod * 0.125 +
2584 this->averagePeriod * 0.875;
2585 }
2586
2587@@ -286,22 +286,22 @@ void bhe::show ( epicsGuard < epicsMutex > &, unsigned level ) const
2588 char host [64];
2589 this->name ( host, sizeof ( host ) );
2590 if ( this->averagePeriod == -DBL_MAX ) {
2591- ::printf ( "CA beacon hash entry for %s <no period estimate>\n",
2592+ ::printf ( "CA beacon hash entry for %s <no period estimate>\n",
2593 host );
2594 }
2595 else {
2596- ::printf ( "CA beacon hash entry for %s with period estimate %f\n",
2597+ ::printf ( "CA beacon hash entry for %s with period estimate %f\n",
2598 host, this->averagePeriod );
2599 }
2600 if ( level > 0u ) {
2601 char date[64];
2602 this->timeStamp.strftime ( date, sizeof ( date ), "%a %b %d %Y %H:%M:%S");
2603- ::printf ( "\tbeacon number %u, on %s\n",
2604+ ::printf ( "\tbeacon number %u, on %s\n",
2605 this->lastBeaconNumber, date );
2606 }
2607 }
2608
2609-double bhe::period ( epicsGuard < epicsMutex > & guard ) const
2610+double bhe::period ( epicsGuard < epicsMutex > & guard ) const
2611 {
2612 guard.assertIdenticalMutex ( this->mutex );
2613 return this->averagePeriod;
2614@@ -313,14 +313,14 @@ epicsTime bhe::updateTime ( epicsGuard < epicsMutex > & guard ) const
2615 return this->timeStamp;
2616 }
2617
2618-void bhe::registerIIU (
2619+void bhe::registerIIU (
2620 epicsGuard < epicsMutex > & guard, tcpiiu & iiu )
2621 {
2622 guard.assertIdenticalMutex ( this->mutex );
2623 this->pIIU = & iiu;
2624 }
2625
2626-void bhe::unregisterIIU (
2627+void bhe::unregisterIIU (
2628 epicsGuard < epicsMutex > & guard, tcpiiu & iiu )
2629 {
2630 guard.assertIdenticalMutex ( this->mutex );
2631diff --git a/modules/ca/src/client/bhe.h b/modules/ca/src/client/bhe.h
2632index 4da9520..b1be35f 100644
2633--- a/modules/ca/src/client/bhe.h
2634+++ b/modules/ca/src/client/bhe.h
2635@@ -5,10 +5,10 @@
2636 * Operator of Los Alamos National Laboratory.
2637 * EPICS BASE Versions 3.13.7
2638 * and higher are distributed subject to a Software License Agreement found
2639-* in file LICENSE that is included with this distribution.
2640+* in file LICENSE that is included with this distribution.
2641 \*************************************************************************/
2642
2643-/*
2644+/*
2645 *
2646 * L O S A L A M O S
2647 * Los Alamos National Laboratory
2648@@ -54,14 +54,14 @@ public:
2649
2650 class bhe : public tsSLNode < bhe >, public inetAddrID {
2651 public:
2652- epicsShareFunc bhe (
2653- epicsMutex &, const epicsTime & initialTimeStamp,
2654+ epicsShareFunc bhe (
2655+ epicsMutex &, const epicsTime & initialTimeStamp,
2656 unsigned initialBeaconNumber, const inetAddrID & addr );
2657- epicsShareFunc ~bhe ();
2658- epicsShareFunc bool updatePeriod (
2659+ epicsShareFunc ~bhe ();
2660+ epicsShareFunc bool updatePeriod (
2661 epicsGuard < epicsMutex > &,
2662- const epicsTime & programBeginTime,
2663- const epicsTime & currentTime, ca_uint32_t beaconNumber,
2664+ const epicsTime & programBeginTime,
2665+ const epicsTime & currentTime, ca_uint32_t beaconNumber,
2666 unsigned protocolRevision );
2667 epicsShareFunc double period ( epicsGuard < epicsMutex > & ) const;
2668 epicsShareFunc epicsTime updateTime ( epicsGuard < epicsMutex > & ) const;
2669@@ -80,13 +80,13 @@ private:
2670 tcpiiu * pIIU;
2671 ca_uint32_t lastBeaconNumber;
2672 void beaconAnomalyNotify ( epicsGuard < epicsMutex > & );
2673- void logBeacon ( const char * pDiagnostic,
2674+ void logBeacon ( const char * pDiagnostic,
2675 const double & currentPeriod,
2676 const epicsTime & currentTime );
2677 void logBeaconDiscard ( unsigned beaconAdvance,
2678 const epicsTime & currentTime );
2679- bhe ( const bhe & );
2680- bhe & operator = ( const bhe & );
2681+ bhe ( const bhe & );
2682+ bhe & operator = ( const bhe & );
2683 epicsShareFunc void operator delete ( void * );
2684 };
2685
2686@@ -99,20 +99,20 @@ public:
2687 void release ( void * );
2688 private:
2689 tsFreeList < bhe, 0x100 > freeList;
2690- bheFreeStore ( const bheFreeStore & );
2691- bheFreeStore & operator = ( const bheFreeStore & );
2692+ bheFreeStore ( const bheFreeStore & );
2693+ bheFreeStore & operator = ( const bheFreeStore & );
2694 };
2695
2696-inline void * bhe::operator new ( size_t size,
2697+inline void * bhe::operator new ( size_t size,
2698 bheMemoryManager & mgr )
2699-{
2700+{
2701 return mgr.allocate ( size );
2702 }
2703
2704 #ifdef CXX_PLACEMENT_DELETE
2705-inline void bhe::operator delete ( void * pCadaver,
2706+inline void bhe::operator delete ( void * pCadaver,
2707 bheMemoryManager & mgr )
2708-{
2709+{
2710 mgr.release ( pCadaver );
2711 }
2712 #endif
2713diff --git a/modules/ca/src/client/caConnTest.cpp b/modules/ca/src/client/caConnTest.cpp
2714index 2107739..bd479e6 100644
2715--- a/modules/ca/src/client/caConnTest.cpp
2716+++ b/modules/ca/src/client/caConnTest.cpp
2717@@ -5,7 +5,7 @@
2718 * Operator of Los Alamos National Laboratory.
2719 * EPICS BASE Versions 3.13.7
2720 * and higher are distributed subject to a Software License Agreement found
2721-* in file LICENSE that is included with this distribution.
2722+* in file LICENSE that is included with this distribution.
2723 \*************************************************************************/
2724
2725 #include <stdio.h>
2726@@ -60,50 +60,50 @@ void caConnTest ( const char *pNameIn, unsigned channelCountIn, double delayIn )
2727 {
2728 unsigned iteration = 0u;
2729 int status;
2730- unsigned i;
2731- chid *pChans;
2732+ unsigned i;
2733+ chid *pChans;
2734
2735 channelCount = channelCountIn;
2736
2737 pChans = new chid [channelCount];
2738-
2739- while ( 1 ) {
2740+
2741+ while ( 1 ) {
2742 connCount = 0u;
2743 subsequentConnect = false;
2744 begin = epicsTime::getCurrent ();
2745
2746 printf ( "initializing CA client library\n" );
2747
2748- status = ca_task_initialize();
2749- SEVCHK ( status, "CA init failed" );
2750+ status = ca_task_initialize();
2751+ SEVCHK ( status, "CA init failed" );
2752
2753 printf ( "creating channels\n" );
2754
2755- for ( i = 0u; i < channelCount; i++ ) {
2756- status = ca_search_and_connect ( pNameIn,
2757+ for ( i = 0u; i < channelCount; i++ ) {
2758+ status = ca_search_and_connect ( pNameIn,
2759 &pChans[i], caConnTestConnHandler, 0 );
2760- SEVCHK ( status, "CA search problems" );
2761- }
2762+ SEVCHK ( status, "CA search problems" );
2763+ }
2764
2765 printf ( "all channels were created\n" );
2766
2767- ca_pend_event ( delayIn );
2768+ ca_pend_event ( delayIn );
2769
2770 if ( iteration & 1 ) {
2771- for ( i = 0u; i < channelCount; i++ ) {
2772- status = ca_clear_channel ( pChans[i] );
2773- SEVCHK ( status, "ca_clear_channel() problems" );
2774- }
2775+ for ( i = 0u; i < channelCount; i++ ) {
2776+ status = ca_clear_channel ( pChans[i] );
2777+ SEVCHK ( status, "ca_clear_channel() problems" );
2778+ }
2779 printf ( "all channels were destroyed\n" );
2780 }
2781
2782 printf ( "shutting down CA client library\n" );
2783
2784- status = ca_task_exit ();
2785- SEVCHK ( status, "task exit problems" );
2786+ status = ca_task_exit ();
2787+ SEVCHK ( status, "task exit problems" );
2788
2789 iteration++;
2790- }
2791+ }
2792
2793 //delete [] pChans;
2794 }
2795diff --git a/modules/ca/src/client/caConnTestMain.cpp b/modules/ca/src/client/caConnTestMain.cpp
2796index f398580..b5e921c 100644
2797--- a/modules/ca/src/client/caConnTestMain.cpp
2798+++ b/modules/ca/src/client/caConnTestMain.cpp
2799@@ -5,7 +5,7 @@
2800 * Operator of Los Alamos National Laboratory.
2801 * EPICS BASE Versions 3.13.7
2802 * and higher are distributed subject to a Software License Agreement found
2803-* in file LICENSE that is included with this distribution.
2804+* in file LICENSE that is included with this distribution.
2805 \*************************************************************************/
2806
2807 #include <stdio.h>
2808diff --git a/modules/ca/src/client/caDiagnostics.h b/modules/ca/src/client/caDiagnostics.h
2809index 90221e1..87029ce 100644
2810--- a/modules/ca/src/client/caDiagnostics.h
2811+++ b/modules/ca/src/client/caDiagnostics.h
2812@@ -5,7 +5,7 @@
2813 * Operator of Los Alamos National Laboratory.
2814 * EPICS BASE Versions 3.13.7
2815 * and higher are distributed subject to a Software License Agreement found
2816-* in file LICENSE that is included with this distribution.
2817+* in file LICENSE that is included with this distribution.
2818 \*************************************************************************/
2819
2820 #ifndef caDiagnosticsh
2821@@ -20,8 +20,8 @@ extern "C" {
2822 enum appendNumberFlag {appendNumber, dontAppendNumber};
2823 int catime ( const char *channelName, unsigned channelCount, enum appendNumberFlag appNF );
2824
2825-int acctst ( const char *pname, unsigned logggingInterestLevel,
2826- unsigned channelCount, unsigned repetitionCount,
2827+int acctst ( const char *pname, unsigned logggingInterestLevel,
2828+ unsigned channelCount, unsigned repetitionCount,
2829 enum ca_preemptive_callback_select select );
2830
2831 #define CATIME_OK 0
2832diff --git a/modules/ca/src/client/caEventRate.cpp b/modules/ca/src/client/caEventRate.cpp
2833index 8beb163..efb6dc7 100644
2834--- a/modules/ca/src/client/caEventRate.cpp
2835+++ b/modules/ca/src/client/caEventRate.cpp
2836@@ -5,7 +5,7 @@
2837 * Operator of Los Alamos National Laboratory.
2838 * EPICS BASE Versions 3.13.7
2839 * and higher are distributed subject to a Software License Agreement found
2840-* in file LICENSE that is included with this distribution.
2841+* in file LICENSE that is included with this distribution.
2842 \*************************************************************************/
2843
2844 #include <stdio.h>
2845@@ -38,50 +38,50 @@ void caEventRate ( const char *pName, unsigned count )
2846 chid * pChidTable = new chid [ count ];
2847
2848 {
2849- printf ( "Connecting to CA Channel \"%s\" %u times.",
2850+ printf ( "Connecting to CA Channel \"%s\" %u times.",
2851 pName, count );
2852 fflush ( stdout );
2853-
2854+
2855 epicsTime begin = epicsTime::getCurrent ();
2856 for ( unsigned i = 0u; i < count; i++ ) {
2857 int status = ca_search ( pName, & pChidTable[i] );
2858 SEVCHK ( status, NULL );
2859 }
2860-
2861+
2862 int status = ca_pend_io ( 10000.0 );
2863 if ( status != ECA_NORMAL ) {
2864 fprintf ( stderr, " not found.\n" );
2865 return;
2866 }
2867 epicsTime end = epicsTime::getCurrent ();
2868-
2869+
2870 printf ( " done(%f sec).\n", end - begin );
2871 }
2872
2873 {
2874 printf ( "Subscribing %u times.", count );
2875 fflush ( stdout );
2876-
2877+
2878 epicsTime begin = epicsTime::getCurrent ();
2879 for ( unsigned i = 0u; i < count; i++ ) {
2880- int addEventStatus = ca_add_event ( DBR_FLOAT,
2881+ int addEventStatus = ca_add_event ( DBR_FLOAT,
2882 pChidTable[i], eventCallBack, &eventCount, NULL);
2883 SEVCHK ( addEventStatus, __FILE__ );
2884 }
2885-
2886+
2887 int status = ca_flush_io ();
2888 SEVCHK ( status, __FILE__ );
2889-
2890+
2891 epicsTime end = epicsTime::getCurrent ();
2892-
2893+
2894 printf ( " done(%f sec).\n", end - begin );
2895 }
2896-
2897+
2898 {
2899 printf ( "Waiting for initial value events." );
2900 fflush ( stdout );
2901-
2902- // let the first one go by
2903+
2904+ // let the first one go by
2905 epicsTime begin = epicsTime::getCurrent ();
2906 while ( eventCount < count ) {
2907 int status = ca_pend_event ( 0.01 );
2908@@ -90,7 +90,7 @@ void caEventRate ( const char *pName, unsigned count )
2909 }
2910 }
2911 epicsTime end = epicsTime::getCurrent ();
2912-
2913+
2914 printf ( " done(%f sec).\n", end - begin );
2915 }
2916
2917@@ -128,7 +128,7 @@ void caEventRate ( const char *pName, unsigned count )
2918 double mean = X / N;
2919 double stdDev = sqrt ( XX / N - mean * mean );
2920
2921- printf ( "CA Event Rate (Hz): current %g mean %g std dev %g\n",
2922+ printf ( "CA Event Rate (Hz): current %g mean %g std dev %g\n",
2923 Hz, mean, stdDev );
2924
2925 if ( samplePeriod < maxSamplePeriod ) {
2926diff --git a/modules/ca/src/client/caEventRateMain.cpp b/modules/ca/src/client/caEventRateMain.cpp
2927index 725e661..7ace11d 100644
2928--- a/modules/ca/src/client/caEventRateMain.cpp
2929+++ b/modules/ca/src/client/caEventRateMain.cpp
2930@@ -5,7 +5,7 @@
2931 * Operator of Los Alamos National Laboratory.
2932 * EPICS BASE Versions 3.13.7
2933 * and higher are distributed subject to a Software License Agreement found
2934-* in file LICENSE that is included with this distribution.
2935+* in file LICENSE that is included with this distribution.
2936 \*************************************************************************/
2937
2938 #include <stdio.h>
2939diff --git a/modules/ca/src/client/caProto.h b/modules/ca/src/client/caProto.h
2940index 781c89b..dd59fd4 100644
2941--- a/modules/ca/src/client/caProto.h
2942+++ b/modules/ca/src/client/caProto.h
2943@@ -5,7 +5,7 @@
2944 * Operator of Los Alamos National Laboratory.
2945 * EPICS BASE Versions 3.13.7
2946 * and higher are distributed subject to a Software License Agreement found
2947-* in file LICENSE that is included with this distribution.
2948+* in file LICENSE that is included with this distribution.
2949 \*************************************************************************/
2950 /*
2951 *
2952@@ -15,14 +15,14 @@
2953 */
2954
2955 #ifndef __CAPROTO__
2956-#define __CAPROTO__
2957+#define __CAPROTO__
2958
2959 #define capStrOf(A) #A
2960 #define capStrOfX(A) capStrOf ( A )
2961
2962-/*
2963+/*
2964 * CA protocol revision
2965- * TCP/UDP port number (bumped each major protocol change)
2966+ * TCP/UDP port number (bumped each major protocol change)
2967 */
2968 #define CA_MAJOR_PROTOCOL_REVISION 4
2969 #define CA_VERSION_STRING( MINOR_REVISION ) \
2970@@ -30,7 +30,7 @@
2971 #define CA_UKN_MINOR_VERSION 0u /* unknown minor version */
2972 #define CA_MINIMUM_SUPPORTED_VERSION 4u
2973 # define CA_VSUPPORTED(MINOR) ((MINOR)>=CA_MINIMUM_SUPPORTED_VERSION)
2974-# define CA_V41(MINOR) ((MINOR)>=1u)
2975+# define CA_V41(MINOR) ((MINOR)>=1u)
2976 # define CA_V42(MINOR) ((MINOR)>=2u)
2977 # define CA_V43(MINOR) ((MINOR)>=3u)
2978 # define CA_V44(MINOR) ((MINOR)>=4u)
2979@@ -45,8 +45,8 @@
2980 # define CA_V413(MINOR) ((MINOR)>=13u) /* Allow zero length in requests. */
2981
2982 /*
2983- * These port numbers are only used if the CA repeater and
2984- * CA server port numbers cant be obtained from the EPICS
2985+ * These port numbers are only used if the CA repeater and
2986+ * CA server port numbers cant be obtained from the EPICS
2987 * environment variables "EPICS_CA_REPEATER_PORT" and
2988 * "EPICS_CA_SERVER_PORT"
2989 */
2990@@ -54,8 +54,8 @@
2991 #define CA_SERVER_PORT (CA_PORT_BASE+CA_MAJOR_PROTOCOL_REVISION*2u)
2992 #define CA_REPEATER_PORT (CA_PORT_BASE+CA_MAJOR_PROTOCOL_REVISION*2u+1u)
2993
2994-/*
2995- * 1500 (max of ethernet and 802.{2,3} MTU) - 20(IP) - 8(UDP)
2996+/*
2997+ * 1500 (max of ethernet and 802.{2,3} MTU) - 20(IP) - 8(UDP)
2998 * (the MTU of Ethernet is currently independent of its speed varient)
2999 */
3000 #define ETHERNET_MAX_UDP ( 1500u - 20u - 8u )
3001@@ -89,10 +89,10 @@ typedef ca_uint32_t caResId;
3002 #define CA_PROTO_SNAPSHOT 5u /* snapshot of the system */
3003 #define CA_PROTO_SEARCH 6u /* IOC channel search */
3004 #define CA_PROTO_BUILD 7u /* build - obsolete */
3005-#define CA_PROTO_EVENTS_OFF 8u /* flow control */
3006-#define CA_PROTO_EVENTS_ON 9u /* flow control */
3007-#define CA_PROTO_READ_SYNC 10u /* purge old reads */
3008-#define CA_PROTO_ERROR 11u /* an operation failed */
3009+#define CA_PROTO_EVENTS_OFF 8u /* flow control */
3010+#define CA_PROTO_EVENTS_ON 9u /* flow control */
3011+#define CA_PROTO_READ_SYNC 10u /* purge old reads */
3012+#define CA_PROTO_ERROR 11u /* an operation failed */
3013 #define CA_PROTO_CLEAR_CHANNEL 12u /* free chan resources */
3014 #define CA_PROTO_RSRV_IS_UP 13u /* CA server has joined the net */
3015 #define CA_PROTO_NOT_FOUND 14u /* channel not found */
3016@@ -172,7 +172,7 @@ typedef struct ca_hdr {
3017 */
3018 struct mon_info {
3019 ca_float32_t m_lval; /* low delta */
3020- ca_float32_t m_hval; /* high delta */
3021+ ca_float32_t m_hval; /* high delta */
3022 ca_float32_t m_toval; /* period btween samples */
3023 ca_uint16_t m_mask; /* event select mask */
3024 ca_uint16_t m_pad; /* extend to 32 bits */
3025diff --git a/modules/ca/src/client/caRepeater.cpp b/modules/ca/src/client/caRepeater.cpp
3026index 2561223..634a2bc 100644
3027--- a/modules/ca/src/client/caRepeater.cpp
3028+++ b/modules/ca/src/client/caRepeater.cpp
3029@@ -5,7 +5,7 @@
3030 * Operator of Los Alamos National Laboratory.
3031 * EPICS BASE Versions 3.13.7
3032 * and higher are distributed subject to a Software License Agreement found
3033-* in file LICENSE that is included with this distribution.
3034+* in file LICENSE that is included with this distribution.
3035 \*************************************************************************/
3036 /*
3037 *
3038diff --git a/modules/ca/src/client/caServerID.h b/modules/ca/src/client/caServerID.h
3039index 08bfdd5..430f314 100644
3040--- a/modules/ca/src/client/caServerID.h
3041+++ b/modules/ca/src/client/caServerID.h
3042@@ -5,7 +5,7 @@
3043 * Operator of Los Alamos National Laboratory.
3044 * EPICS BASE Versions 3.13.7
3045 * and higher are distributed subject to a Software License Agreement found
3046-* in file LICENSE that is included with this distribution.
3047+* in file LICENSE that is included with this distribution.
3048 \*************************************************************************/
3049 /*
3050 *
3051@@ -37,7 +37,7 @@ private:
3052 ca_uint8_t pri;
3053 };
3054
3055-inline caServerID::caServerID (
3056+inline caServerID::caServerID (
3057 const struct sockaddr_in & addrIn, unsigned priorityIn ) :
3058 addr ( addrIn ), pri ( static_cast <ca_uint8_t> ( priorityIn ) )
3059 {
3060@@ -46,7 +46,7 @@ inline caServerID::caServerID (
3061
3062 inline bool caServerID::operator == ( const caServerID & rhs ) const
3063 {
3064- if ( this->addr.sin_addr.s_addr == rhs.addr.sin_addr.s_addr &&
3065+ if ( this->addr.sin_addr.s_addr == rhs.addr.sin_addr.s_addr &&
3066 this->addr.sin_port == rhs.addr.sin_port &&
3067 this->pri == rhs.pri ) {
3068 return true;
3069@@ -67,7 +67,7 @@ inline resTableIndex caServerID::hash () const
3070 index ^= this->addr.sin_port;
3071 index ^= this->addr.sin_port >> 8u;
3072 index ^= this->pri;
3073- return integerHash ( caServerMinIndexBitWidth,
3074+ return integerHash ( caServerMinIndexBitWidth,
3075 caServerMaxIndexBitWidth, index );
3076 }
3077
3078diff --git a/modules/ca/src/client/ca_client_context.cpp b/modules/ca/src/client/ca_client_context.cpp
3079index 3fd0512..44d6427 100644
3080--- a/modules/ca/src/client/ca_client_context.cpp
3081+++ b/modules/ca/src/client/ca_client_context.cpp
3082@@ -17,9 +17,9 @@
3083 * Copyright, 1986, The Regents of the University of California.
3084 *
3085 *
3086- * Author Jeffrey O. Hill
3087- * johill@lanl.gov
3088- * 505 665 1831
3089+ * Author Jeffrey O. Hill
3090+ * johill@lanl.gov
3091+ * 505 665 1831
3092 */
3093
3094 #ifdef _MSC_VER
3095diff --git a/modules/ca/src/client/cac.cpp b/modules/ca/src/client/cac.cpp
3096index 476d1c3..e335e6e 100644
3097--- a/modules/ca/src/client/cac.cpp
3098+++ b/modules/ca/src/client/cac.cpp
3099@@ -155,7 +155,7 @@ cac::cac (
3100 }
3101
3102 try {
3103- long status;
3104+ long status;
3105
3106 /*
3107 * Certain os, such as HPUX, do not unblock a socket system call
3108diff --git a/modules/ca/src/client/cac.h b/modules/ca/src/client/cac.h
3109index 7db5c6d..c98f05d 100644
3110--- a/modules/ca/src/client/cac.h
3111+++ b/modules/ca/src/client/cac.h
3112@@ -81,8 +81,8 @@ public:
3113 void release ( void * );
3114 private:
3115 tsFreeList < comBuf, 0x20 > freeList;
3116- cacComBufMemoryManager ( const cacComBufMemoryManager & );
3117- cacComBufMemoryManager & operator = ( const cacComBufMemoryManager & );
3118+ cacComBufMemoryManager ( const cacComBufMemoryManager & );
3119+ cacComBufMemoryManager & operator = ( const cacComBufMemoryManager & );
3120 };
3121
3122 class notifyGuard {
3123@@ -348,8 +348,8 @@ private:
3124 const char *pCtx, unsigned status );
3125 static const pExcepProtoStubTCP tcpExcepJumpTableCAC [];
3126
3127- cac ( const cac & );
3128- cac & operator = ( const cac & );
3129+ cac ( const cac & );
3130+ cac & operator = ( const cac & );
3131
3132 friend class tcpiiu;
3133 };
3134diff --git a/modules/ca/src/client/cacChannel.cpp b/modules/ca/src/client/cacChannel.cpp
3135index c1a52a0..80f622f 100644
3136--- a/modules/ca/src/client/cacChannel.cpp
3137+++ b/modules/ca/src/client/cacChannel.cpp
3138@@ -5,11 +5,11 @@
3139 * Operator of Los Alamos National Laboratory.
3140 * EPICS BASE Versions 3.13.7
3141 * and higher are distributed subject to a Software License Agreement found
3142-* in file LICENSE that is included with this distribution.
3143+* in file LICENSE that is included with this distribution.
3144 \*************************************************************************/
3145
3146
3147-/*
3148+/*
3149 *
3150 * L O S A L A M O S
3151 * Los Alamos National Laboratory
3152@@ -41,7 +41,7 @@ private:
3153 epicsSingleton < localHostName > :: reference
3154 _refLocalHostName;
3155 };
3156-
3157+
3158 static epicsThreadOnceId cacChannelIdOnce = EPICS_THREAD_ONCE_INIT;
3159
3160 const cacChannel::priLev cacChannel::priorityMax = 99u;
3161@@ -55,63 +55,63 @@ cacChannel::~cacChannel ()
3162 {
3163 }
3164
3165-caAccessRights cacChannel::accessRights (
3166- epicsGuard < epicsMutex > & ) const
3167+caAccessRights cacChannel::accessRights (
3168+ epicsGuard < epicsMutex > & ) const
3169 {
3170 static caAccessRights ar ( true, true );
3171 return ar;
3172 }
3173
3174-unsigned cacChannel::searchAttempts (
3175- epicsGuard < epicsMutex > & ) const
3176+unsigned cacChannel::searchAttempts (
3177+ epicsGuard < epicsMutex > & ) const
3178 {
3179 return 0u;
3180 }
3181
3182-double cacChannel::beaconPeriod (
3183- epicsGuard < epicsMutex > & ) const
3184+double cacChannel::beaconPeriod (
3185+ epicsGuard < epicsMutex > & ) const
3186 {
3187 return - DBL_MAX;
3188 }
3189
3190-double cacChannel::receiveWatchdogDelay (
3191+double cacChannel::receiveWatchdogDelay (
3192 epicsGuard < epicsMutex > & ) const
3193 {
3194 return - DBL_MAX;
3195 }
3196
3197 bool cacChannel::ca_v42_ok (
3198- epicsGuard < epicsMutex > & ) const
3199+ epicsGuard < epicsMutex > & ) const
3200 {
3201 return true;
3202 }
3203
3204 bool cacChannel::connected (
3205- epicsGuard < epicsMutex > & ) const
3206+ epicsGuard < epicsMutex > & ) const
3207 {
3208 return true;
3209 }
3210
3211-CACChannelPrivate ::
3212+CACChannelPrivate ::
3213 CACChannelPrivate() :
3214 _refLocalHostName ( localHostNameCache.getReference () )
3215 {
3216 }
3217
3218-inline unsigned CACChannelPrivate ::
3219+inline unsigned CACChannelPrivate ::
3220 getHostName ( char * pBuf, unsigned bufLength )
3221 {
3222 return _refLocalHostName->getName ( pBuf, bufLength );
3223 }
3224-
3225-inline const char * CACChannelPrivate ::
3226+
3227+inline const char * CACChannelPrivate ::
3228 pHostName ()
3229 {
3230 return _refLocalHostName->pointer ();
3231 }
3232
3233 static CACChannelPrivate * pCACChannelPrivate = 0;
3234-
3235+
3236 // runs once only for each process
3237 extern "C" void cacChannelSetup ( void * )
3238 {
3239@@ -119,7 +119,7 @@ extern "C" void cacChannelSetup ( void * )
3240 }
3241
3242 // the default is to assume that it is a locally hosted channel
3243-unsigned cacChannel::getHostName (
3244+unsigned cacChannel::getHostName (
3245 epicsGuard < epicsMutex > &,
3246 char * pBuf, unsigned bufLength ) const throw ()
3247 {
3248diff --git a/modules/ca/src/client/cacChannelNotify.cpp b/modules/ca/src/client/cacChannelNotify.cpp
3249index 08d2cab..5819b6b 100644
3250--- a/modules/ca/src/client/cacChannelNotify.cpp
3251+++ b/modules/ca/src/client/cacChannelNotify.cpp
3252@@ -5,21 +5,21 @@
3253 * Operator of Los Alamos National Laboratory.
3254 * EPICS BASE Versions 3.13.7
3255 * and higher are distributed subject to a Software License Agreement found
3256-* in file LICENSE that is included with this distribution.
3257+* in file LICENSE that is included with this distribution.
3258 \*************************************************************************/
3259-/*
3260+/*
3261+ *
3262 *
3263- *
3264 * L O S A L A M O S
3265 * Los Alamos National Laboratory
3266 * Los Alamos, New Mexico 87545
3267- *
3268+ *
3269 * Copyright, 1986, The Regents of the University of California.
3270- *
3271- *
3272- * Author Jeffrey O. Hill
3273- * johill@lanl.gov
3274- * 505 665 1831
3275+ *
3276+ *
3277+ * Author Jeffrey O. Hill
3278+ * johill@lanl.gov
3279+ * 505 665 1831
3280 */
3281
3282 #include "iocinf.h"
3283@@ -28,7 +28,7 @@
3284 #include "cacIO.h"
3285 #undef epicsExportSharedSymbols
3286
3287-cacChannelNotify::~cacChannelNotify ()
3288+cacChannelNotify::~cacChannelNotify ()
3289 {
3290 }
3291
3292diff --git a/modules/ca/src/client/cacContextNotify.cpp b/modules/ca/src/client/cacContextNotify.cpp
3293index a4498ac..b7d96ac 100644
3294--- a/modules/ca/src/client/cacContextNotify.cpp
3295+++ b/modules/ca/src/client/cacContextNotify.cpp
3296@@ -5,10 +5,10 @@
3297 * Operator of Los Alamos National Laboratory.
3298 * EPICS BASE Versions 3.13.7
3299 * and higher are distributed subject to a Software License Agreement found
3300-* in file LICENSE that is included with this distribution.
3301+* in file LICENSE that is included with this distribution.
3302 \*************************************************************************/
3303
3304-/*
3305+/*
3306 *
3307 * L O S A L A M O S
3308 * Los Alamos National Laboratory
3309@@ -31,11 +31,11 @@ cacContextNotify::~cacContextNotify ()
3310 {
3311 }
3312
3313-void cacContextNotify::callbackProcessingInitiateNotify ()
3314+void cacContextNotify::callbackProcessingInitiateNotify ()
3315 {
3316 }
3317
3318-void cacContextNotify::callbackProcessingCompleteNotify ()
3319+void cacContextNotify::callbackProcessingCompleteNotify ()
3320 {
3321 }
3322
3323diff --git a/modules/ca/src/client/cacIO.h b/modules/ca/src/client/cacIO.h
3324index 4e8af4a..426ba02 100644
3325--- a/modules/ca/src/client/cacIO.h
3326+++ b/modules/ca/src/client/cacIO.h
3327@@ -17,9 +17,9 @@
3328 * Copyright, 1986, The Regents of the University of California.
3329 *
3330 *
3331- * Author Jeffrey O. Hill
3332- * johill@lanl.gov
3333- * 505 665 1831
3334+ * Author Jeffrey O. Hill
3335+ * johill@lanl.gov
3336+ * 505 665 1831
3337 */
3338
3339 #ifndef cacIOh
3340@@ -273,8 +273,8 @@ protected:
3341
3342 private:
3343 cacChannelNotify & callback;
3344- cacChannel ( const cacChannel & );
3345- cacChannel & operator = ( const cacChannel & );
3346+ cacChannel ( const cacChannel & );
3347+ cacChannel & operator = ( const cacChannel & );
3348 };
3349
3350 class epicsShareClass cacContext {
3351diff --git a/modules/ca/src/client/cacReadNotify.cpp b/modules/ca/src/client/cacReadNotify.cpp
3352index 23284c8..3d3d5a7 100644
3353--- a/modules/ca/src/client/cacReadNotify.cpp
3354+++ b/modules/ca/src/client/cacReadNotify.cpp
3355@@ -5,10 +5,10 @@
3356 * Operator of Los Alamos National Laboratory.
3357 * EPICS BASE Versions 3.13.7
3358 * and higher are distributed subject to a Software License Agreement found
3359-* in file LICENSE that is included with this distribution.
3360+* in file LICENSE that is included with this distribution.
3361 \*************************************************************************/
3362
3363-/*
3364+/*
3365 *
3366 * L O S A L A M O S
3367 * Los Alamos National Laboratory
3368diff --git a/modules/ca/src/client/cacStateNotify.cpp b/modules/ca/src/client/cacStateNotify.cpp
3369index 0885248..ba5575f 100644
3370--- a/modules/ca/src/client/cacStateNotify.cpp
3371+++ b/modules/ca/src/client/cacStateNotify.cpp
3372@@ -5,10 +5,10 @@
3373 * Operator of Los Alamos National Laboratory.
3374 * EPICS BASE Versions 3.13.7
3375 * and higher are distributed subject to a Software License Agreement found
3376-* in file LICENSE that is included with this distribution.
3377+* in file LICENSE that is included with this distribution.
3378 \*************************************************************************/
3379
3380-/*
3381+/*
3382 *
3383 * L O S A L A M O S
3384 * Los Alamos National Laboratory
3385diff --git a/modules/ca/src/client/cacWriteNotify.cpp b/modules/ca/src/client/cacWriteNotify.cpp
3386index 13d47cd..2bd2221 100644
3387--- a/modules/ca/src/client/cacWriteNotify.cpp
3388+++ b/modules/ca/src/client/cacWriteNotify.cpp
3389@@ -5,10 +5,10 @@
3390 * Operator of Los Alamos National Laboratory.
3391 * EPICS BASE Versions 3.13.7
3392 * and higher are distributed subject to a Software License Agreement found
3393-* in file LICENSE that is included with this distribution.
3394+* in file LICENSE that is included with this distribution.
3395 \*************************************************************************/
3396
3397-/*
3398+/*
3399 *
3400 * L O S A L A M O S
3401 * Los Alamos National Laboratory
3402diff --git a/modules/ca/src/client/cadef.h b/modules/ca/src/client/cadef.h
3403index e62dd72..7e34b38 100644
3404--- a/modules/ca/src/client/cadef.h
3405+++ b/modules/ca/src/client/cadef.h
3406@@ -5,9 +5,9 @@
3407 * Operator of Los Alamos National Laboratory.
3408 * EPICS BASE Versions 3.13.7
3409 * and higher are distributed subject to a Software License Agreement found
3410-* in file LICENSE that is included with this distribution.
3411+* in file LICENSE that is included with this distribution.
3412 \*************************************************************************/
3413-/*
3414+/*
3415 *
3416 * L O S A L A M O S
3417 * Los Alamos National Laboratory
3418@@ -83,8 +83,8 @@ typedef void caArh (struct access_rights_handler_args args);
3419 /* The conversion routine to call for each type */
3420 #define VALID_TYPE(TYPE) (((unsigned short)TYPE)<=LAST_BUFFER_TYPE)
3421
3422-/*
3423- * Arguments passed to event handlers and get/put call back handlers.
3424+/*
3425+ * Arguments passed to event handlers and get/put call back handlers.
3426 *
3427 * The status field below is the CA ECA_XXX status of the requested
3428 * operation which is saved from when the operation was attempted in the
3429@@ -95,7 +95,7 @@ typedef void caArh (struct access_rights_handler_args args);
3430 typedef struct event_handler_args {
3431 void *usr; /* user argument supplied with request */
3432 chanId chid; /* channel id */
3433- long type; /* the type of the item returned */
3434+ long type; /* the type of the item returned */
3435 long count; /* the element count of the item returned */
3436 const void *dbr; /* a pointer to the item returned */
3437 int status; /* ECA_XXX status of the requested op from the server */
3438@@ -133,8 +133,8 @@ typedef unsigned CA_SYNC_GID;
3439 #define CA_OP_CLEAR_EVENT 4
3440 #define CA_OP_OTHER 5
3441
3442-/*
3443- * used with connection_handler_args
3444+/*
3445+ * used with connection_handler_args
3446 */
3447 #define CA_OP_CONN_UP 6
3448 #define CA_OP_CONN_DOWN 7
3449@@ -167,8 +167,8 @@ epicsShareFunc unsigned epicsShareAPI ca_read_access (chid chan);
3450 epicsShareFunc unsigned epicsShareAPI ca_write_access (chid chan);
3451
3452 /*
3453- * cs_ - `channel state'
3454- *
3455+ * cs_ - `channel state'
3456+ *
3457 * cs_never_conn valid chid, IOC not found
3458 * cs_prev_conn valid chid, IOC was found, but unavailable
3459 * cs_conn valid chid, IOC was found, still available
3460@@ -183,11 +183,11 @@ epicsShareFunc enum channel_state epicsShareAPI ca_state (chid chan);
3461 /* Must be called once before calling any of the other routines */
3462 /************************************************************************/
3463 epicsShareFunc int epicsShareAPI ca_task_initialize (void);
3464-enum ca_preemptive_callback_select
3465+enum ca_preemptive_callback_select
3466 { ca_disable_preemptive_callback, ca_enable_preemptive_callback };
3467-epicsShareFunc int epicsShareAPI
3468+epicsShareFunc int epicsShareAPI
3469 ca_context_create (enum ca_preemptive_callback_select select);
3470-epicsShareFunc void epicsShareAPI ca_detach_context ();
3471+epicsShareFunc void epicsShareAPI ca_detach_context ();
3472
3473 /************************************************************************/
3474 /* Remove CA facility from your task */
3475@@ -197,7 +197,7 @@ epicsShareFunc void epicsShareAPI ca_detach_context ();
3476 epicsShareFunc int epicsShareAPI ca_task_exit (void);
3477 epicsShareFunc void epicsShareAPI ca_context_destroy (void);
3478
3479-typedef unsigned capri;
3480+typedef unsigned capri;
3481 #define CA_PRIORITY_MAX 99
3482 #define CA_PRIORITY_MIN 0
3483 #define CA_PRIORITY_DEFAULT CA_PRIORITY_MIN
3484@@ -210,7 +210,7 @@ typedef unsigned capri;
3485 * ca_create_channel ()
3486 *
3487 * pChanName R channel name string
3488- * pConnStateCallback R address of connection state change
3489+ * pConnStateCallback R address of connection state change
3490 * callback function
3491 * pUserPrivate R placed in the channel's user private field
3492 * o can be fetched later by ca_puser(CHID)
3493@@ -220,8 +220,8 @@ typedef unsigned capri;
3494 */
3495 epicsShareFunc int epicsShareAPI ca_create_channel
3496 (
3497- const char *pChanName,
3498- caCh *pConnStateCallback,
3499+ const char *pChanName,
3500+ caCh *pConnStateCallback,
3501 void *pUserPrivate,
3502 capri priority,
3503 chid *pChanID
3504@@ -230,7 +230,7 @@ epicsShareFunc int epicsShareAPI ca_create_channel
3505 /*
3506 * ca_change_connection_event()
3507 *
3508- * chan R channel identifier
3509+ * chan R channel identifier
3510 * pfunc R address of connection call-back function
3511 */
3512 epicsShareFunc int epicsShareAPI ca_change_connection_event
3513@@ -242,7 +242,7 @@ epicsShareFunc int epicsShareAPI ca_change_connection_event
3514 /*
3515 * ca_replace_access_rights_event ()
3516 *
3517- * chan R channel identifier
3518+ * chan R channel identifier
3519 * pfunc R address of access rights call-back function
3520 */
3521 epicsShareFunc int epicsShareAPI ca_replace_access_rights_event (
3522@@ -256,7 +256,7 @@ epicsShareFunc int epicsShareAPI ca_replace_access_rights_event (
3523 * replace the default exception handler
3524 *
3525 * pfunc R address of exception call-back function
3526- * pArg R copy of this pointer passed to exception
3527+ * pArg R copy of this pointer passed to exception
3528 * call-back function
3529 */
3530 typedef void caExceptionHandler (struct exception_handler_args);
3531@@ -283,10 +283,10 @@ epicsShareFunc int epicsShareAPI ca_clear_channel
3532 /*
3533 * ca_bput()
3534 *
3535- * WARNING: this copies the new value from a string (dbr_string_t)
3536+ * WARNING: this copies the new value from a string (dbr_string_t)
3537 * (and not as an integer)
3538 *
3539- * chan R channel identifier
3540+ * chan R channel identifier
3541 * pValue R new channel value string copied from this location
3542 */
3543 #define ca_bput(chan, pValue) \
3544@@ -295,9 +295,9 @@ ca_array_put(DBR_STRING, 1u, chan, (const dbr_string_t *) (pValue))
3545 /*
3546 * ca_rput()
3547 *
3548- * WARNING: this copies the new value from a dbr_float_t
3549+ * WARNING: this copies the new value from a dbr_float_t
3550 *
3551- * chan R channel identifier
3552+ * chan R channel identifier
3553 * pValue R new channel value copied from this location
3554 */
3555 #define ca_rput(chan,pValue) \
3556@@ -307,7 +307,7 @@ ca_array_put(DBR_FLOAT, 1u, chan, (const dbr_float_t *) pValue)
3557 * ca_put()
3558 *
3559 * type R data type from db_access.h
3560- * chan R channel identifier
3561+ * chan R channel identifier
3562 * pValue R new channel value copied from this location
3563 */
3564 #define ca_put(type, chan, pValue) ca_array_put (type, 1u, chan, pValue)
3565@@ -317,13 +317,13 @@ ca_array_put(DBR_FLOAT, 1u, chan, (const dbr_float_t *) pValue)
3566 *
3567 * type R data type from db_access.h
3568 * count R array element count
3569- * chan R channel identifier
3570+ * chan R channel identifier
3571 * pValue R new channel value copied from this location
3572 */
3573 epicsShareFunc int epicsShareAPI ca_array_put
3574 (
3575- chtype type,
3576- unsigned long count,
3577+ chtype type,
3578+ unsigned long count,
3579 chid chanId,
3580 const void * pValue
3581 );
3582@@ -331,8 +331,8 @@ epicsShareFunc int epicsShareAPI ca_array_put
3583 /*
3584 * ca_array_put_callback()
3585 *
3586- * This routine functions identically to the original ca put request
3587- * with the addition of a callback to the user supplied function
3588+ * This routine functions identically to the original ca put request
3589+ * with the addition of a callback to the user supplied function
3590 * after recod processing completes in the IOC. The arguments
3591 * to the user supplied callback function are declared in
3592 * the structure event_handler_args and include the pointer
3593@@ -340,15 +340,15 @@ epicsShareFunc int epicsShareAPI ca_array_put
3594 *
3595 * type R data type from db_access.h
3596 * count R array element count
3597- * chan R channel identifier
3598+ * chan R channel identifier
3599 * pValue R new channel value copied from this location
3600 * pFunc R pointer to call-back function
3601 * pArg R copy of this pointer passed to pFunc
3602 */
3603 epicsShareFunc int epicsShareAPI ca_array_put_callback
3604 (
3605- chtype type,
3606- unsigned long count,
3607+ chtype type,
3608+ unsigned long count,
3609 chid chanId,
3610 const void * pValue,
3611 caEventCallBackFunc * pFunc,
3612@@ -365,10 +365,10 @@ epicsShareFunc int epicsShareAPI ca_array_put_callback
3613 /*
3614 * ca_bget()
3615 *
3616- * WARNING: this copies the new value into a string (dbr_string_t)
3617+ * WARNING: this copies the new value into a string (dbr_string_t)
3618 * (and not into an integer)
3619 *
3620- * chan R channel identifier
3621+ * chan R channel identifier
3622 * pValue W channel value copied to this location
3623 */
3624 #define ca_bget(chan, pValue) \
3625@@ -377,9 +377,9 @@ ca_array_get(DBR_STRING, 1u, chan, (dbr_string_t *)(pValue))
3626 /*
3627 * ca_rget()
3628 *
3629- * WARNING: this copies the new value into a 32 bit float (dbr_float_t)
3630+ * WARNING: this copies the new value into a 32 bit float (dbr_float_t)
3631 *
3632- * chan R channel identifier
3633+ * chan R channel identifier
3634 * pValue W channel value copied to this location
3635 */
3636 #define ca_rget(chan, pValue) \
3637@@ -389,7 +389,7 @@ ca_array_get(DBR_FLOAT, 1u, chan, (dbr_float_t *)(pValue))
3638 * ca_rget()
3639 *
3640 * type R data type from db_access.h
3641- * chan R channel identifier
3642+ * chan R channel identifier
3643 * pValue W channel value copied to this location
3644 */
3645 #define ca_get(type, chan, pValue) ca_array_get(type, 1u, chan, pValue)
3646@@ -399,13 +399,13 @@ ca_array_get(DBR_FLOAT, 1u, chan, (dbr_float_t *)(pValue))
3647 *
3648 * type R data type from db_access.h
3649 * count R array element count
3650- * chan R channel identifier
3651+ * chan R channel identifier
3652 * pValue W channel value copied to this location
3653 */
3654 epicsShareFunc int epicsShareAPI ca_array_get
3655 (
3656- chtype type,
3657- unsigned long count,
3658+ chtype type,
3659+ unsigned long count,
3660 chid chanId,
3661 void * pValue
3662 );
3663@@ -419,10 +419,10 @@ epicsShareFunc int epicsShareAPI ca_array_get
3664 /*
3665 * ca_bget_callback()
3666 *
3667- * WARNING: this returns the new value as a string (dbr_string_t)
3668+ * WARNING: this returns the new value as a string (dbr_string_t)
3669 * (and not as an integer)
3670 *
3671- * chan R channel identifier
3672+ * chan R channel identifier
3673 * pFunc R pointer to call-back function
3674 * pArg R copy of this pointer passed to pFunc
3675 */
3676@@ -432,9 +432,9 @@ ca_array_get_callback (DBR_STRING, 1u, chan, pFunc, pArg)
3677 /*
3678 * ca_rget_callback()
3679 *
3680- * WARNING: this returns the new value as a float (dbr_float_t)
3681+ * WARNING: this returns the new value as a float (dbr_float_t)
3682 *
3683- * chan R channel identifier
3684+ * chan R channel identifier
3685 * pFunc R pointer to call-back function
3686 * pArg R copy of this pointer passed to pFunc
3687 */
3688@@ -445,7 +445,7 @@ ca_array_get_callback (DBR_FLOAT, 1u, chan, pFunc, pArg)
3689 * ca_get_callback()
3690 *
3691 * type R data type from db_access.h
3692- * chan R channel identifier
3693+ * chan R channel identifier
3694 * pFunc R pointer to call-back function
3695 * pArg R copy of this pointer passed to pFunc
3696 */
3697@@ -457,14 +457,14 @@ ca_array_get_callback (type, 1u, chan, pFunc, pArg)
3698 *
3699 * type R data type from db_access.h
3700 * count R array element count
3701- * chan R channel identifier
3702+ * chan R channel identifier
3703 * pFunc R pointer to call-back function
3704 * pArg R copy of this pointer passed to pFunc
3705 */
3706 epicsShareFunc int epicsShareAPI ca_array_get_callback
3707 (
3708- chtype type,
3709- unsigned long count,
3710+ chtype type,
3711+ unsigned long count,
3712 chid chanId,
3713 caEventCallBackFunc * pFunc,
3714 void * pArg
3715@@ -476,7 +476,7 @@ epicsShareFunc int epicsShareAPI ca_array_get_callback
3716 /* NOTES: */
3717 /* 1) Evid may be omited by passing a NULL pointer */
3718 /* */
3719-/* 2) An array count of zero specifies the native db count */
3720+/* 2) An array count of zero specifies the native db count */
3721 /* */
3722 /************************************************************************/
3723
3724@@ -485,7 +485,7 @@ epicsShareFunc int epicsShareAPI ca_array_get_callback
3725 *
3726 * type R data type from db_access.h
3727 * count R array element count
3728- * chan R channel identifier
3729+ * chan R channel identifier
3730 * mask R event mask - one of {DBE_VALUE, DBE_ALARM, DBE_LOG}
3731 * pFunc R pointer to call-back function
3732 * pArg R copy of this pointer passed to pFunc
3733@@ -493,8 +493,8 @@ epicsShareFunc int epicsShareAPI ca_array_get_callback
3734 */
3735 epicsShareFunc int epicsShareAPI ca_create_subscription
3736 (
3737- chtype type,
3738- unsigned long count,
3739+ chtype type,
3740+ unsigned long count,
3741 chid chanId,
3742 long mask,
3743 caEventCallBackFunc * pFunc,
3744@@ -535,24 +535,24 @@ epicsShareFunc chid epicsShareAPI ca_evid_to_chid ( evid id );
3745 /* FLOW OF TYPICAL APPLICATION */
3746 /* */
3747 /* search() ! Obtain Channel ids */
3748-/* . ! " */
3749+/* . ! " */
3750 /* . ! " */
3751 /* pend_io ! wait for channels to connect */
3752 /* */
3753 /* get() ! several requests for remote info */
3754-/* get() ! " */
3755-/* add_event() ! " */
3756-/* get() ! " */
3757+/* get() ! " */
3758+/* add_event() ! " */
3759+/* get() ! " */
3760 /* . */
3761 /* . */
3762 /* . */
3763 /* flush_io() ! send get requests */
3764 /* ! optional parallel processing */
3765-/* . ! " */
3766-/* . ! " */
3767+/* . ! " */
3768+/* . ! " */
3769 /* pend_io() ! wait for replies from get requests */
3770 /* . ! access to requested data */
3771-/* . ! " */
3772+/* . ! " */
3773 /* pend_event() ! wait for requested events */
3774 /* */
3775 /************************************************************************/
3776@@ -562,7 +562,7 @@ epicsShareFunc chid epicsShareAPI ca_evid_to_chid ( evid id );
3777 /* functions specified with add_event when events occur. If the */
3778 /* timeout is specified as 0 an infinite timeout is assumed. */
3779 /* ca_flush_io() is called by this routine. If ca_pend_io () */
3780-/* is called when no IO is outstanding then it will return immediately */
3781+/* is called when no IO is outstanding then it will return immediately */
3782 /* without processing. */
3783 /************************************************************************/
3784
3785@@ -577,8 +577,8 @@ epicsShareFunc int epicsShareAPI ca_pend_event (ca_real timeOut);
3786 /*
3787 * ca_pend_io()
3788 *
3789- * timeOut R wait for this delay in seconds but return early
3790- * if all get requests (or search requests with null
3791+ * timeOut R wait for this delay in seconds but return early
3792+ * if all get requests (or search requests with null
3793 * connection handler pointer have completed)
3794 */
3795 epicsShareFunc int epicsShareAPI ca_pend_io (ca_real timeOut);
3796@@ -589,7 +589,7 @@ epicsShareFunc int epicsShareAPI ca_pend (ca_real timeout, int early);
3797 /*
3798 * ca_test_io()
3799 *
3800- * returns TRUE when get requests (or search requests with null
3801+ * returns TRUE when get requests (or search requests with null
3802 * connection handler pointer) are outstanding
3803 */
3804 epicsShareFunc int epicsShareAPI ca_test_io (void);
3805@@ -611,8 +611,8 @@ epicsShareFunc int epicsShareAPI ca_flush_io (void);
3806 */
3807 epicsShareFunc void epicsShareAPI ca_signal
3808 (
3809- long errorCode,
3810- const char *pCtxStr
3811+ long errorCode,
3812+ const char *pCtxStr
3813 );
3814
3815 /*
3816@@ -625,10 +625,10 @@ epicsShareFunc void epicsShareAPI ca_signal
3817 */
3818 epicsShareFunc void epicsShareAPI ca_signal_with_file_and_lineno
3819 (
3820- long errorCode,
3821- const char *pCtxStr,
3822- const char *pFileStr,
3823- int lineNo
3824+ long errorCode,
3825+ const char *pCtxStr,
3826+ const char *pFileStr,
3827+ int lineNo
3828 );
3829
3830 /*
3831@@ -639,7 +639,7 @@ epicsShareFunc void epicsShareAPI ca_signal_with_file_and_lineno
3832 * pFormat R printf dtyle format string (and optional arguments)
3833 *
3834 */
3835-epicsShareFunc void epicsShareAPI ca_signal_formated (long ca_status, const char *pfilenm,
3836+epicsShareFunc void epicsShareAPI ca_signal_formated (long ca_status, const char *pfilenm,
3837 int lineno, const char *pFormat, ...);
3838
3839 /*
3840@@ -651,13 +651,13 @@ epicsShareFunc void epicsShareAPI ca_signal_formated (long ca_status, const char
3841 */
3842 epicsShareFunc const char * epicsShareAPI ca_host_name (chid channel);
3843 /* thread safe version */
3844-epicsShareFunc unsigned epicsShareAPI ca_get_host_name ( chid pChan,
3845+epicsShareFunc unsigned epicsShareAPI ca_get_host_name ( chid pChan,
3846 char *pBuf, unsigned bufLength );
3847
3848 /*
3849 * CA_ADD_FD_REGISTRATION
3850 *
3851- * call their function with their argument whenever
3852+ * call their function with their argument whenever
3853 * a new fd is added or removed
3854 * (for use with a manager of the select system call under UNIX)
3855 *
3856@@ -665,7 +665,7 @@ epicsShareFunc unsigned epicsShareAPI ca_get_host_name ( chid pChan,
3857 * if (!opened) then fd was deleted
3858 *
3859 */
3860-typedef void CAFDHANDLER (void *parg, int fd, int opened);
3861+typedef void CAFDHANDLER (void *parg, int fd, int opened);
3862
3863 /*
3864 * ca_add_fd_registration()
3865@@ -696,7 +696,7 @@ epicsShareFunc int epicsShareAPI ca_add_fd_registration
3866 *
3867 * create a sync group
3868 *
3869- * pgid W pointer to sync group id that will be written
3870+ * pgid W pointer to sync group id that will be written
3871 */
3872 epicsShareFunc int epicsShareAPI ca_sg_create (CA_SYNC_GID * pgid);
3873
3874@@ -705,16 +705,16 @@ epicsShareFunc int epicsShareAPI ca_sg_create (CA_SYNC_GID * pgid);
3875 *
3876 * delete a sync group
3877 *
3878- * gid R sync group id
3879+ * gid R sync group id
3880 */
3881 epicsShareFunc int epicsShareAPI ca_sg_delete (const CA_SYNC_GID gid);
3882
3883 /*
3884 * ca_sg_block()
3885 *
3886- * block for IO performed within a sync group to complete
3887+ * block for IO performed within a sync group to complete
3888 *
3889- * gid R sync group id
3890+ * gid R sync group id
3891 * timeout R wait for this duration prior to timing out
3892 * and returning ECA_TIMEOUT
3893 */
3894@@ -726,7 +726,7 @@ epicsShareFunc int epicsShareAPI ca_sg_block (const CA_SYNC_GID gid, ca_real tim
3895 * test for sync group IO operations in progress
3896 *
3897 * gid R sync group id
3898- *
3899+ *
3900 * returns one of ECA_BADSYNCGRP, ECA_IOINPROGRESS, ECA_IODONE
3901 */
3902 epicsShareFunc int epicsShareAPI ca_sg_test (const CA_SYNC_GID gid);
3903@@ -747,16 +747,16 @@ epicsShareFunc int epicsShareAPI ca_sg_reset(const CA_SYNC_GID gid);
3904 * gid R sync group id
3905 * type R data type from db_access.h
3906 * count R array element count
3907- * chan R channel identifier
3908+ * chan R channel identifier
3909 * pValue W channel value copied to this location
3910 */
3911 epicsShareFunc int epicsShareAPI ca_sg_array_get
3912 (
3913 const CA_SYNC_GID gid,
3914- chtype type,
3915+ chtype type,
3916 unsigned long count,
3917 chid chan,
3918- void *pValue
3919+ void *pValue
3920 );
3921
3922 #define ca_sg_get(gid, type, chan, pValue) \
3923@@ -771,16 +771,16 @@ ca_sg_array_get (gid, type, 1u, chan, pValue)
3924 * gid R sync group id
3925 * type R data type from db_access.h
3926 * count R array element count
3927- * chan R channel identifier
3928+ * chan R channel identifier
3929 * pValue R new channel value copied from this location
3930 */
3931 epicsShareFunc int epicsShareAPI ca_sg_array_put
3932 (
3933 const CA_SYNC_GID gid,
3934- chtype type,
3935+ chtype type,
3936 unsigned long count,
3937 chid chan,
3938- const void *pValue
3939+ const void *pValue
3940 );
3941
3942 #define ca_sg_put(gid, type, chan, pValue) \
3943@@ -801,11 +801,11 @@ epicsShareFunc void epicsShareAPI ca_dump_dbr (chtype type, unsigned count, cons
3944 /*
3945 * ca_v42_ok()
3946 *
3947- * Put call back is available if the CA server is on version is 4.2
3948+ * Put call back is available if the CA server is on version is 4.2
3949 * or higher.
3950 *
3951 * chan R channel identifier
3952- *
3953+ *
3954 * (returns true or false)
3955 */
3956 epicsShareFunc int epicsShareAPI ca_v42_ok (chid chan);
3957@@ -865,12 +865,12 @@ ca_build_and_connect(NAME, XXXXX, 1, CHIDPTR, YYYYY, 0, 0)
3958 #define ca_array_build(NAME,XXXXX, ZZZZZZ, CHIDPTR,YYYYY)\
3959 ca_build_and_connect(NAME, XXXXX, ZZZZZZ, CHIDPTR, YYYYY, 0, 0)
3960 epicsShareFunc int epicsShareAPI ca_build_and_connect
3961- ( const char *pChanName, chtype, unsigned long,
3962+ ( const char *pChanName, chtype, unsigned long,
3963 chid * pChanID, void *, caCh * pFunc, void * pArg );
3964 #define ca_search(pChanName, pChanID)\
3965 ca_search_and_connect (pChanName, pChanID, 0, 0)
3966 epicsShareFunc int epicsShareAPI ca_search_and_connect
3967- ( const char * pChanName, chid * pChanID,
3968+ ( const char * pChanName, chid * pChanID,
3969 caCh *pFunc, void * pArg );
3970 epicsShareFunc int epicsShareAPI ca_channel_status (epicsThreadId tid);
3971 epicsShareFunc int epicsShareAPI ca_clear_event ( evid eventID );
3972diff --git a/modules/ca/src/client/caerr.h b/modules/ca/src/client/caerr.h
3973index 5393096..fd67a5f 100644
3974--- a/modules/ca/src/client/caerr.h
3975+++ b/modules/ca/src/client/caerr.h
3976@@ -5,7 +5,7 @@
3977 * Operator of Los Alamos National Laboratory.
3978 * EPICS BASE Versions 3.13.7
3979 * and higher are distributed subject to a Software License Agreement found
3980-* in file LICENSE that is included with this distribution.
3981+* in file LICENSE that is included with this distribution.
3982 \*************************************************************************/
3983 /*
3984 *
3985@@ -17,7 +17,7 @@
3986 *
3987 * Author: Jeffrey O. Hill
3988 *
3989- */
3990+ */
3991
3992
3993 #ifndef INCLcaerrh
3994@@ -78,9 +78,9 @@
3995 (CA_INSERT_MSG_NO(NUMBER) | CA_INSERT_SEVERITY(SEVERITY))
3996
3997 /*
3998- * In the lines below "defunct" indicates that current release
3999+ * In the lines below "defunct" indicates that current release
4000 * servers and client library will not return this error code, but
4001- * servers on earlier releases that communicate with current clients
4002+ * servers on earlier releases that communicate with current clients
4003 * might still generate exceptions with these error constants
4004 */
4005 #define ECA_NORMAL DEFMSG(CA_K_SUCCESS, 0) /* success */
4006@@ -89,10 +89,10 @@
4007 #define ECA_UKNSERV DEFMSG(CA_K_ERROR, 3) /* defunct */
4008 #define ECA_SOCK DEFMSG(CA_K_ERROR, 4) /* defunct */
4009 #define ECA_CONN DEFMSG(CA_K_WARNING, 5) /* defunct */
4010-#define ECA_ALLOCMEM DEFMSG(CA_K_WARNING, 6)
4011+#define ECA_ALLOCMEM DEFMSG(CA_K_WARNING, 6)
4012 #define ECA_UKNCHAN DEFMSG(CA_K_WARNING, 7) /* defunct */
4013 #define ECA_UKNFIELD DEFMSG(CA_K_WARNING, 8) /* defunct */
4014-#define ECA_TOLARGE DEFMSG(CA_K_WARNING, 9)
4015+#define ECA_TOLARGE DEFMSG(CA_K_WARNING, 9)
4016 #define ECA_TIMEOUT DEFMSG(CA_K_WARNING, 10)
4017 #define ECA_NOSUPPORT DEFMSG(CA_K_WARNING, 11) /* defunct */
4018 #define ECA_STRTOBIG DEFMSG(CA_K_WARNING, 12) /* defunct */
4019diff --git a/modules/ca/src/client/caeventmask.h b/modules/ca/src/client/caeventmask.h
4020index 5f09145..4f0f2ec 100644
4021--- a/modules/ca/src/client/caeventmask.h
4022+++ b/modules/ca/src/client/caeventmask.h
4023@@ -5,7 +5,7 @@
4024 * Operator of Los Alamos National Laboratory.
4025 * EPICS BASE Versions 3.13.7
4026 * and higher are distributed subject to a Software License Agreement found
4027-* in file LICENSE that is included with this distribution.
4028+* in file LICENSE that is included with this distribution.
4029 \*************************************************************************/
4030
4031 #ifndef INCLcaeventmaskh
4032@@ -13,12 +13,12 @@
4033
4034 /*
4035 event selections
4036- (If any more than 8 of these are needed then update the
4037- select field in the event_block struct in db_event.c from
4038+ (If any more than 8 of these are needed then update the
4039+ select field in the event_block struct in db_event.c from
4040 unsigned char to unsigned short)
4041
4042
4043- DBE_VALUE
4044+ DBE_VALUE
4045 Trigger an event when a significant change in the channel's value
4046 occurs. Relies on the monitor deadband field under DCT.
4047
4048diff --git a/modules/ca/src/client/casw.cpp b/modules/ca/src/client/casw.cpp
4049index ed17660..e527a3c 100644
4050--- a/modules/ca/src/client/casw.cpp
4051+++ b/modules/ca/src/client/casw.cpp
4052@@ -5,10 +5,10 @@
4053 * Operator of Los Alamos National Laboratory.
4054 * EPICS BASE Versions 3.13.7
4055 * and higher are distributed subject to a Software License Agreement found
4056-* in file LICENSE that is included with this distribution.
4057+* in file LICENSE that is included with this distribution.
4058 \*************************************************************************/
4059
4060-/*
4061+/*
4062 *
4063 * L O S A L A M O S
4064 * Los Alamos National Laboratory
4065@@ -23,7 +23,7 @@
4066
4067 #define epicsAssertAuthor "Jeff Hill johill@lanl.gov"
4068
4069-#include "envDefs.h"
4070+#include "envDefs.h"
4071 #include "errlog.h"
4072 #include "osiWireFormat.h"
4073
4074@@ -40,8 +40,8 @@ public:
4075 void release ( void * );
4076 private:
4077 tsFreeList < class bhe, 0x100 > freeList;
4078- bheFreeStoreMgr ( const bheFreeStoreMgr & );
4079- bheFreeStoreMgr & operator = ( const bheFreeStoreMgr & );
4080+ bheFreeStoreMgr ( const bheFreeStoreMgr & );
4081+ bheFreeStoreMgr & operator = ( const bheFreeStoreMgr & );
4082 };
4083
4084 void * bheFreeStoreMgr::allocate ( size_t size )
4085@@ -108,7 +108,7 @@ int main ( int argc, char ** argv )
4086 sock = epicsSocketCreate ( AF_INET, SOCK_DGRAM, IPPROTO_UDP );
4087 if ( sock == INVALID_SOCKET ) {
4088 char sockErrBuf[64];
4089- epicsSocketConvertErrnoToString (
4090+ epicsSocketConvertErrnoToString (
4091 sockErrBuf, sizeof ( sockErrBuf ) );
4092 errlogPrintf ("casw: unable to create datagram socket because = \"%s\"\n",
4093 sockErrBuf );
4094@@ -122,7 +122,7 @@ int main ( int argc, char ** argv )
4095 status = bind ( sock, &addr.sa, sizeof (addr) );
4096 if ( status < 0 ) {
4097 char sockErrBuf[64];
4098- epicsSocketConvertErrnoToString (
4099+ epicsSocketConvertErrnoToString (
4100 sockErrBuf, sizeof ( sockErrBuf ) );
4101 epicsSocketDestroy ( sock );
4102 errlogPrintf ( "casw: unable to bind to an unconstrained address because = \"%s\"\n",
4103@@ -134,7 +134,7 @@ int main ( int argc, char ** argv )
4104 status = socket_ioctl ( sock, FIONBIO, &yes );
4105 if ( status < 0 ) {
4106 char sockErrBuf[64];
4107- epicsSocketConvertErrnoToString (
4108+ epicsSocketConvertErrnoToString (
4109 sockErrBuf, sizeof ( sockErrBuf ) );
4110 epicsSocketDestroy ( sock );
4111 errlogPrintf ( "casw: unable to set socket to nonblocking state because \"%s\"\n",
4112@@ -169,7 +169,7 @@ int main ( int argc, char ** argv )
4113 status = socket_ioctl ( sock, FIONBIO, &no );
4114 if ( status < 0 ) {
4115 char sockErrBuf[64];
4116- epicsSocketConvertErrnoToString (
4117+ epicsSocketConvertErrnoToString (
4118 sockErrBuf, sizeof ( sockErrBuf ) );
4119 epicsSocketDestroy ( sock );
4120 errlogPrintf ( "casw: unable to set socket to blocking state because \"%s\"\n",
4121@@ -185,7 +185,7 @@ int main ( int argc, char ** argv )
4122 &addr.sa, &addrSize );
4123 if ( status <= 0 ) {
4124 char sockErrBuf[64];
4125- epicsSocketConvertErrnoToString (
4126+ epicsSocketConvertErrnoToString (
4127 sockErrBuf, sizeof ( sockErrBuf ) );
4128 epicsSocketDestroy ( sock );
4129 errlogPrintf ("casw: error from recv was = \"%s\"\n",
4130@@ -196,7 +196,7 @@ int main ( int argc, char ** argv )
4131 if ( addr.sa.sa_family != AF_INET ) {
4132 continue;
4133 }
4134-
4135+
4136 unsigned byteCount = static_cast <unsigned> ( status );
4137 pCurMsg = reinterpret_cast < const caHdr * > ( ( pCurBuf = buf ) );
4138 while ( byteCount ) {
4139@@ -213,9 +213,9 @@ int main ( int argc, char ** argv )
4140 epicsTime previousTime;
4141 struct sockaddr_in ina;
4142
4143- /*
4144+ /*
4145 * this allows a fan-out server to potentially
4146- * insert the true address of the CA server
4147+ * insert the true address of the CA server
4148 *
4149 * old servers:
4150 * 1) set this field to one of the ip addresses of the host _or_
4151@@ -252,8 +252,8 @@ int main ( int argc, char ** argv )
4152 bhe *pBHE = beaconTable.lookup ( ina );
4153 if ( pBHE ) {
4154 previousTime = pBHE->updateTime ( guard );
4155- anomaly = pBHE->updatePeriod (
4156- guard, programBeginTime,
4157+ anomaly = pBHE->updatePeriod (
4158+ guard, programBeginTime,
4159 currentTime, beaconNumber, protocolRevision );
4160 }
4161 else {
4162@@ -264,7 +264,7 @@ int main ( int argc, char ** argv )
4163 * time that we have seen a server's beacon
4164 * shortly after the program started up)
4165 */
4166- pBHE = new ( bheFreeList )
4167+ pBHE = new ( bheFreeList )
4168 bhe ( mutex, currentTime, beaconNumber, ina );
4169 if ( pBHE ) {
4170 if ( beaconTable.add ( *pBHE ) < 0 ) {
4171@@ -275,7 +275,7 @@ int main ( int argc, char ** argv )
4172 }
4173 if ( anomaly || interest > 1 ) {
4174 char date[64];
4175- currentTime.strftime ( date, sizeof ( date ),
4176+ currentTime.strftime ( date, sizeof ( date ),
4177 "%Y-%m-%d %H:%M:%S.%09f");
4178 char host[64];
4179 ipAddrToA ( &ina, host, sizeof ( host ) );
4180@@ -288,11 +288,11 @@ int main ( int argc, char ** argv )
4181 pPrefix = " ";
4182 }
4183 }
4184- printf ( "%s%-40s %s\n",
4185+ printf ( "%s%-40s %s\n",
4186 pPrefix, host, date );
4187 if ( anomaly && interest > 0 ) {
4188- printf ( "\testimate=%f current=%f\n",
4189- pBHE->period ( guard ),
4190+ printf ( "\testimate=%f current=%f\n",
4191+ pBHE->period ( guard ),
4192 currentTime - previousTime );
4193 }
4194 fflush(stdout);
4195diff --git a/modules/ca/src/client/catime.c b/modules/ca/src/client/catime.c
4196index cccd940..ab758d3 100644
4197--- a/modules/ca/src/client/catime.c
4198+++ b/modules/ca/src/client/catime.c
4199@@ -5,17 +5,17 @@
4200 * Operator of Los Alamos National Laboratory.
4201 * EPICS BASE Versions 3.13.7
4202 * and higher are distributed subject to a Software License Agreement found
4203-* in file LICENSE that is included with this distribution.
4204+* in file LICENSE that is included with this distribution.
4205 \*************************************************************************/
4206 /*
4207 *
4208- * CA performance test
4209+ * CA performance test
4210 *
4211- * History
4212+ * History
4213 * joh 09-12-89 Initial release
4214 * joh 12-20-94 portability
4215 *
4216- *
4217+ *
4218 */
4219
4220 #include <stdio.h>
4221@@ -45,7 +45,7 @@ typedef struct testItem {
4222 char name[128];
4223 int type;
4224 int count;
4225- void * pValue;
4226+ void * pValue;
4227 } ti;
4228
4229 typedef void tf ( ti *pItems, unsigned iterations, unsigned *pInlineIter );
4230@@ -144,7 +144,7 @@ unsigned *pInlineIter
4231 {
4232 int status;
4233 unsigned i;
4234-
4235+
4236 for (i=0u; i<iterations; i++) {
4237 status = ca_clear_channel (pItems[i].chix);
4238 SEVCHK (status, NULL);
4239@@ -166,7 +166,7 @@ unsigned *pInlineIter
4240 ti *pi;
4241 int status;
4242 dbr_int_t val;
4243-
4244+
4245 for (pi=pItems; pi < &pItems[iterations]; pi++) {
4246 status = ca_array_put(
4247 pi->type,
4248@@ -257,7 +257,7 @@ unsigned *pInlineIter
4249 {
4250 ti *pi;
4251 int status;
4252-
4253+
4254 for (pi=pItems; pi<&pItems[iterations]; pi++) {
4255 status = ca_array_get(
4256 pi->type,
4257@@ -337,7 +337,7 @@ unsigned *pInlineIter
4258 {
4259 ti *pi;
4260 int status;
4261-
4262+
4263 for (pi=pItems; pi<&pItems[iterations]; pi++) {
4264 status = ca_array_get(
4265 pi->type,
4266@@ -361,9 +361,9 @@ static void measure_get_latency (ti *pItems, unsigned iterations)
4267 epicsTimeStamp start_time;
4268 double delay;
4269 double X = 0u;
4270- double XX = 0u;
4271- double max = DBL_MIN;
4272- double min = DBL_MAX;
4273+ double XX = 0u;
4274+ double max = DBL_MIN;
4275+ double min = DBL_MAX;
4276 double mean;
4277 double stdDev;
4278 ti *pi;
4279@@ -371,7 +371,7 @@ static void measure_get_latency (ti *pItems, unsigned iterations)
4280
4281 for ( pi = pItems; pi < &pItems[iterations]; pi++ ) {
4282 epicsTimeGetCurrent ( &start_time );
4283- status = ca_array_get ( pi->type, pi->count,
4284+ status = ca_array_get ( pi->type, pi->count,
4285 pi->chix, pi->pValue );
4286 SEVCHK ( status, NULL );
4287 status = ca_pend_io ( 100.0 );
4288@@ -395,13 +395,13 @@ static void measure_get_latency (ti *pItems, unsigned iterations)
4289
4290 mean = X/iterations;
4291 stdDev = sqrt ( XX/iterations - mean*mean );
4292- printf (
4293+ printf (
4294 "Get Latency - "
4295 "mean = %3.1f uS, "
4296 "std dev = %3.1f uS, "
4297 "min = %3.1f uS "
4298 "max = %3.1f uS\n",
4299- mean * 1e6, stdDev * 1e6,
4300+ mean * 1e6, stdDev * 1e6,
4301 min * 1e6, max * 1e6 );
4302 }
4303
4304@@ -412,9 +412,9 @@ static void printSearchStat ( const ti * pi, unsigned iterations )
4305 {
4306 unsigned i;
4307 double X = 0u;
4308- double XX = 0u;
4309- double max = DBL_MIN;
4310- double min = DBL_MAX;
4311+ double XX = 0u;
4312+ double max = DBL_MIN;
4313+ double min = DBL_MAX;
4314 double mean;
4315 double stdDev;
4316
4317@@ -432,7 +432,7 @@ static void printSearchStat ( const ti * pi, unsigned iterations )
4318
4319 mean = X / iterations;
4320 stdDev = sqrt( XX / iterations - mean * mean );
4321- printf (
4322+ printf (
4323 "Search tries per chan - "
4324 "mean = %3.1f "
4325 "std dev = %3.1f "
4326@@ -458,10 +458,10 @@ void timeIt ( tf *pfunc, ti *pItems, unsigned iterations,
4327 delay = epicsTimeDiffInSeconds ( &end_time, &start_time );
4328 if ( delay > 0.0 ) {
4329 double freq = ( iterations * inlineIter ) / delay;
4330- printf ( "Per Op, %8.4f uS ( %8.4f MHz )",
4331+ printf ( "Per Op, %8.4f uS ( %8.4f MHz )",
4332 1e6 / freq, freq / 1e6 );
4333 if ( pItems != NULL ) {
4334- printf(", %8.4f snd Mbps, %8.4f rcv Mbps\n",
4335+ printf(", %8.4f snd Mbps, %8.4f rcv Mbps\n",
4336 (inlineIter*nBytesSent*CHAR_BIT)/(delay*1e6),
4337 (inlineIter*nBytesRecv*CHAR_BIT)/(delay*1e6) );
4338 }
4339@@ -479,13 +479,13 @@ static void test ( ti *pItems, unsigned iterations )
4340 unsigned payloadSize, dblPayloadSize;
4341 unsigned nBytesSent, nBytesRecv;
4342
4343- payloadSize =
4344+ payloadSize =
4345 dbr_size_n ( pItems[0].type, pItems[0].count );
4346 payloadSize = CA_MESSAGE_ALIGN ( payloadSize );
4347
4348 dblPayloadSize = dbr_size [ DBR_DOUBLE ];
4349 dblPayloadSize = CA_MESSAGE_ALIGN ( dblPayloadSize );
4350-
4351+
4352 if ( payloadSize > dblPayloadSize ) {
4353 unsigned factor = payloadSize / dblPayloadSize;
4354 while ( factor ) {
4355@@ -500,15 +500,15 @@ static void test ( ti *pItems, unsigned iterations )
4356 printf ( "\t### async put test ###\n");
4357 nBytesSent = sizeof ( caHdr ) + CA_MESSAGE_ALIGN( payloadSize );
4358 nBytesRecv = 0u;
4359- timeIt ( test_put, pItems, iterations,
4360- nBytesSent * iterations,
4361+ timeIt ( test_put, pItems, iterations,
4362+ nBytesSent * iterations,
4363 nBytesRecv * iterations );
4364
4365 printf ( "\t### async get test ###\n");
4366 nBytesSent = sizeof ( caHdr );
4367 nBytesRecv = sizeof ( caHdr ) + CA_MESSAGE_ALIGN ( payloadSize );
4368- timeIt ( test_get, pItems, iterations,
4369- nBytesSent * ( iterations ),
4370+ timeIt ( test_get, pItems, iterations,
4371+ nBytesSent * ( iterations ),
4372 nBytesRecv * ( iterations ) );
4373
4374 printf ("\t### synch get test ###\n");
4375@@ -520,7 +520,7 @@ static void test ( ti *pItems, unsigned iterations )
4376 else if ( iterations > 10 ) {
4377 iterations /= 10;
4378 }
4379- timeIt ( test_wait, pItems, iterations,
4380+ timeIt ( test_wait, pItems, iterations,
4381 nBytesSent * iterations,
4382 nBytesRecv * iterations );
4383 }
4384@@ -528,7 +528,7 @@ static void test ( ti *pItems, unsigned iterations )
4385 /*
4386 * catime ()
4387 */
4388-int catime ( const char * channelName,
4389+int catime ( const char * channelName,
4390 unsigned channelCount, enum appendNumberFlag appNF )
4391 {
4392 unsigned i;
4393@@ -536,7 +536,7 @@ int catime ( const char * channelName,
4394 unsigned strsize;
4395 unsigned nBytesSent, nBytesRecv;
4396 ti *pItemList;
4397-
4398+
4399 if ( channelCount == 0 ) {
4400 printf ( "channel count was zero\n" );
4401 return 0;
4402@@ -547,15 +547,15 @@ int catime ( const char * channelName,
4403 return -1;
4404 }
4405
4406- SEVCHK ( ca_context_create ( ca_disable_preemptive_callback ),
4407+ SEVCHK ( ca_context_create ( ca_disable_preemptive_callback ),
4408 "Unable to initialize" );
4409
4410 if ( appNF == appendNumber ) {
4411- printf ( "Testing with %u channels named %snnn\n",
4412+ printf ( "Testing with %u channels named %snnn\n",
4413 channelCount, channelName );
4414 }
4415 else {
4416- printf ( "Testing with %u channels named %s\n",
4417+ printf ( "Testing with %u channels named %s\n",
4418 channelCount, channelName );
4419 }
4420
4421@@ -573,7 +573,7 @@ int catime ( const char * channelName,
4422 pItemList[i].name[strsize]= '\0';
4423 pItemList[i].count = 0;
4424 pItemList[i].pValue = 0;
4425- nBytesSent += 2 * ( CA_MESSAGE_ALIGN ( strlen ( pItemList[i].name ) )
4426+ nBytesSent += 2 * ( CA_MESSAGE_ALIGN ( strlen ( pItemList[i].name ) )
4427 + sizeof (caHdr) );
4428 nBytesRecv += 2 * sizeof (caHdr);
4429 }
4430@@ -582,7 +582,7 @@ int catime ( const char * channelName,
4431 printf ( "--------------------\n" );
4432 timeIt ( test_search, pItemList, channelCount, nBytesSent, nBytesRecv );
4433 printSearchStat ( pItemList, channelCount );
4434-
4435+
4436 for ( i = 0; i < channelCount; i++ ) {
4437 size_t count = ca_element_count ( pItemList[i].chix );
4438 size_t size = sizeof ( dbr_string_t ) * count;
4439@@ -608,7 +608,7 @@ int catime ( const char * channelName,
4440 for ( j = 0; j < pItemList[i].count; j++ ) {
4441 pFltVal[j] = (dbr_float_t) val;
4442 }
4443- pItemList[i].type = DBR_FLOAT;
4444+ pItemList[i].type = DBR_FLOAT;
4445 }
4446 printf ( "DBR_FLOAT Test\n" );
4447 printf ( "--------------\n" );
4448@@ -621,13 +621,13 @@ int catime ( const char * channelName,
4449 for ( j = 0; j < pItemList[i].count; j++ ) {
4450 pDblVal[j] = (dbr_double_t) val;
4451 }
4452- pItemList[i].type = DBR_DOUBLE;
4453+ pItemList[i].type = DBR_DOUBLE;
4454 }
4455 printf ( "DBR_DOUBLE Test\n" );
4456 printf ( "---------------\n" );
4457 test ( pItemList, channelCount );
4458
4459-
4460+
4461 for ( i = 0; i < channelCount; i++ ) {
4462 dbr_string_t * pStrVal = ( dbr_string_t * ) pItemList[i].pValue;
4463 double val = i;
4464@@ -635,7 +635,7 @@ int catime ( const char * channelName,
4465 for ( j = 0; j < pItemList[i].count; j++ ) {
4466 sprintf ( pStrVal[j], "%f", val );
4467 }
4468- pItemList[i].type = DBR_STRING;
4469+ pItemList[i].type = DBR_STRING;
4470 }
4471 printf ( "DBR_STRING Test\n" );
4472 printf ( "---------------\n" );
4473@@ -648,7 +648,7 @@ int catime ( const char * channelName,
4474 for ( j = 0; j < pItemList[i].count; j++ ) {
4475 pIntVal[j] = (dbr_int_t) val;
4476 }
4477- pItemList[i].type = DBR_INT;
4478+ pItemList[i].type = DBR_INT;
4479 }
4480 printf ( "DBR_INT Test\n" );
4481 printf ( "------------\n" );
4482@@ -661,8 +661,8 @@ int catime ( const char * channelName,
4483 for ( j = 0; j < pItemList[i].count; j++ ) {
4484 pDblVal[j] = 0;
4485 }
4486- pItemList[i].type = DBR_DOUBLE;
4487- }
4488+ pItemList[i].type = DBR_DOUBLE;
4489+ }
4490 measure_get_latency ( pItemList, channelCount );
4491
4492 printf ( "Free Channel Test\n" );
4493@@ -670,10 +670,10 @@ int catime ( const char * channelName,
4494 timeIt ( test_free, pItemList, channelCount, 0, 0 );
4495
4496 SEVCHK ( ca_task_exit (), "Unable to free resources at exit" );
4497-
4498+
4499 for ( i = 0; i < channelCount; i++ ) {
4500 free ( pItemList[i].pValue );
4501- }
4502+ }
4503
4504 free ( pItemList );
4505
4506diff --git a/modules/ca/src/client/catimeMain.c b/modules/ca/src/client/catimeMain.c
4507index 598ec45..cc9ec83 100644
4508--- a/modules/ca/src/client/catimeMain.c
4509+++ b/modules/ca/src/client/catimeMain.c
4510@@ -5,7 +5,7 @@
4511 * Operator of Los Alamos National Laboratory.
4512 * EPICS BASE Versions 3.13.7
4513 * and higher are distributed subject to a Software License Agreement found
4514-* in file LICENSE that is included with this distribution.
4515+* in file LICENSE that is included with this distribution.
4516 \*************************************************************************/
4517
4518 #include <stdio.h>
4519diff --git a/modules/ca/src/client/comBuf.cpp b/modules/ca/src/client/comBuf.cpp
4520index 94245d3..ec99ad0 100644
4521--- a/modules/ca/src/client/comBuf.cpp
4522+++ b/modules/ca/src/client/comBuf.cpp
4523@@ -5,20 +5,20 @@
4524 * Operator of Los Alamos National Laboratory.
4525 * EPICS BASE Versions 3.13.7
4526 * and higher are distributed subject to a Software License Agreement found
4527-* in file LICENSE that is included with this distribution.
4528+* in file LICENSE that is included with this distribution.
4529 \*************************************************************************/
4530-/*
4531+/*
4532+ *
4533 *
4534- *
4535 * L O S A L A M O S
4536 * Los Alamos National Laboratory
4537 * Los Alamos, New Mexico 87545
4538- *
4539+ *
4540 * Copyright, 1986, The Regents of the University of California.
4541- *
4542- *
4543- * Author Jeffrey O. Hill
4544- * johill@lanl.gov
4545+ *
4546+ *
4547+ * Author Jeffrey O. Hill
4548+ * johill@lanl.gov
4549 */
4550
4551 #include <stdexcept>
4552@@ -33,7 +33,7 @@ bool comBuf::flushToWire ( wireSendAdapter & wire, const epicsTime & currentTime
4553 unsigned index = this->nextReadIndex;
4554 unsigned finalIndex = this->commitIndex;
4555 while ( index < finalIndex ) {
4556- unsigned nBytes = wire.sendBytes (
4557+ unsigned nBytes = wire.sendBytes (
4558 &this->buf[index], finalIndex - index, currentTime );
4559 if ( nBytes == 0u ) {
4560 this->nextReadIndex = index;
4561@@ -45,9 +45,9 @@ bool comBuf::flushToWire ( wireSendAdapter & wire, const epicsTime & currentTime
4562 return true;
4563 }
4564
4565-// throwing the exception from a function that isnt inline
4566+// throwing the exception from a function that isnt inline
4567 // shrinks the GNU compiled object code
4568-void comBuf::throwInsufficentBytesException ()
4569+void comBuf::throwInsufficentBytesException ()
4570 {
4571 throw comBuf::insufficentBytesAvailable ();
4572 }
4573diff --git a/modules/ca/src/client/comBuf.h b/modules/ca/src/client/comBuf.h
4574index 59e3878..3425bb3 100644
4575--- a/modules/ca/src/client/comBuf.h
4576+++ b/modules/ca/src/client/comBuf.h
4577@@ -5,7 +5,7 @@
4578 * Operator of Los Alamos National Laboratory.
4579 * EPICS BASE Versions 3.13.7
4580 * and higher are distributed subject to a Software License Agreement found
4581-* in file LICENSE that is included with this distribution.
4582+* in file LICENSE that is included with this distribution.
4583 \*************************************************************************/
4584 /*
4585 *
4586@@ -17,8 +17,8 @@
4587 * Copyright, 1986, The Regents of the University of California.
4588 *
4589 *
4590- * Author Jeffrey O. Hill
4591- * johill@lanl.gov
4592+ * Author Jeffrey O. Hill
4593+ * johill@lanl.gov
4594 */
4595
4596 #ifndef comBufh
4597@@ -40,23 +40,23 @@ static const unsigned comBufSize = 0x4000;
4598 class comBufMemoryManager {
4599 public:
4600 virtual ~comBufMemoryManager ();
4601- virtual void * allocate ( size_t ) = 0;
4602- virtual void release ( void * ) = 0;
4603+ virtual void * allocate ( size_t ) = 0;
4604+ virtual void release ( void * ) = 0;
4605 };
4606
4607 class wireSendAdapter {
4608 public:
4609- virtual unsigned sendBytes ( const void * pBuf,
4610- unsigned nBytesInBuf,
4611+ virtual unsigned sendBytes ( const void * pBuf,
4612+ unsigned nBytesInBuf,
4613 const class epicsTime & currentTime ) = 0;
4614 protected:
4615 virtual ~wireSendAdapter() {}
4616 };
4617
4618-enum swioCircuitState {
4619- swioConnected,
4620- swioPeerHangup,
4621- swioPeerAbort,
4622+enum swioCircuitState {
4623+ swioConnected,
4624+ swioPeerHangup,
4625+ swioPeerAbort,
4626 swioLinkFailure,
4627 swioLocalAbort
4628 };
4629@@ -67,7 +67,7 @@ struct statusWireIO {
4630
4631 class wireRecvAdapter {
4632 public:
4633- virtual void recvBytes ( void * pBuf,
4634+ virtual void recvBytes ( void * pBuf,
4635 unsigned nBytesInBuf, statusWireIO & ) = 0;
4636 protected:
4637 virtual ~wireRecvAdapter() {}
4638@@ -106,7 +106,7 @@ public:
4639 template < class T >
4640 popStatus pop ( T & );
4641 static void throwInsufficentBytesException ();
4642- void * operator new ( size_t size,
4643+ void * operator new ( size_t size,
4644 comBufMemoryManager & );
4645 epicsPlacementDeleteOperator (( void *, comBufMemoryManager & ))
4646 private:
4647@@ -119,14 +119,14 @@ private:
4648 bool push ( const T * ); // disabled
4649 };
4650
4651-inline void * comBuf::operator new ( size_t size,
4652+inline void * comBuf::operator new ( size_t size,
4653 comBufMemoryManager & mgr )
4654 {
4655 return mgr.allocate ( size );
4656 }
4657-
4658+
4659 #ifdef CXX_PLACEMENT_DELETE
4660-inline void comBuf::operator delete ( void * pCadaver,
4661+inline void comBuf::operator delete ( void * pCadaver,
4662 comBufMemoryManager & mgr )
4663 {
4664 mgr.release ( pCadaver );
4665@@ -162,8 +162,8 @@ inline unsigned comBuf :: uncommittedBytes () const
4666
4667 inline unsigned comBuf :: push ( comBuf & bufIn )
4668 {
4669- unsigned nBytes = this->copyInBytes (
4670- & bufIn.buf[ bufIn.nextReadIndex ],
4671+ unsigned nBytes = this->copyInBytes (
4672+ & bufIn.buf[ bufIn.nextReadIndex ],
4673 bufIn.commitIndex - bufIn.nextReadIndex );
4674 bufIn.nextReadIndex += nBytes;
4675 return nBytes;
4676@@ -174,11 +174,11 @@ inline unsigned comBuf :: capacityBytes ()
4677 return comBufSize;
4678 }
4679
4680-inline void comBuf :: fillFromWire (
4681+inline void comBuf :: fillFromWire (
4682 wireRecvAdapter & wire, statusWireIO & stat )
4683 {
4684- wire.recvBytes (
4685- & this->buf[this->nextWriteIndex],
4686+ wire.recvBytes (
4687+ & this->buf[this->nextWriteIndex],
4688 sizeof ( this->buf ) - this->nextWriteIndex, stat );
4689 if ( stat.circuitState == swioConnected ) {
4690 this->nextWriteIndex += stat.bytesCopied;
4691diff --git a/modules/ca/src/client/comQueRecv.cpp b/modules/ca/src/client/comQueRecv.cpp
4692index 8826354..4fe7d09 100644
4693--- a/modules/ca/src/client/comQueRecv.cpp
4694+++ b/modules/ca/src/client/comQueRecv.cpp
4695@@ -5,9 +5,9 @@
4696 * Operator of Los Alamos National Laboratory.
4697 * EPICS BASE Versions 3.13.7
4698 * and higher are distributed subject to a Software License Agreement found
4699-* in file LICENSE that is included with this distribution.
4700+* in file LICENSE that is included with this distribution.
4701 \*************************************************************************/
4702-/*
4703+/*
4704 *
4705 *
4706 * L O S A L A M O S
4707@@ -26,8 +26,8 @@
4708 #include "iocinf.h"
4709 #include "virtualCircuit.h"
4710
4711-comQueRecv::comQueRecv ( comBufMemoryManager & comBufMemoryManagerIn ):
4712- comBufMemMgr ( comBufMemoryManagerIn ), nBytesPending ( 0u )
4713+comQueRecv::comQueRecv ( comBufMemoryManager & comBufMemoryManagerIn ):
4714+ comBufMemMgr ( comBufMemoryManagerIn ), nBytesPending ( 0u )
4715 {
4716 }
4717
4718@@ -101,7 +101,7 @@ void comQueRecv::popString ( epicsOldString *pStr )
4719 }
4720
4721 void comQueRecv::pushLastComBufReceived ( comBuf & bufIn )
4722-
4723+
4724 {
4725 bufIn.commitIncomming ();
4726 comBuf * pComBuf = this->bufs.last ();
4727@@ -172,7 +172,7 @@ void comQueRecv::removeAndDestroyBuf ( comBuf & buf )
4728 this->comBufMemMgr.release ( & buf );
4729 }
4730
4731-epicsUInt8 comQueRecv::popUInt8 ()
4732+epicsUInt8 comQueRecv::popUInt8 ()
4733 {
4734 comBuf * pComBuf = this->bufs.first ();
4735 if ( ! pComBuf ) {
4736diff --git a/modules/ca/src/client/comQueRecv.h b/modules/ca/src/client/comQueRecv.h
4737index 7f3153d..2e71478 100644
4738--- a/modules/ca/src/client/comQueRecv.h
4739+++ b/modules/ca/src/client/comQueRecv.h
4740@@ -5,25 +5,25 @@
4741 * Operator of Los Alamos National Laboratory.
4742 * EPICS BASE Versions 3.13.7
4743 * and higher are distributed subject to a Software License Agreement found
4744-* in file LICENSE that is included with this distribution.
4745+* in file LICENSE that is included with this distribution.
4746 \*************************************************************************/
4747
4748-/*
4749+/*
4750+ *
4751 *
4752- *
4753 * L O S A L A M O S
4754 * Los Alamos National Laboratory
4755 * Los Alamos, New Mexico 87545
4756- *
4757+ *
4758 * Copyright, 1986, The Regents of the University of California.
4759- *
4760- *
4761- * Author Jeffrey O. Hill
4762- * johill@lanl.gov
4763- * 505 665 1831
4764+ *
4765+ *
4766+ * Author Jeffrey O. Hill
4767+ * johill@lanl.gov
4768+ * 505 665 1831
4769 */
4770
4771-#ifndef comQueRecvh
4772+#ifndef comQueRecvh
4773 #define comQueRecvh
4774
4775 #include "comBuf.h"
4776@@ -54,8 +54,8 @@ private:
4777 epicsUInt16 multiBufferPopUInt16 ();
4778 epicsUInt32 multiBufferPopUInt32 ();
4779 void removeAndDestroyBuf ( comBuf & );
4780- comQueRecv ( const comQueRecv & );
4781- comQueRecv & operator = ( const comQueRecv & );
4782+ comQueRecv ( const comQueRecv & );
4783+ comQueRecv & operator = ( const comQueRecv & );
4784 };
4785
4786 inline unsigned comQueRecv::occupiedBytes () const
4787diff --git a/modules/ca/src/client/comQueSend.cpp b/modules/ca/src/client/comQueSend.cpp
4788index 6ed516b..7bf75c7 100644
4789--- a/modules/ca/src/client/comQueSend.cpp
4790+++ b/modules/ca/src/client/comQueSend.cpp
4791@@ -5,21 +5,21 @@
4792 * Operator of Los Alamos National Laboratory.
4793 * EPICS BASE Versions 3.13.7
4794 * and higher are distributed subject to a Software License Agreement found
4795-* in file LICENSE that is included with this distribution.
4796+* in file LICENSE that is included with this distribution.
4797 \*************************************************************************/
4798
4799-/*
4800+/*
4801+ *
4802 *
4803- *
4804 * L O S A L A M O S
4805 * Los Alamos National Laboratory
4806 * Los Alamos, New Mexico 87545
4807- *
4808+ *
4809 * Copyright, 1986, The Regents of the University of California.
4810- *
4811- *
4812- * Author Jeffrey O. Hill
4813- * johill@lanl.gov
4814+ *
4815+ *
4816+ * Author Jeffrey O. Hill
4817+ * johill@lanl.gov
4818 */
4819
4820 //
4821@@ -35,7 +35,7 @@
4822 // a connection dropped.
4823 // 4) Do not allocate too much memory in exception situatons (such as
4824 // after a circuit disconnect).
4825-// 5) Avoid allocating more memory than is absolutely necessary to meet
4826+// 5) Avoid allocating more memory than is absolutely necessary to meet
4827 // the above requirements.
4828 // 6) Message fragments must never be sent to the IOC when there isnt
4829 // enough memory to queue part of a message (we also must not force
4830@@ -44,7 +44,7 @@
4831 // protocol stream.
4832 //
4833 // Implementation:
4834-// 1) When queuing a complete message, first test to see if a flush is
4835+// 1) When queuing a complete message, first test to see if a flush is
4836 // required. If it is a receive thread scheduals the flush with the
4837 // send thread, and otherwise directly execute the system call. The
4838 // send thread must run at a higher priority than the receive thread
4839@@ -52,14 +52,14 @@
4840 // 2) Preallocate space for the entire message prior to copying in the
4841 // message so that message fragments are not flushed out just prior
4842 // to detecting that memory is unavailable.
4843-// 3) Return a special error constant when the following situations
4844+// 3) Return a special error constant when the following situations
4845 // are detected when the user is attempting to queue a request
4846 // from within a user callback executed by a receive thread:
4847-// a) A user is queuing more requests that demand a response from a
4848+// a) A user is queuing more requests that demand a response from a
4849 // callback than are removed by the response that initiated the
4850 // callback, and this situation persists for many callbacks until
4851 // all buffering in the system is exausted.
4852-// b) A user is queuing many requests that demand a response from one
4853+// b) A user is queuing many requests that demand a response from one
4854 // callback until all buffering in the system is exausted.
4855 // c) Some combination of both (a) nad (b).
4856 //
4857@@ -73,15 +73,15 @@
4858 #include "db_access.h" // for dbr_short_t etc
4859
4860 // nill message alignment pad bytes
4861-const char cacNillBytes [] =
4862-{
4863+const char cacNillBytes [] =
4864+{
4865 0, 0, 0, 0,
4866 0, 0, 0, 0
4867 };
4868
4869-comQueSend::comQueSend ( wireSendAdapter & wireIn,
4870+comQueSend::comQueSend ( wireSendAdapter & wireIn,
4871 comBufMemoryManager & comBufMemMgrIn ):
4872- comBufMemMgr ( comBufMemMgrIn ), wire ( wireIn ),
4873+ comBufMemMgr ( comBufMemMgrIn ), wire ( wireIn ),
4874 nBytesPending ( 0u )
4875 {
4876 }
4877@@ -91,7 +91,7 @@ comQueSend::~comQueSend ()
4878 this->clear ();
4879 }
4880
4881-void comQueSend::clear ()
4882+void comQueSend::clear ()
4883 {
4884 comBuf *pBuf;
4885
4886@@ -181,32 +181,32 @@ const comQueSend::copyScalarFunc_t comQueSend::dbrCopyScalar [39] = {
4887 &comQueSend::copy_dbr_invalid // DBR_CLASS_NAME
4888 };
4889
4890-void comQueSend::copy_dbr_string ( const void *pValue, unsigned nElem )
4891+void comQueSend::copy_dbr_string ( const void *pValue, unsigned nElem )
4892 {
4893 this->push ( static_cast < const char * > ( pValue ), nElem * MAX_STRING_SIZE );
4894 }
4895
4896-void comQueSend::copy_dbr_short ( const void *pValue, unsigned nElem )
4897+void comQueSend::copy_dbr_short ( const void *pValue, unsigned nElem )
4898 {
4899 this->push ( static_cast <const dbr_short_t *> ( pValue ), nElem );
4900 }
4901
4902-void comQueSend::copy_dbr_float ( const void *pValue, unsigned nElem )
4903+void comQueSend::copy_dbr_float ( const void *pValue, unsigned nElem )
4904 {
4905 this->push ( static_cast <const dbr_float_t *> ( pValue ), nElem );
4906 }
4907
4908-void comQueSend::copy_dbr_char ( const void *pValue, unsigned nElem )
4909+void comQueSend::copy_dbr_char ( const void *pValue, unsigned nElem )
4910 {
4911 this->push ( static_cast <const dbr_char_t *> ( pValue ), nElem );
4912 }
4913
4914-void comQueSend::copy_dbr_long ( const void *pValue, unsigned nElem )
4915+void comQueSend::copy_dbr_long ( const void *pValue, unsigned nElem )
4916 {
4917 this->push ( static_cast <const dbr_long_t *> ( pValue ), nElem );
4918 }
4919
4920-void comQueSend::copy_dbr_double ( const void *pValue, unsigned nElem )
4921+void comQueSend::copy_dbr_double ( const void *pValue, unsigned nElem )
4922 {
4923 this->push ( static_cast <const dbr_double_t *> ( pValue ), nElem );
4924 }
4925@@ -258,7 +258,7 @@ const comQueSend::copyVectorFunc_t comQueSend::dbrCopyVector [39] = {
4926 &comQueSend::copy_dbr_invalid // DBR_CLASS_NAME
4927 };
4928
4929-comBuf * comQueSend::popNextComBufToSend ()
4930+comBuf * comQueSend::popNextComBufToSend ()
4931 {
4932 comBuf *pBuf = this->bufs.get ();
4933 if ( pBuf ) {
4934@@ -279,9 +279,9 @@ comBuf * comQueSend::popNextComBufToSend ()
4935 }
4936
4937 void comQueSend::insertRequestHeader (
4938- ca_uint16_t request, ca_uint32_t payloadSize,
4939- ca_uint16_t dataType, ca_uint32_t nElem, ca_uint32_t cid,
4940- ca_uint32_t requestDependent, bool v49Ok )
4941+ ca_uint16_t request, ca_uint32_t payloadSize,
4942+ ca_uint16_t dataType, ca_uint32_t nElem, ca_uint32_t cid,
4943+ ca_uint32_t requestDependent, bool v49Ok )
4944 {
4945 if ( payloadSize < 0xffff && nElem < 0xffff ) {
4946 comBuf * pComBuf = this->bufs.last ();
4947@@ -289,12 +289,12 @@ void comQueSend::insertRequestHeader (
4948 pComBuf = newComBuf ();
4949 this->pushComBuf ( *pComBuf );
4950 }
4951- pComBuf->push ( request );
4952- pComBuf->push ( static_cast < ca_uint16_t > ( payloadSize ) );
4953- pComBuf->push ( dataType );
4954- pComBuf->push ( static_cast < ca_uint16_t > ( nElem ) );
4955- pComBuf->push ( cid );
4956- pComBuf->push ( requestDependent );
4957+ pComBuf->push ( request );
4958+ pComBuf->push ( static_cast < ca_uint16_t > ( payloadSize ) );
4959+ pComBuf->push ( dataType );
4960+ pComBuf->push ( static_cast < ca_uint16_t > ( nElem ) );
4961+ pComBuf->push ( cid );
4962+ pComBuf->push ( requestDependent );
4963 }
4964 else if ( v49Ok ) {
4965 comBuf * pComBuf = this->bufs.last ();
4966@@ -302,14 +302,14 @@ void comQueSend::insertRequestHeader (
4967 pComBuf = newComBuf ();
4968 this->pushComBuf ( *pComBuf );
4969 }
4970- pComBuf->push ( request );
4971- pComBuf->push ( static_cast < ca_uint16_t > ( 0xffff ) );
4972- pComBuf->push ( dataType );
4973- pComBuf->push ( static_cast < ca_uint16_t > ( 0u ) );
4974- pComBuf->push ( cid );
4975- pComBuf->push ( requestDependent );
4976- pComBuf->push ( payloadSize );
4977- pComBuf->push ( nElem );
4978+ pComBuf->push ( request );
4979+ pComBuf->push ( static_cast < ca_uint16_t > ( 0xffff ) );
4980+ pComBuf->push ( dataType );
4981+ pComBuf->push ( static_cast < ca_uint16_t > ( 0u ) );
4982+ pComBuf->push ( cid );
4983+ pComBuf->push ( requestDependent );
4984+ pComBuf->push ( payloadSize );
4985+ pComBuf->push ( nElem );
4986 }
4987 else {
4988 throw cacChannel::outOfBounds ();
4989@@ -317,9 +317,9 @@ void comQueSend::insertRequestHeader (
4990 }
4991
4992 void comQueSend::insertRequestWithPayLoad (
4993- ca_uint16_t request, unsigned dataType, arrayElementCount nElem,
4994- ca_uint32_t cid, ca_uint32_t requestDependent,
4995- const void * pPayload, bool v49Ok )
4996+ ca_uint16_t request, unsigned dataType, arrayElementCount nElem,
4997+ ca_uint32_t cid, ca_uint32_t requestDependent,
4998+ const void * pPayload, bool v49Ok )
4999 {
5000 if ( INVALID_DB_REQ ( dataType ) ) {
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches