26#define MAX_LEN_ERRORBUF 1024
31#define DEBUG_ENTRIES(...)
47 const char *format, ...)
57 "In %s() [%s:%d]: secfile '%s' in section '%s': %s",
146 if (
'$' ==
tok[0] ||
'"' ==
tok[0]) {
148 bool escaped = (
'"' ==
tok[0]);
#define fc_assert_ret(condition)
void section_destroy(struct section *psection)
struct entry * section_entry_int_new(struct section *psection, const char *name, int value)
struct entry * section_entry_str_new(struct section *psection, const char *name, const char *value, bool escaped)
struct entry * section_entry_float_new(struct section *psection, const char *name, float value)
struct entry * section_entry_bool_new(struct section *psection, const char *name, bool value)
const char * secfile_name(const struct section_file *secfile)
void secfile_log(const struct section_file *secfile, const struct section *psection, const char *file, const char *function, int line, const char *format,...)
static char error_buffer[MAX_LEN_ERRORBUF]
void secfile_allow_digital_boolean(struct section_file *secfile, bool allow_digital_boolean)
struct section_file * secfile_new(bool allow_duplicates)
const char * secfile_error(void)
bool entry_from_token(struct section *psection, const char *name, const char *tok)
#define DEBUG_ENTRIES(...)
const char * section_name(const struct section *psection)
void secfile_destroy(struct section_file *secfile)
#define SECFILE_RETURN_IF_FAIL(secfile, psection, condition)
bool str_to_int(const char *str, int *pint)
bool str_to_float(const char *str, float *pfloat)
struct entry_hash * entries
struct section_file::@8 hash
struct section_list * sections
bool allow_digital_boolean
unsigned int num_includes
unsigned int num_long_comments
int fc_snprintf(char *str, size_t n, const char *format,...)
int fc_vsnprintf(char *str, size_t n, const char *format, va_list ap)
void remove_escapes(const char *str, bool full_escapes, char *buf, size_t buf_len)
int fc_strncasecmp(const char *str0, const char *str1, size_t n)