File config_parser.c


Included Files


Preprocessor definitions

#define CFG_LEN_BUFFER 256

#define LINE_EOF -1

#define LINE_COMMENT 0

#define LINE_ASSIGNMENT 1

#define LINE_STARTBLOCK 2

#define LINE_ENDBLOCK 3

#define LINE_INVALID 4


Local Variables

line_buffer
static char line_buffer[256]
Used in: config_parser_parse_line()  

Global Function config_parser_read()

int config_parser_read ( const char* filename, void (*f_start_block)(const char*,const char*), void (*f_end_block)(void), void (*f_set_attr)(const char*,const char*) )
Prototyped in: config_parser.h
Calls: config_parser_parse_line() config_parser.c
  fclose(), fopen()
Called by: setup_read_config() setup.c

Local Function config_parser_parse_line()

static int config_parser_parse_line ( FILE* f, char** arg1, char** arg2 )
Prototyped in: config_parser.c
Calls: string_util_fast_trim() string_util.c
  string_util_trim() string_util.c
  __ctype_b_loc(), fgets(), strchr(), strlen(), strpbrk()
Called by: config_parser_read() config_parser.c
References Variables: line_buffer config_parser.c