refactor(headers): cleanup (#83)

This commit is contained in:
Xenxo Espasandín 2023-02-28 16:32:53 +01:00 committed by GitHub
parent 9155ce7c4b
commit 30efba5424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
46 changed files with 95 additions and 144 deletions

View File

@ -1,32 +0,0 @@
// Copyright 2023 xensik. All rights reserved.
//
// Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file.
#pragma once
#ifdef _WINDOWS_
#undef ERROR
#undef IN
#undef TRUE
#undef FALSE
#undef far
#endif
#include "../src/stdinc.hpp"
#ifdef XSK_GSC_IW5_PC
#include "../src/iw5/iw5_pc.hpp"
#endif
#ifdef XSK_GSC_IW6_PC
#include "../src/iw6/iw6_pc.hpp"
#endif
#ifdef XSK_GSC_S1_PC
#include "../src/s1/s1_pc.hpp"
#endif
#ifdef XSK_GSC_T6_PC
#include "../src/t6/t6.hpp"
#endif

View File

@ -131,7 +131,6 @@ project "xsk-tool"
} }
includedirs { includedirs {
"./src/tool",
"./src" "./src"
} }
@ -149,7 +148,6 @@ project "xsk-utils"
} }
includedirs { includedirs {
"./src/utils",
"./src" "./src"
} }
@ -167,7 +165,6 @@ project "xsk-gsc"
} }
includedirs { includedirs {
"./src/gsc",
"./src" "./src"
} }
@ -187,7 +184,6 @@ project "xsk-iw5_pc"
} }
includedirs { includedirs {
"./src/iw5",
"./src" "./src"
} }
@ -207,7 +203,6 @@ project "xsk-iw5_ps"
} }
includedirs { includedirs {
"./src/iw5",
"./src" "./src"
} }
@ -227,7 +222,6 @@ project "xsk-iw5_xb"
} }
includedirs { includedirs {
"./src/iw5",
"./src" "./src"
} }
@ -247,7 +241,6 @@ project "xsk-iw6_pc"
} }
includedirs { includedirs {
"./src/iw6",
"./src" "./src"
} }
@ -267,7 +260,6 @@ project "xsk-iw6_ps"
} }
includedirs { includedirs {
"./src/iw6",
"./src" "./src"
} }
@ -287,7 +279,6 @@ project "xsk-iw6_xb"
} }
includedirs { includedirs {
"./src/iw6",
"./src" "./src"
} }
@ -307,7 +298,6 @@ project "xsk-s1_pc"
} }
includedirs { includedirs {
"./src/s1",
"./src" "./src"
} }
@ -327,7 +317,6 @@ project "xsk-s1_ps"
} }
includedirs { includedirs {
"./src/s1",
"./src" "./src"
} }
@ -347,7 +336,6 @@ project "xsk-s1_xb"
} }
includedirs { includedirs {
"./src/s1",
"./src" "./src"
} }
@ -364,7 +352,6 @@ project "xsk-iw7"
} }
includedirs { includedirs {
"./src/iw7",
"./src" "./src"
} }
@ -381,7 +368,6 @@ project "xsk-iw8"
} }
includedirs { includedirs {
"./src/iw8",
"./src" "./src"
} }
@ -398,7 +384,6 @@ project "xsk-iw9"
} }
includedirs { includedirs {
"./src/iw9",
"./src" "./src"
} }
@ -415,7 +400,6 @@ project "xsk-h1"
} }
includedirs { includedirs {
"./src/h1",
"./src" "./src"
} }
@ -432,7 +416,6 @@ project "xsk-h2"
} }
includedirs { includedirs {
"./src/h2",
"./src" "./src"
} }
@ -449,7 +432,6 @@ project "xsk-s2"
} }
includedirs { includedirs {
"./src/s2",
"./src" "./src"
} }
@ -466,7 +448,6 @@ project "xsk-s4"
} }
includedirs { includedirs {
"./src/s4",
"./src" "./src"
} }
@ -483,7 +464,6 @@ project "xsk-t6"
} }
includedirs { includedirs {
"./src/t6",
"./src" "./src"
} }

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "assembler.hpp" #include "assembler.hpp"
#include "context.hpp" #include "context.hpp"

