18#ifdef FREECIV_HAVE_XML_REGISTRY
20#include <libxml/parser.h>
47 log_error(
_(
"XML-file has no root node <Freeciv>"));
55 log_error(
_(
"XML-file has no capabilities defined!"));
61 log_error(
_(
"XML-file has incompatible capabilities."));
72 secfile->
name =
nullptr;
77 while (current !=
nullptr) {
99 if (
buf[0] ==
'"' &&
buf[
len - 1] ==
'"') {
105 log_error(
"Cannot parse token \"%s\"", content);
119 current = current->next;
bool has_capabilities(const char *us, const char *them)
#define log_normal(message,...)
#define log_error(message,...)
struct section_file * secfile_new(bool allow_duplicates)
void secfile_destroy(struct section_file *secfile)
struct section * secfile_section_new(struct section_file *secfile, const char *name)
bool entry_from_token(struct section *psection, const char *name, const char *tok)
struct section_file * secfile
int fc_strcasecmp(const char *str0, const char *str1)