20#ifdef FREECIV_MSWINDOWS
65 _(
"Print a summary of the options"));
70 _(
"Raise a signal on failed assertion or broken data"));
78 _(
"output DIRECTORY"),
79 _(
"Create directory DIRECTORY for output"));
81 _(
"Clean up the ruleset before saving it."));
94 _(
"Multiple rulesets requested. Only one ruleset at time supported.\n"));
101 _(
"Multiple output directories given.\n"));
105#ifndef FREECIV_NDEBUG
147#ifdef FREECIV_MSWINDOWS
148# ifndef FREECIV_NDEBUG
151 fprintf(
stderr,
"exchndl.dll could not be loaded, no crash debugger\n");
215 log_normal(
"Purged %d unused entities after the ruleset upgrade",
221 log_normal(
"Purged %d redundant requirements after the ruleset"
void cmdhelp_destroy(struct cmdhelp *pcmdhelp)
void cmdhelp_display(struct cmdhelp *pcmdhelp, bool sort, bool gui_options, bool report_bugs)
struct cmdhelp * cmdhelp_new(const char *cmdname)
void cmdhelp_add(struct cmdhelp *pcmdhelp, const char *shortarg, const char *longarg, const char *helpstr,...)
bool is_option(const char *option_name, char *option)
char * get_option_malloc(const char *option_name, char **argv, int *i, int argc, bool gc)
void cmdline_option_values_free(void)
void libfreeciv_free(void)
static void i_am_tool(void)
static char void init_character_encodings(const char *my_internal_encoding, bool my_use_transliteration)
#define FC_DEFAULT_DATA_ENCODING
void fc_fprintf(FILE *stream, const char *format,...) fc__attribute((__format__(__printf__
void game_init(bool keep_ruleset_value)
#define GAME_DEFAULT_RULESETDIR
void log_init(const char *filename, enum log_level initial_level, log_callback_fn callback, log_prefix_fn prefix, int fatal_assertions)
#define log_normal(message,...)
#define log_error(message,...)
void registry_module_init(void)
void registry_module_close(void)
int ruleset_purge_unused_entities(void)
bool load_rulesets(const char *restore, const char *alt, bool compat_mode, rs_conversion_logger logger, bool act, bool buffer_script, bool load_luadata)
int ruleset_purge_redundant_reqs(void)
bool save_ruleset(const char *path, const char *name, struct rule_data *data)
int main(int argc, char **argv)
static char * od_selected
static void rup_parse_cmdline(int argc, char *argv[])
static void conv_log(const char *msg)
static int fatal_assertions
static char * rs_selected
void init_connections(void)
void settings_init(bool act)
bool str_to_int(const char *str, int *pint)
struct civ_game::@32::@36::@42 ruledit
struct packet_ruleset_control control
struct packet_game_info info
char rulesetdir[MAX_LEN_NAME]
struct civ_game::@32::@36 server
int fc_snprintf(char *str, size_t n, const char *format,...)
size_t fc_strlcpy(char *dest, const char *src, size_t n)
#define sz_strlcpy(dest, src)