Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
statsp.h File Reference

Private header file for the statistics gathering functions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Private Statistics Function

Called only by the parent parser object via the macro STATS_HIT.

void vStatsHit (void *spCtx, const opcode *spOp, aint uiState)
 Collects the statistics for a single node hit. More...
 

Detailed Description

Private header file for the statistics gathering functions.

Definition in file statsp.h.

Function Documentation

◆ vStatsHit()

void vStatsHit ( void *  vpCtx,
const opcode *  spOp,
aint  uiState 
)

Collects the statistics for a single node hit.

This function is called only by the parent parser via the macro STATS_HIT.

Parameters
vpCtxPointer to a valid statistics context returned from vpStatsCtor() If not valid the application will silently exit with a BAD_CONTEXT exit code.
spOpPointer to the opcode of the current node.
uiStateThe node state (ID_MATCH or ID_NOMATCH)
Returns
void

Definition at line 156 of file stats.c.

APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.