69 if (fullpath == NULL) {
75 if (comment_file == NULL) {
80#define comment_load(target, comment_file, comment_path) \
82 const char *comment; \
84 if ((comment = secfile_lookup_str(comment_file, comment_path))) { \
85 target = fc_strdup(comment); \
87 log_error(_("Can't read %s from comments file"), comment_path); \
94 comment_file,
"typedoc.buildings");
96 comment_file,
"typedoc.tech_classes");
104 comment_file,
"typedoc.resources");
110 comment_file,
"typedoc.citystyles");
112 comment_file,
"typedoc.musicstyles");
115 comment_file,
"typedoc.disasters");
117 comment_file,
"typedoc.achievements");
119 comment_file,
"typedoc.trade_settings");
123 comment_file,
"typedoc.specialists");
126 comment_file,
"typedoc.nationgroups");
128 comment_file,
"typedoc.nationsets");
132 "sectiondoc.nations_ruledit");
154 if (comment == NULL) {
#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)