Code review comment for lp:~epics-core/epics-base/link-support-2

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

Fix Committed.

Interestingly mixed data types are legal (they work fine) in an array when using dbConstLink, but aren't with the lnkConst type. That's because in dbConstLink the JSON parsing gets deferred until you know what data type you're initializing.

epics> dbpr longstr4 1
APST: Always ASG: BKPT: 00 BUSY: 0
DESC: DISA: 0 DISP: 0 DISS: NO_ALARM
DISV: 1 DTYP: Soft Channel EGU: EVNT:
FLNK:CONSTANT 0 FTVL: STRING HOPR: 0
INP:CONSTANT ["!- One -!",2,3.0] LOPR: 0 MPST: Always
NAME: longstr4 NELM: 100 NORD: 3 PACT: 0
PHAS: 0 PINI: NO PREC: 0 PRIO: LOW
PUTF: 0 RARM: 0 RPRO: 0 SCAN: Passive
SDIS:CONSTANT SEVR: INVALID SIML:CONSTANT SIMM: NO
SIOL:CONSTANT STAT: UDF TPRO: 0 TSE: 0
TSEL:CONSTANT UDF: 0 UDFS: INVALID VAL: (nil)

tux% caget -c longstr4
longstr4 3 !- One -! 2 3.000000

« Back to merge proposal