Use consistent RGBDS_<PROG>_<NAME>_HPP header guard convention

This commit is contained in:
Rangi42
2024-04-14 21:43:06 -04:00
parent a234da42a6
commit b8387427a6
32 changed files with 102 additions and 100 deletions

View File

@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: MIT */
#ifndef RGBDS_LINK_ASSIGN_H
#define RGBDS_LINK_ASSIGN_H
#ifndef RGBDS_LINK_ASSIGN_HPP
#define RGBDS_LINK_ASSIGN_HPP
#include <stdint.h>
@@ -10,4 +10,4 @@ extern uint64_t nbSectionsToAssign;
// Assigns all sections a slice of the address space
void assign_AssignSections();
#endif // RGBDS_LINK_ASSIGN_H
#endif // RGBDS_LINK_ASSIGN_HPP

View File

@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: MIT */
#ifndef RGBDS_LINK_MAIN_H
#define RGBDS_LINK_MAIN_H
#ifndef RGBDS_LINK_MAIN_HPP
#define RGBDS_LINK_MAIN_HPP
#include <stdint.h>
#include <stdio.h>
@@ -65,4 +65,4 @@ struct FileStackNode {
[[gnu::format(printf, 3, 4), noreturn]] void
fatal(FileStackNode const *where, uint32_t lineNo, char const *fmt, ...);
#endif // RGBDS_LINK_MAIN_H
#endif // RGBDS_LINK_MAIN_HPP

View File

@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: MIT */
#ifndef RGBDS_LINK_OBJECT_H
#define RGBDS_LINK_OBJECT_H
#ifndef RGBDS_LINK_OBJECT_HPP
#define RGBDS_LINK_OBJECT_HPP
/*
* Read an object (.o) file, and add its info to the data structures.
@@ -16,4 +16,4 @@ void obj_ReadFile(char const *fileName, unsigned int i);
*/
void obj_Setup(unsigned int nbFiles);
#endif // RGBDS_LINK_OBJECT_H
#endif // RGBDS_LINK_OBJECT_HPP

View File

@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: MIT */
#ifndef RGBDS_LINK_OUTPUT_H
#define RGBDS_LINK_OUTPUT_H
#ifndef RGBDS_LINK_OUTPUT_HPP
#define RGBDS_LINK_OUTPUT_HPP
#include "link/section.hpp"
@@ -23,4 +23,4 @@ Section const *out_OverlappingSection(Section const &section);
*/
void out_WriteFiles();
#endif // RGBDS_LINK_OUTPUT_H
#endif // RGBDS_LINK_OUTPUT_HPP

View File

@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: MIT */
#ifndef RGBDS_LINK_PATCH_H
#define RGBDS_LINK_PATCH_H
#ifndef RGBDS_LINK_PATCH_HPP
#define RGBDS_LINK_PATCH_HPP
/*
* Checks all assertions
@@ -14,4 +14,4 @@ void patch_CheckAssertions();
*/
void patch_ApplyPatches();
#endif // RGBDS_LINK_PATCH_H
#endif // RGBDS_LINK_PATCH_HPP

View File

@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: MIT */
#ifndef RGBDS_LINK_SDAS_OBJ_H
#define RGBDS_LINK_SDAS_OBJ_H
#ifndef RGBDS_LINK_SDAS_OBJ_HPP
#define RGBDS_LINK_SDAS_OBJ_HPP
#include <stdio.h>
#include <vector>
@@ -11,4 +11,4 @@ struct Symbol;
void sdobj_ReadFile(FileStackNode const &where, FILE *file, std::vector<Symbol> &fileSymbols);
#endif // RGBDS_LINK_SDAS_OBJ_H
#endif // RGBDS_LINK_SDAS_OBJ_HPP

View File

@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: MIT */
#ifndef RGBDS_LINK_SECTION_H
#define RGBDS_LINK_SECTION_H
#ifndef RGBDS_LINK_SECTION_HPP
#define RGBDS_LINK_SECTION_HPP
// GUIDELINE: external code MUST NOT BE AWARE of the data structure used!
@@ -88,4 +88,4 @@ Section *sect_GetSection(std::string const &name);
*/
void sect_DoSanityChecks();
#endif // RGBDS_LINK_SECTION_H
#endif // RGBDS_LINK_SECTION_HPP

View File

@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: MIT */
#ifndef RGBDS_LINK_SYMBOL_H
#define RGBDS_LINK_SYMBOL_H
#ifndef RGBDS_LINK_SYMBOL_HPP
#define RGBDS_LINK_SYMBOL_HPP
// GUIDELINE: external code MUST NOT BE AWARE of the data structure used!
@@ -47,4 +47,4 @@ void sym_AddSymbol(Symbol &symbol);
*/
Symbol *sym_GetSymbol(std::string const &name);
#endif // RGBDS_LINK_SYMBOL_H
#endif // RGBDS_LINK_SYMBOL_HPP