Minor cleanups

This commit is contained in:
Andrew Johnson
2016-09-03 19:44:49 -05:00
parent 5fe3e8bfb5
commit f8d6cd98a0
2 changed files with 7 additions and 6 deletions

View File

@@ -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

View File

@@ -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;