Bfloatev — Evaluate compiled expression tree against UBF buffer
#include <ubf.h>
double Bfloatev (UBFH *p_ub, char *tree);
Link with -lubf -lnstd -lm -lpthread
Evaluate compiled expression in tree against UBF buffer in p_ub. Returned value is floating point result of the operation.
Floating point result value is returned. In case of error it is -1, but to detect error, check the Berror.
Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.
BNOTFLD p_ub is not fielded buffer or argument NULL.
BEINVAL tree param is NULL.
BALIGNERR Corrupted buffer or pointing to not aligned memory area.
BNOTFLD Buffer not fielded, not correctly allocated or corrupted.
BBADFLD Invalid field id passed.
BNOTPRES Field not present.
FMALLOC Malloc failed.
BSYNTAX Synax error in script.
BBADNAME Bad field name specified.