Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
Data Structures | Functions
apip.h File Reference

Private header file for the APG API suite of functions. More...

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

Go to the source code of this file.

Data Structures

struct  alt_data
 Used by syntax.c but needed here for constructor/destructor. More...
 
struct  api_rule
 API information about each rule. More...
 
struct  api_udt
 API information about each UDT. More...
 
struct  api_op
 API information about each opcode. More...
 
struct  api_attr_w
 Working attribute information about a each rule. More...
 
struct  api
 The API context. More...
 

Functions

void vLineError (api *spCtx, aint uiCharIndex, const char *cpSrc, const char *cpMsg)
 Finds the grammar line associated with a character index and formats an error message to the error log. More...
 
void vHtmlHeader (FILE *spFile, const char *cpTitle)
 Prints an HTML header to an open file. More...
 
void vHtmlFooter (FILE *spFile)
 Prints an HTML footer to an open file. More...
 

Detailed Description

Private header file for the APG API suite of functions.

Definition in file apip.h.

Function Documentation

◆ vHtmlFooter()

void vHtmlFooter ( FILE *  spFile)

Prints an HTML footer to an open file.

Parameters
[out]spFile- pointer to an open file handle.
Returns
void

Definition at line 589 of file api.c.

◆ vHtmlHeader()

void vHtmlHeader ( FILE *  spFile,
const char *  cpTitle 
)

Prints an HTML header to an open file.

Parameters
[out]spFile- pointer to an open file handle.
cpTitle- the HTML page title. If NULL a default will be used.
Returns
void

Definition at line 565 of file api.c.

◆ vLineError()

void vLineError ( api spCtx,
aint  uiCharIndex,
const char *  cpSrc,
const char *  cpMsg 
)

Finds the grammar line associated with a character index and formats an error message to the error log.

Parameters
[in]spCtx- pointer to an API context previously returned from vpApiCtor().
uiCharIndexThe index of the character whose line number is desired.
cpSrcAn string idendifying the caller.
cpMsgThe error message.

Definition at line 383 of file input.c.

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