APG
… an ABNF Parser Generator
|
The public trace object functions. More...
Go to the source code of this file.
Functions | |
void * | vpTraceCtor (void *vpCtx) |
The trace object constructor. More... | |
void | vTraceDtor (void *vpCtx) |
Trace destructor. More... | |
void | vTraceSetOutput (void *vpCtx, const char *cpFileName) |
void | vTraceApgexHeader (void *vpCtx) |
Only called by apgex. More... | |
void | vTraceApgexFooter (void *vpCtx) |
Only called by apgex. More... | |
void | vTraceApgexSeparator (void *vpCtx, aint uiLastIndex) |
Only called by apgex. More... | |
void | vTraceBegin (void *vpCtx) |
Called by the parser to start the trace. More... | |
void | vTraceEnd (void *vpCtx) |
Called by the parser to end the trace. More... | |
void | vTraceDown (void *vpCtx, const opcode *spOp, aint uiOffset) |
Called by the parser prior to downward traversal of a parse tree node. More... | |
void | vTraceUp (void *vpCtx, const opcode *spOp, aint uiState, aint uiOffset, aint uiPhraseLength) |
Called by the parser following upward traversal of a parse tree node. More... | |
aint | uiTraceGetRecordCount (void *vpCtx) |
Get the number of traced records, displayed or not. More... | |
The public trace object functions.
Definition in file trace.c.
aint uiTraceGetRecordCount | ( | void * | vpCtx | ) |
Get the number of traced records, displayed or not.
The trace object may be configured to simply count the number of records that it would have displayed, but not to actually display them. With this function the application can retrieve the record count whether or not they were actually displayed.
vpCtx | Pointer to a valid trace object context returned from vpTraceCtor(). If not valid the application will silently exit with a BAD_CONTEXT exit code. |
void* vpTraceCtor | ( | void * | vpCtx | ) |
The trace object constructor.
vpCtx | Pointer to a valid parser context previously returned from vpParserCtor(). If invalid, application will silently exit with a BAD_CONTEXT exit code. |
void vTraceApgexFooter | ( | void * | vpCtx | ) |
void vTraceApgexHeader | ( | void * | vpCtx | ) |
void vTraceApgexSeparator | ( | void * | vpCtx, |
aint | uiLastIndex | ||
) |
void vTraceBegin | ( | void * | vpCtx | ) |
Called by the parser to start the trace.
Called via the macro TRACE_BEGIN only trace is implemented.
void vTraceDown | ( | void * | vpCtx, |
const opcode * | spOp, | ||
aint | uiOffset | ||
) |
Called by the parser prior to downward traversal of a parse tree node.
Called via the macro TRACE_DOWN only trace is implemented.
void vTraceDtor | ( | void * | vpCtx | ) |
Trace destructor.
Note: Distruction of the trace object is optional. The parent parser's destructor, vParserDtor(), will call this function via the macro TRACE_DTOR().
vpCtx | Pointer to a trace context, returned from a previous call to vpTraceCtor(), NULL will be silently ignored. However, non-NULL values must be valid or the application will exit with a BAD_CONTEXT exit code. |
void vTraceEnd | ( | void * | vpCtx | ) |
void vTraceSetOutput | ( | void * | vpCtx, |
const char * | cpFileName | ||
) |