68 if (fullpath == NULL) {
74 if (comment_file == NULL) {
79#define comment_load(target, comment_file, comment_path) \
81 const char *comment; \
83 if ((comment = secfile_lookup_str(comment_file, comment_path))) { \
84 target = fc_strdup(comment); \
86 log_normal("Can't read %s from comments file", comment_path); \
93 comment_file,
"typedoc.buildings");
95 comment_file,
"typedoc.tech_classes");
103 comment_file,
"typedoc.resources");
109 comment_file,
"typedoc.citystyles");
111 comment_file,
"typedoc.musicstyles");
114 comment_file,
"typedoc.disasters");
116 comment_file,
"typedoc.achievements");
118 comment_file,
"typedoc.trade_settings");
122 comment_file,
"typedoc.specialists");
125 comment_file,
"typedoc.nationgroups");
127 comment_file,
"typedoc.nationsets");
131 "sectiondoc.nations_ruledit");
153 if (comment == NULL) {
#define log_normal(message,...)
#define log_error(message,...)
struct section_file * secfile_load(const char *filename, bool allow_duplicates)
void secfile_destroy(struct section_file *secfile)
void secfile_check_unused(const struct section_file *secfile)
struct section * secfile_insert_long_comment(struct section_file *secfile, const char *comment)
const char * fileinfoname(const struct strvec *dirs, const char *filename)
const struct strvec * get_data_dirs(void)