Minor cleanups
This commit is contained in:
@@ -132,15 +132,15 @@ numeric literal or an embedded link inside C<{}> braces.
|
||||
An optional string specifying the engineering units for the result of the
|
||||
expression. Equivalent to the C<EGU> field of a record.
|
||||
|
||||
item prec
|
||||
=item prec
|
||||
|
||||
An optional integer specifying the numeric precision with which the calculation
|
||||
result should be displayed. Equivalent to the E<UNIT> field of a record.
|
||||
result should be displayed. Equivalent to the C<PREC> field of a record.
|
||||
|
||||
=back
|
||||
|
||||
=head4 Example
|
||||
|
||||
{calc: {expr:"A+B", args:[1, 2]}}
|
||||
{calc: {expr:"A*B", args:[{db:"record.VAL"}, 1.5]}}
|
||||
|
||||
=cut
|
||||
|
||||
@@ -45,13 +45,14 @@ typedef long (*FASTCONVERT)();
|
||||
typedef struct calc_link {
|
||||
jlink jlink; /* embedded object */
|
||||
int nArgs;
|
||||
enum {ps_init,
|
||||
enum {
|
||||
ps_init,
|
||||
ps_expr, ps_major, ps_minor,
|
||||
ps_args,
|
||||
ps_prec,
|
||||
ps_units,
|
||||
ps_error}
|
||||
pstate;
|
||||
ps_error
|
||||
} pstate;
|
||||
epicsEnum16 stat;
|
||||
epicsEnum16 sevr;
|
||||
short prec;
|
||||
|
||||
Reference in New Issue
Block a user