View File

@ -6,7 +6,7 @@
#pragma once #pragma once
#include "misc/types.hpp" #include "misc/types.hpp"
#include "utils/writer.hpp" #include <utils/writer.hpp>
namespace xsk::gsc namespace xsk::gsc
{ {

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "compiler.hpp" #include "compiler.hpp"
#include "context.hpp" #include "context.hpp"

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "context.hpp" #include "context.hpp"
namespace xsk::gsc namespace xsk::gsc

View File

@ -3,10 +3,10 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "decompiler.hpp" #include "decompiler.hpp"
#include "context.hpp" #include "context.hpp"
#include "utils/string.hpp" #include <utils/string.hpp>
namespace xsk::gsc namespace xsk::gsc
{ {

View File

@ -3,10 +3,10 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "disassembler.hpp" #include "disassembler.hpp"
#include "context.hpp" #include "context.hpp"
#include "utils/string.hpp" #include <utils/string.hpp>
namespace xsk::gsc namespace xsk::gsc
{ {

View File

@ -6,7 +6,7 @@
#pragma once #pragma once
#include "misc/types.hpp" #include "misc/types.hpp"
#include "utils/reader.hpp" #include <utils/reader.hpp>
namespace xsk::gsc namespace xsk::gsc
{ {

View File

@ -3,10 +3,10 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "lexer.hpp" #include "lexer.hpp"
#include "context.hpp" #include "context.hpp"
#include "utils/string.hpp" #include <utils/string.hpp>
namespace xsk::gsc namespace xsk::gsc
{ {

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "asset.hpp" #include "asset.hpp"
namespace xsk::gsc namespace xsk::gsc

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "location.hpp" #include "location.hpp"
#include "ast.hpp" #include "ast.hpp"

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "location.hpp" #include "location.hpp"
#include "exception.hpp" #include "exception.hpp"

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "location.hpp" #include "location.hpp"
namespace xsk::gsc namespace xsk::gsc

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "lookahead.hpp" #include "lookahead.hpp"
namespace xsk::gsc namespace xsk::gsc

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "scope.hpp" #include "scope.hpp"
namespace xsk::gsc namespace xsk::gsc

View File

@ -3,11 +3,11 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "location.hpp" #include "location.hpp"
#include "space.hpp" #include "space.hpp"
#include "token.hpp" #include "token.hpp"
#include "utils/string.hpp" #include <utils/string.hpp>
namespace xsk::gsc namespace xsk::gsc
{ {

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "preprocessor.hpp" #include "preprocessor.hpp"
#include "context.hpp" #include "context.hpp"
#include "parser.hpp" #include "parser.hpp"

View File

@ -3,12 +3,12 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "source.hpp" #include "source.hpp"
#include "context.hpp" #include "context.hpp"
#include "preprocessor.hpp" #include "preprocessor.hpp"
#include "parser.hpp" #include "parser.hpp"
#include "utils/string.hpp" #include <utils/string.hpp>
namespace xsk::gsc namespace xsk::gsc
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::h1 namespace xsk::gsc::h1
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::h2 namespace xsk::gsc::h2
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::iw5_pc namespace xsk::gsc::iw5_pc
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::iw5_ps namespace xsk::gsc::iw5_ps
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::iw5_xb namespace xsk::gsc::iw5_xb
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::iw6_pc namespace xsk::gsc::iw6_pc
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::iw6_ps namespace xsk::gsc::iw6_ps
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::iw6_xb namespace xsk::gsc::iw6_xb
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::iw7 namespace xsk::gsc::iw7
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::iw8 namespace xsk::gsc::iw8
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::iw9 namespace xsk::gsc::iw9
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::s1_pc namespace xsk::gsc::s1_pc
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::s1_ps namespace xsk::gsc::s1_ps
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::s1_xb namespace xsk::gsc::s1_xb
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::s2 namespace xsk::gsc::s2
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::s4 namespace xsk::gsc::s4
{ {

View File

@ -1,6 +0,0 @@
// Copyright 2023 xensik. All rights reserved.
//
// Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file.
#include "stdinc.hpp"

View File

@ -31,7 +31,15 @@
#include <format> #include <format>
namespace fmt = std; namespace fmt = std;
#else #else
#include "fmt/core.h" #include <fmt/core.h>
#endif
#ifdef _WINDOWS_
#undef ERROR
#undef IN
#undef TRUE
#undef FALSE
#undef far
#endif #endif
using namespace std::literals; using namespace std::literals;

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::t4 namespace xsk::gsc::t4
{ {

View File

@ -5,8 +5,8 @@
#pragma once #pragma once
#include "stdinc.hpp" #include <stdinc.hpp>
#include "gsc/context.hpp" #include <gsc/context.hpp>
namespace xsk::gsc::t5 namespace xsk::gsc::t5
{ {

View File

@ -5,6 +5,7 @@
#pragma once #pragma once
#include <stdinc.hpp>
#include "utils/string.hpp" #include "utils/string.hpp"
#include "utils/reader.hpp" #include "utils/reader.hpp"
#include "utils/writer.hpp" #include "utils/writer.hpp"

View File

@ -3,27 +3,27 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "utils/zlib.hpp" #include <utils/zlib.hpp>
#include "utils/file.hpp" #include <utils/file.hpp>
#include "utils/string.hpp" #include <utils/string.hpp>
#include "iw5/iw5_pc.hpp" #include <iw5/iw5_pc.hpp>
#include "iw5/iw5_ps.hpp" #include <iw5/iw5_ps.hpp>
#include "iw5/iw5_xb.hpp" #include <iw5/iw5_xb.hpp>
#include "iw6/iw6_pc.hpp" #include <iw6/iw6_pc.hpp>
#include "iw6/iw6_ps.hpp" #include <iw6/iw6_ps.hpp>
#include "iw6/iw6_xb.hpp" #include <iw6/iw6_xb.hpp>
#include "iw7/iw7.hpp" #include <iw7/iw7.hpp>
#include "iw8/iw8.hpp" #include <iw8/iw8.hpp>
#include "iw9/iw9.hpp" #include <iw9/iw9.hpp>
#include "s1/s1_pc.hpp" #include <s1/s1_pc.hpp>
#include "s1/s1_ps.hpp" #include <s1/s1_ps.hpp>
#include "s1/s1_xb.hpp" #include <s1/s1_xb.hpp>
#include "s2/s2.hpp" #include <s2/s2.hpp>
#include "s4/s4.hpp" #include <s4/s4.hpp>
#include "h1/h1.hpp" #include <h1/h1.hpp>
#include "h2/h2.hpp" #include <h2/h2.hpp>
#include "t6/t6.hpp" #include <t6/t6.hpp>
namespace fs = std::filesystem; namespace fs = std::filesystem;

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "file.hpp" #include "file.hpp"
namespace xsk::utils namespace xsk::utils

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "reader.hpp" #include "reader.hpp"
namespace xsk::utils namespace xsk::utils

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "string.hpp" #include "string.hpp"
namespace xsk::utils namespace xsk::utils

View File

@ -3,7 +3,7 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "writer.hpp" #include "writer.hpp"
namespace xsk::utils namespace xsk::utils

View File

@ -3,9 +3,9 @@
// Use of this source code is governed by a GNU GPLv3 license // Use of this source code is governed by a GNU GPLv3 license
// that can be found in the LICENSE file. // that can be found in the LICENSE file.
#include "stdinc.hpp" #include <stdinc.hpp>
#include "zlib.hpp" #include "zlib.hpp"
#include "zlib.h" #include <zlib.h>
namespace xsk::utils namespace xsk::utils
{ {