CleanupWhitespace
removed spaces at end of line replaced tabs with spaces
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
* Copyright (c) 2002 The Regents of the University of California, as
|
||||
* Operator of Los Alamos National Laboratory.
|
||||
* EPICS BASE is distributed subject to a Software License Agreement found
|
||||
* in file LICENSE that is included with this distribution.
|
||||
* in file LICENSE that is included with this distribution.
|
||||
\*************************************************************************/
|
||||
|
||||
/* recStringout.c - Record Support Routines for Stringout records */
|
||||
/*
|
||||
* Author: Janet Anderson
|
||||
* Date: 4/23/91
|
||||
*/
|
||||
* Author: Janet Anderson
|
||||
* Date: 4/23/91
|
||||
*/
|
||||
|
||||
|
||||
#include <stddef.h>
|
||||
@@ -61,24 +61,24 @@ static long special(DBADDR *, int);
|
||||
#define get_alarm_double NULL
|
||||
|
||||
rset stringoutRSET={
|
||||
RSETNUMBER,
|
||||
report,
|
||||
initialize,
|
||||
init_record,
|
||||
process,
|
||||
special,
|
||||
get_value,
|
||||
cvt_dbaddr,
|
||||
get_array_info,
|
||||
put_array_info,
|
||||
get_units,
|
||||
get_precision,
|
||||
get_enum_str,
|
||||
get_enum_strs,
|
||||
put_enum_str,
|
||||
get_graphic_double,
|
||||
get_control_double,
|
||||
get_alarm_double
|
||||
RSETNUMBER,
|
||||
report,
|
||||
initialize,
|
||||
init_record,
|
||||
process,
|
||||
special,
|
||||
get_value,
|
||||
cvt_dbaddr,
|
||||
get_array_info,
|
||||
put_array_info,
|
||||
get_units,
|
||||
get_precision,
|
||||
get_enum_str,
|
||||
get_enum_strs,
|
||||
put_enum_str,
|
||||
get_graphic_double,
|
||||
get_control_double,
|
||||
get_alarm_double
|
||||
};
|
||||
epicsExportAddress(rset,stringoutRSET);
|
||||
|
||||
@@ -126,58 +126,58 @@ static long process(struct dbCommon *pcommon)
|
||||
{
|
||||
struct stringoutRecord *prec = (struct stringoutRecord *)pcommon;
|
||||
stringoutdset *pdset = (stringoutdset *)(prec->dset);
|
||||
long status=0;
|
||||
unsigned char pact=prec->pact;
|
||||
long status=0;
|
||||
unsigned char pact=prec->pact;
|
||||
|
||||
if( (pdset==NULL) || (pdset->write_stringout==NULL) ) {
|
||||
prec->pact=TRUE;
|
||||
recGblRecordError(S_dev_missingSup,(void *)prec,"write_stringout");
|
||||
return(S_dev_missingSup);
|
||||
}
|
||||
if (!prec->pact &&
|
||||
!dbLinkIsConstant(&prec->dol) &&
|
||||
prec->omsl == menuOmslclosed_loop) {
|
||||
status = dbGetLink(&prec->dol, DBR_STRING, prec->val, 0, 0);
|
||||
if (!dbLinkIsConstant(&prec->dol) && !status)
|
||||
prec->udf=FALSE;
|
||||
}
|
||||
if( (pdset==NULL) || (pdset->write_stringout==NULL) ) {
|
||||
prec->pact=TRUE;
|
||||
recGblRecordError(S_dev_missingSup,(void *)prec,"write_stringout");
|
||||
return(S_dev_missingSup);
|
||||
}
|
||||
if (!prec->pact &&
|
||||
!dbLinkIsConstant(&prec->dol) &&
|
||||
prec->omsl == menuOmslclosed_loop) {
|
||||
status = dbGetLink(&prec->dol, DBR_STRING, prec->val, 0, 0);
|
||||
if (!dbLinkIsConstant(&prec->dol) && !status)
|
||||
prec->udf=FALSE;
|
||||
}
|
||||
|
||||
if(prec->udf == TRUE ){
|
||||
recGblSetSevr(prec,UDF_ALARM,prec->udfs);
|
||||
}
|
||||
if(prec->udf == TRUE ){
|
||||
recGblSetSevr(prec,UDF_ALARM,prec->udfs);
|
||||
}
|
||||
|
||||
if (prec->nsev < INVALID_ALARM )
|
||||
if (prec->nsev < INVALID_ALARM )
|
||||
status=writeValue(prec); /* write the new value */
|
||||
else {
|
||||
switch (prec->ivoa) {
|
||||
case (menuIvoaContinue_normally) :
|
||||
status=writeValue(prec); /* write the new value */
|
||||
else {
|
||||
switch (prec->ivoa) {
|
||||
case (menuIvoaContinue_normally) :
|
||||
status=writeValue(prec); /* write the new value */
|
||||
break;
|
||||
case (menuIvoaDon_t_drive_outputs) :
|
||||
break;
|
||||
case (menuIvoaSet_output_to_IVOV) :
|
||||
if(prec->pact == FALSE){
|
||||
strncpy(prec->val, prec->ivov, sizeof(prec->val));
|
||||
}
|
||||
status=writeValue(prec); /* write the new value */
|
||||
break;
|
||||
default :
|
||||
status=-1;
|
||||
recGblRecordError(S_db_badField,(void *)prec,
|
||||
"stringout:process Illegal IVOA field");
|
||||
break;
|
||||
case (menuIvoaDon_t_drive_outputs) :
|
||||
break;
|
||||
case (menuIvoaSet_output_to_IVOV) :
|
||||
if(prec->pact == FALSE){
|
||||
strncpy(prec->val, prec->ivov, sizeof(prec->val));
|
||||
}
|
||||
status=writeValue(prec); /* write the new value */
|
||||
break;
|
||||
default :
|
||||
status=-1;
|
||||
recGblRecordError(S_db_badField,(void *)prec,
|
||||
"stringout:process Illegal IVOA field");
|
||||
}
|
||||
}
|
||||
|
||||
/* check if device support set pact */
|
||||
if ( !pact && prec->pact ) return(0);
|
||||
/* check if device support set pact */
|
||||
if ( !pact && prec->pact ) return(0);
|
||||
|
||||
prec->pact = TRUE;
|
||||
prec->pact = TRUE;
|
||||
recGblGetTimeStampSimm(prec, prec->simm, NULL);
|
||||
|
||||
monitor(prec);
|
||||
recGblFwdLink(prec);
|
||||
prec->pact=FALSE;
|
||||
return(status);
|
||||
monitor(prec);
|
||||
recGblFwdLink(prec);
|
||||
prec->pact=FALSE;
|
||||
return(status);
|
||||
}
|
||||
|
||||
static long special(DBADDR *paddr, int after)
|
||||
|
||||
Reference in New Issue
Block a user