13#ifndef FC__SECTION_FILE_H
14#define FC__SECTION_FILE_H
56 const char *format, ...)
59#define SECFILE_LOG(secfile, psection, format, ...) \
60 secfile_log(secfile, psection, __FILE__, __FUNCTION__, __FC_LINE__, \
61 format, ## __VA_ARGS__)
62#define SECFILE_RETURN_IF_FAIL(secfile, psection, condition) \
64 SECFILE_LOG(secfile, psection, "Assertion '%s' failed.", #condition); \
67#define SECFILE_RETURN_VAL_IF_FAIL(secfile, psection, condition, value) \
69 SECFILE_LOG(secfile, psection, "Assertion '%s' failed.", #condition); \
73#define SPECHASH_TAG section
74#define SPECHASH_CSTR_KEY_TYPE
75#define SPECHASH_IDATA_TYPE struct section *
78#define SPECHASH_TAG entry
79#define SPECHASH_ASTR_KEY_TYPE
80#define SPECHASH_IDATA_TYPE struct entry *
bool entry_from_token(struct section *psection, const char *name, const char *tok)
void secfile_log(const struct section_file *secfile, const struct section *psection, const char *file, const char *function, int line, const char *format,...) fc__attribute((__format__(__printf__
struct entry_hash * entries
struct section_file::@8 hash
struct section_list * sections
bool allow_digital_boolean
struct section_hash * sections
unsigned int num_includes
unsigned int num_long_comments
struct entry_list * entries
enum entry_special_type special
struct section_file * secfile