Bboolco — Compile boolean expression, return evaluation handler
Compile boolean expression (in parameter expr) and returns the evaluation tree handler. Following operators are available for expressions:
%%, !% - regular expression testing e.g. "T_STRING_2_FLD %% 58.*"- will match if T_STRING_2_FLD is set to "58ABC" for example.
==, !=, <, ⇐, >, >= - compare operations
!, ~, ^ - bitwise operations
+, -, *, %, / - mathematical operations
&&, || - logical operations
On success, Bboolco() return pointer to evaluation tree; on error, NULL is returned, with Berror set to indicate the error.
Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.
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.