From 0977f557b8d201123f52620c98685bb62915b7bb Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Mon, 17 Jun 2024 18:17:24 -0400 Subject: [PATCH] Rename Header --- launcher/src/options/parser.cpp | 2 +- libreborn/include/libreborn/{env_list.h => env-list.h} | 0 libreborn/include/libreborn/env.h | 2 +- libreborn/src/util/env.c | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) rename libreborn/include/libreborn/{env_list.h => env-list.h} (100%) diff --git a/launcher/src/options/parser.cpp b/launcher/src/options/parser.cpp index cadd8bcbf2..4ff12238c0 100644 --- a/launcher/src/options/parser.cpp +++ b/launcher/src/options/parser.cpp @@ -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 +#include #undef ENV {nullptr, 0, nullptr, 0, "Help Options:", -1}, {nullptr, 0, nullptr, 0, nullptr, 0} diff --git a/libreborn/include/libreborn/env_list.h b/libreborn/include/libreborn/env-list.h similarity index 100% rename from libreborn/include/libreborn/env_list.h rename to libreborn/include/libreborn/env-list.h diff --git a/libreborn/include/libreborn/env.h b/libreborn/include/libreborn/env.h index d23c34ab64..5a0c0bc156 100644 --- a/libreborn/include/libreborn/env.h +++ b/libreborn/include/libreborn/env.h @@ -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); diff --git a/libreborn/src/util/env.c b/libreborn/src/util/env.c index da0b114c2f..473dc08f59 100644 --- a/libreborn/src/util/env.c +++ b/libreborn/src/util/env.c @@ -3,7 +3,7 @@ // Define Constants #define ENV(name, ...) const char *name##_ENV = #name; -#include +#include #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 +#include #undef ENV } \ No newline at end of file