#include <stdlib.h>
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include "lcas_log.h"
#include "_lcas_db_read.h"
Include dependency graph for lcas_db_read.c:
Go to the source code of this file.
Defines | |
#define | MAXDBENTRIES 250 |
#define | MAXPAIRS 2 |
#define | WHITESPACE_CHARS " \t\n" |
#define | QUOTING_CHARS "\"" |
#define | ESCAPING_CHARS "\\" |
#define | COMMENT_CHARS "#" |
#define | PAIR_SEP_CHARS "," |
#define | VARVAL_SEP_CHARS "=" |
#define | PAIR_TERMINATOR_CHARS PAIR_SEP_CHARS WHITESPACE_CHARS |
#define | VARVAL_TERMINATOR_CHARS VARVAL_SEP_CHARS WHITESPACE_CHARS |
#define | NUL '\0' |
Functions | |
int | lcas_db_read_entries (FILE *) |
Read db entries from stream and fill a lsit of db entries. More... | |
int | lcas_db_parse_line (char *, lcas_db_entry_t **) |
Parses database line and fills database structure. More... | |
int | lcas_db_parse_pair (char *, char **, char **) |
Parses a database variable-value pair and returns the variable name and its value. More... | |
int | lcas_db_parse_string (char **) |
Takes a string and removes prepending and trailing spaces and quotes (unless escaped). More... | |
Variables | |
lcas_db_entry_t* | lcas_db_list = NULL |
Definition in file lcas_db_read.c.
|
For internal use only. Definition at line 37 of file lcas_db_read.c. |
|
For internal use only. Definition at line 36 of file lcas_db_read.c. |
|
maximum number of LCAS database entries For internal use only. Definition at line 30 of file lcas_db_read.c. |
|
maximum number of variable-value pairs that will be parsed per line For internal use only. Definition at line 31 of file lcas_db_read.c. |
|
For internal use only. Definition at line 60 of file lcas_db_read.c. |
|
Characters separating variable-value pairs in the lcas database file For internal use only. Definition at line 40 of file lcas_db_read.c. |
|
Characters that terminate pairs in the lcas database file. This is a combination of whitespace and separators. For internal use only. Definition at line 52 of file lcas_db_read.c. |
|
For internal use only. Definition at line 35 of file lcas_db_read.c. |
|
Characters separating variables from values For internal use only. Definition at line 42 of file lcas_db_read.c. |
|
Characters that terminate variables and values in the lcas database file. This is a combination of whitespace and separators. For internal use only. Definition at line 57 of file lcas_db_read.c. |
|
For internal use only. Definition at line 34 of file lcas_db_read.c. |
|
Parses database line and fills database structure.
Definition at line 241 of file lcas_db_read.c. Referenced by lcas_db_read_entries().
|
|
Parses a database variable-value pair and returns the variable name and its value.
Definition at line 374 of file lcas_db_read.c. Referenced by lcas_db_parse_line().
|
|
Takes a string and removes prepending and trailing spaces and quotes (unless escaped).
Definition at line 471 of file lcas_db_read.c. Referenced by lcas_db_parse_pair().
|
|
Read db entries from stream and fill a lsit of db entries.
Definition at line 123 of file lcas_db_read.c. Referenced by lcas_db_read().
|
|
list of database entries Definition at line 74 of file lcas_db_read.c. |