libt3config
Data Fields
t3_config_error_t Struct Reference

A structure representing an error, with line number. More...

Data Fields

int error
 An integer indicating what went wrong. More...
 
char * extra
 Further information about the error or NULL, but only if T3_CONFIG_VERBOSE_ERROR was set. More...
 
char * file_name
 File in which the error occured. More...
 
int line_number
 The line number where the error occured. More...
 

Detailed Description

A structure representing an error, with line number.

Used by t3_config_read_file and t3_config_read_buffer. If error equals T3_ERR_PARSE_ERROR, line_number will be set to the line on which the error was encountered.

Field Documentation

◆ error

int t3_config_error_t::error

An integer indicating what went wrong.

◆ extra

char* t3_config_error_t::extra

Further information about the error or NULL, but only if T3_CONFIG_VERBOSE_ERROR was set.

Must be free'd.

◆ file_name

char* t3_config_error_t::file_name

File in which the error occured.

Must be free'd.

◆ line_number

int t3_config_error_t::line_number

The line number where the error occured.