Support variable array size

Added LEN field and get_array_info() routine.
Removed len arg from device support write_string() routine.
Modified device support to match.
This commit is contained in:
Andrew Johnson
2012-11-12 13:45:23 -06:00
parent e94ffd48fa
commit e3f59fd5c2
5 changed files with 24 additions and 10 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
#include "printfRecord.h"
#include "epicsExport.h"
static long write_string(printfRecord *prec, size_t len)
static long write_string(printfRecord *prec)
{
struct link *plink = &prec->out;
int dtyp = dbGetLinkDBFtype(plink);
@@ -23,7 +23,7 @@ static long write_string(printfRecord *prec, size_t len)
return 0; /* Not connected */
if (dtyp == DBR_CHAR || dtyp == DBF_UCHAR)
return dbPutLink(plink, dtyp, prec->val, len);
return dbPutLink(plink, dtyp, prec->val, prec->len);
return dbPutLink(plink, DBR_STRING, prec->val, 1);
}