From f9cc4f123e224b28ac2d879ab92cf60f1df351e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matteo=20Gm=C3=BCr?= Date: Mon, 21 Oct 2024 14:52:03 +0000 Subject: Use enum struct instead of class for uniformity --- arch/x86_64/include/arch/memory/multiboot/elf_symbols_section.hpp | 2 +- arch/x86_64/include/arch/memory/multiboot/info.hpp | 2 +- arch/x86_64/include/arch/memory/multiboot/memory_map.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'arch/x86_64') diff --git a/arch/x86_64/include/arch/memory/multiboot/elf_symbols_section.hpp b/arch/x86_64/include/arch/memory/multiboot/elf_symbols_section.hpp index 88d211e..72767a8 100644 --- a/arch/x86_64/include/arch/memory/multiboot/elf_symbols_section.hpp +++ b/arch/x86_64/include/arch/memory/multiboot/elf_symbols_section.hpp @@ -11,7 +11,7 @@ namespace teachos::arch::memory::multiboot * @brief Defines all elf section types an elf section header can have. See * https://docs.oracle.com/cd/E19683-01/816-1386/chapter6-94076/index.html for more information. */ - enum class elf_section_type : uint32_t + enum struct elf_section_type : uint32_t { INACTIVE, ///< (SHT_NULL) Unused, meaning all values are zeroed out PROGRAMM, ///< (SHT_PROGBITS) Program data (DATA, CODE) diff --git a/arch/x86_64/include/arch/memory/multiboot/info.hpp b/arch/x86_64/include/arch/memory/multiboot/info.hpp index ca87834..a0f095f 100644 --- a/arch/x86_64/include/arch/memory/multiboot/info.hpp +++ b/arch/x86_64/include/arch/memory/multiboot/info.hpp @@ -12,7 +12,7 @@ namespace teachos::arch::memory::multiboot * tag headers and see https://github.com/rhboot/grub2/blob/fedora-39/include/multiboot.h for more information on the * actual header contents and their following data. */ - enum class tag_type : uint32_t + enum struct tag_type : uint32_t { END, ///< Signals final tag for the multiboot2 information structure CMDLINE, ///< Contains the command line string diff --git a/arch/x86_64/include/arch/memory/multiboot/memory_map.hpp b/arch/x86_64/include/arch/memory/multiboot/memory_map.hpp index 4dc11cf..ecf3975 100644 --- a/arch/x86_64/include/arch/memory/multiboot/memory_map.hpp +++ b/arch/x86_64/include/arch/memory/multiboot/memory_map.hpp @@ -9,7 +9,7 @@ namespace teachos::arch::memory::multiboot /** * @brief Defines all memory area types possible that the memory region can be in. */ - enum class memory_area_type : uint32_t + enum struct memory_area_type : uint32_t { AVAILABLE = 1, ///< Region is available for use by the OS RESERVED, ///< Region is reserved by firmware or bootloader and should not be used by OS -- cgit v1.2.3