Modify lsodset, set USE_TYPED_DSET

This commit is contained in:
Andrew Johnson
2019-11-23 15:32:51 -06:00
parent 465ab44606
commit 7893445a2e
7 changed files with 12 additions and 12 deletions
+1
View File
@@ -31,6 +31,7 @@ stdRecords += longinRecord
stdRecords += longoutRecord
lsiRecord_CFLAGS += -DUSE_TYPED_DSET
stdRecords += lsiRecord
lsoRecord_CFLAGS += -DUSE_TYPED_DSET
stdRecords += lsoRecord
stdRecords += mbbiRecord
stdRecords += mbbiDirectRecord
+3 -3
View File
@@ -70,15 +70,15 @@ static long init_record(struct dbCommon *pcommon, int pass)
}
/* must have a write_string function defined */
if (pdset->number < 5 || !pdset->write_string) {
if (pdset->common.number < 5 || !pdset->write_string) {
recGblRecordError(S_dev_missingSup, prec, "lso: init_record");
return S_dev_missingSup;
}
dbLoadLinkLS(&prec->dol, prec->val, prec->sizv, &prec->len);
if (pdset->init_record) {
long status = pdset->init_record(prec);
if (pdset->common.init_record) {
long status = pdset->common.init_record(pcommon);
if (status)
return status;
+3 -6
View File
@@ -10,13 +10,10 @@ recordtype(lso) {
%#include "devSup.h"
%
%/* Declare Device Support Entry Table */
%struct lsoRecord;
%typedef struct lsodset {
% long number;
% DEVSUPFUN report;
% DEVSUPFUN init;
% DEVSUPFUN init_record;
% DEVSUPFUN get_ioint_info;
% DEVSUPFUN write_string;
% dset common;
% long (*write_string)(struct lsoRecord *prec);
%} lsodset;
%
field(VAL,DBF_NOACCESS) {