Hubbub $Id$
Typedefs
functypes.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <hubbub/types.h>

Go to the source code of this file.

Typedefs

typedef hubbub_error(* hubbub_token_handler) (const hubbub_token *token, void *pw)
 Type of token handling function. More...
 
typedef void(* hubbub_error_handler) (uint32_t line, uint32_t col, const char *message, void *pw)
 Type of parse error handling function. More...
 

Typedef Documentation

◆ hubbub_error_handler

typedef void(* hubbub_error_handler) (uint32_t line, uint32_t col, const char *message, void *pw)

Type of parse error handling function.

Parameters
lineSource line on which error occurred
colColumn in line of start of erroneous input
messageError message
pwPointer to client data

◆ hubbub_token_handler

typedef hubbub_error(* hubbub_token_handler) (const hubbub_token *token, void *pw)

Type of token handling function.

Parameters
tokenPointer to token to handle
pwPointer to client data
Returns
HUBBUB_OK on success, appropriate error otherwise.