diff --git a/.clang-format b/.clang-format index 175ffb2..dedc805 100644 --- a/.clang-format +++ b/.clang-format @@ -1,3 +1,6 @@ +# Copyright (c) 2025 Quinn +# Licensed under the MIT Licence. See LICENSE for details +# --- # --------------------------- # general style settings diff --git a/src/dat/mcx.c b/src/dat/mcx.c index 6a60fec..242f5af 100644 --- a/src/dat/mcx.c +++ b/src/dat/mcx.c @@ -1,3 +1,5 @@ +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #include "mcx.h" #include diff --git a/src/dat/mcx.h b/src/dat/mcx.h index 943cb11..c4d94eb 100644 --- a/src/dat/mcx.h +++ b/src/dat/mcx.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #include diff --git a/src/dat/nbt.c b/src/dat/nbt.c index 31388ea..6a449e8 100644 --- a/src/dat/nbt.c +++ b/src/dat/nbt.c @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #include "nbt.h" #include diff --git a/src/dat/nbt.h b/src/dat/nbt.h index 6610add..d7ab6ed 100644 --- a/src/dat/nbt.h +++ b/src/dat/nbt.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #include diff --git a/src/error.h b/src/error.h index c67de3b..e90d455 100644 --- a/src/error.h +++ b/src/error.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #if __INCLUDE_LEVEL__ > 0 diff --git a/src/io/input.c b/src/io/input.c index 08aa6b4..6415d35 100644 --- a/src/io/input.c +++ b/src/io/input.c @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #include "input.h" #include diff --git a/src/io/input.h b/src/io/input.h index 8589b34..b6ab95f 100644 --- a/src/io/input.h +++ b/src/io/input.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #include diff --git a/src/io/render.c b/src/io/render.c index 9caf13f..42e04ab 100644 --- a/src/io/render.c +++ b/src/io/render.c @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #include "render.h" #include diff --git a/src/io/render.h b/src/io/render.h index f866ecd..3245a2b 100644 --- a/src/io/render.h +++ b/src/io/render.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #include diff --git a/src/io/render/mapcolour.c b/src/io/render/mapcolour.c index cd5f919..96d4d00 100644 --- a/src/io/render/mapcolour.c +++ b/src/io/render/mapcolour.c @@ -1,3 +1,5 @@ +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #include "mapcolour.h" #include "../../util/vec.h" diff --git a/src/io/render/mapcolour.h b/src/io/render/mapcolour.h index 9bc562b..75aff0a 100644 --- a/src/io/render/mapcolour.h +++ b/src/io/render/mapcolour.h @@ -1,3 +1,5 @@ +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #include "../../util/vec.h" diff --git a/src/io/shader.c b/src/io/shader.c index 52704ec..8f02c39 100644 --- a/src/io/shader.c +++ b/src/io/shader.c @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #include "shader.h" #include diff --git a/src/io/shader.h b/src/io/shader.h index f55f42c..8aae8ab 100644 --- a/src/io/shader.h +++ b/src/io/shader.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #include diff --git a/src/io/window.c b/src/io/window.c index e0fe7c2..a4b0be4 100644 --- a/src/io/window.c +++ b/src/io/window.c @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #include "window.h" #include diff --git a/src/io/window.h b/src/io/window.h index afa33d8..12ca51b 100644 --- a/src/io/window.h +++ b/src/io/window.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once int window_init(void); // initializes the global window, returns non-zero upon failure diff --git a/src/main.c b/src/main.c index 85fcdcc..5d9a87f 100644 --- a/src/main.c +++ b/src/main.c @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #define GLAD_GL_IMPLEMENTATION #include #undef GLAD_GL_IMPLEMENTATION diff --git a/src/util/atrb.h b/src/util/atrb.h index 2fa33a5..21cc56b 100644 --- a/src/util/atrb.h +++ b/src/util/atrb.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #if defined(__GNUC__) diff --git a/src/util/colour32.h b/src/util/colour32.h index 1c22fe3..10f64c9 100644 --- a/src/util/colour32.h +++ b/src/util/colour32.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #include diff --git a/src/util/compat/endian.h b/src/util/compat/endian.h index c0cdc65..e113efb 100644 --- a/src/util/compat/endian.h +++ b/src/util/compat/endian.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #if __has_include() diff --git a/src/util/compat/io.h b/src/util/compat/io.h index 53b9a29..86080d7 100644 --- a/src/util/compat/io.h +++ b/src/util/compat/io.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #if defined __unix__ diff --git a/src/util/compat/os.h b/src/util/compat/os.h index 860cbb2..8af6976 100644 --- a/src/util/compat/os.h +++ b/src/util/compat/os.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #if defined(__unix__) diff --git a/src/util/conf.c b/src/util/conf.c index 6589e0d..5458c07 100644 --- a/src/util/conf.c +++ b/src/util/conf.c @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #include "conf.h" #include diff --git a/src/util/conf.h b/src/util/conf.h index e7b49d3..79cc7a5 100644 --- a/src/util/conf.h +++ b/src/util/conf.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #include diff --git a/src/util/intdef.h b/src/util/intdef.h index 0f536d2..bd65eab 100644 --- a/src/util/intdef.h +++ b/src/util/intdef.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once /* variable-width integer types */ diff --git a/src/util/macro.h b/src/util/macro.h index cdb271b..e368de3 100644 --- a/src/util/macro.h +++ b/src/util/macro.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #define WIDTHOF(t) (sizeof(t) * 8) // gets the bit width of a type diff --git a/src/util/util.h b/src/util/util.h index 65ecf94..266f8b8 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -1,3 +1,5 @@ +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once /* Acquires the next power of two of value `x`. diff --git a/src/util/vec.h b/src/util/vec.h index e3573d2..6c38bd8 100644 --- a/src/util/vec.h +++ b/src/util/vec.h @@ -1,3 +1,5 @@ +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #include "intdef.h" diff --git a/test/dat.h b/test/dat.h index f4d297b..ec9427a 100644 --- a/test/dat.h +++ b/test/dat.h @@ -1,3 +1,5 @@ +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #include #include "../src/util/conf.h" diff --git a/test/main.c b/test/main.c index 7956fee..2a3e5b0 100644 --- a/test/main.c +++ b/test/main.c @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #define GLAD_GL_IMPLEMENTATION #include #undef GLAD_GL_IMPLEMENTATION diff --git a/test/t_arith.h b/test/t_arith.h index 2f88c7c..ee526fc 100644 --- a/test/t_arith.h +++ b/test/t_arith.h @@ -1,3 +1,5 @@ +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #include "test.h" diff --git a/test/t_conf.h b/test/t_conf.h index 29ac2ee..58f5aa5 100644 --- a/test/t_conf.h +++ b/test/t_conf.h @@ -1,3 +1,5 @@ +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #include #include diff --git a/test/test.h b/test/test.h index a7f7c88..731a1ca 100644 --- a/test/test.h +++ b/test/test.h @@ -1,5 +1,5 @@ -// Copyright (c) 2025 Quinn -// Licensed under the MIT Licence. See LICENSE for details +/* Copyright (c) 2025 Quinn + * Licensed under the MIT Licence. See LICENSE for details */ #pragma once #include