Product Documentation

Conditional Expressions

Previous Topic

Next Topic

cndxrun

Executes the parse tree evaluating an expression in a parse tree. The result of the expression is left on top of the stack.

Declaration

COUNT cndxrun( PTREE Tree, pVOID Recptr, pConvMap Schema, VRLEN fixlen, VRLEN datlen );

Description

Where:

  • Tree - Parser tree generated by the expression parser
  • Recptr - pointer to a record buffer with data
  • Schema - c-tree DODA schema for the data file
  • fixlen - record fixed length size
  • datlen - total size of record

Return Values

Value

Symbolic Constant

Explanation

 

ERY_NONE

SUCCESS

See FairCom DB Error Codes for a complete listing of valid FairCom DB error values.

Example

if ( ( retcidx = cndxrun( (PTREE)expr->expr_tree,

pRecord->recbuf,

(pConvMap)pTable->schemaptr,

(VRLEN)pRecord->fixrec_len,

(VRLEN)pRecord->recbuf_len inHan) ) == ERY_NONE && ctcidxStkPtr == 0 )

{

retval = CTDBRET_INTERNAL;

goto Exit;

}

See also

cndxeval, cndxfree, cndxparse, ctparsedoda, getcndxmem, putcndxmem

TOCIndex