return "included from here";
}
-#ifndef DEFAULT_CONFIG
-#define DEFAULT_CONFIG NULL
+#ifndef CONFIG_UCW_DEFAULT_CONFIG
+#define CONFIG_UCW_DEFAULT_CONFIG NULL
#endif
-char *cf_def_file = DEFAULT_CONFIG;
+char *cf_def_file = CONFIG_UCW_DEFAULT_CONFIG;
static int cf_def_loaded;
-#ifndef ENV_VAR_CONFIG
-#define ENV_VAR_CONFIG NULL
+#ifndef CONFIG_UCW_ENV_VAR_CONFIG
+#define CONFIG_UCW_ENV_VAR_CONFIG NULL
#endif
-char *cf_env_file = ENV_VAR_CONFIG;
+char *cf_env_file = CONFIG_UCW_ENV_VAR_CONFIG;
static uns postpone_commit; // only for cf_getopt()
static uns everything_committed; // after the 1st load, this flag is set on
Set("CONFIG_UCW_UTILS" => 1);
# Default configuration file
-UnSet("DEFAULT_CONFIG");
+UnSet("CONFIG_UCW_DEFAULT_CONFIG");
# Environment variable with configuration file
-UnSet("ENV_VAR_CONFIG");
+UnSet("CONFIG_UCW_ENV_VAR_CONFIG");
# Allow use of direct IO on files
Set("CONFIG_DIRECT_IO");
*/
/**
- * The default config (DEFAULT_CONFIG config option) or NULL if already loaded.
+ * The default config (as set by `CONFIG_UCW_DEFAULT_CONFIG`) or NULL if already loaded.
* You can set it to something else manually.
*/
extern char *cf_def_file;
/**
- * Name of environment variable that can override what configuration
- * is loaded.
+ * Name of environment variable that can override what configuration is loaded.
+ * Defaults to `CONFIG_UCW_ENV_VAR_CONFIG`.
**/
extern char *cf_env_file;
int cf_reload(const char *file); /** Reload configuration from @file, replace the old one. **/