Rename Header

This commit is contained in:
TheBrokenRail 2024-06-17 18:17:24 -04:00
parent 3b5149abff
commit 0977f557b8
4 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ static argp_option options_data[] = {
#undef OPTION
{nullptr, 0, nullptr, 0, "Environmental Variables:", 0},
#define ENV(name, doc) {#name, env_key--, nullptr, OPTION_DOC | OPTION_NO_USAGE | (is_env_var_internal(name##_ENV) ? OPTION_HIDDEN : 0), doc, 0},
#include <libreborn/env_list.h>
#include <libreborn/env-list.h>
#undef ENV
{nullptr, 0, nullptr, 0, "Help Options:", -1},
{nullptr, 0, nullptr, 0, nullptr, 0}

View File

@ -5,7 +5,7 @@ extern "C" {
#endif
#define ENV(name, ...) extern const char *name##_ENV;
#include "env_list.h"
#include "env-list.h"
#undef ENV
int is_env_var_internal(const char *env);

View File

@ -3,7 +3,7 @@
// Define Constants
#define ENV(name, ...) const char *name##_ENV = #name;
#include <libreborn/env_list.h>
#include <libreborn/env-list.h>
#undef ENV
// Clear Internal Variables
@ -15,6 +15,6 @@ void clear_internal_env_vars() {
if (is_env_var_internal(name##_ENV)) { \
set_and_print_env(name##_ENV, NULL); \
}
#include <libreborn/env_list.h>
#include <libreborn/env-list.h>
#undef ENV
}