From 6cd12f63339dfdbe6cf7d097e81f537a0195a5c8 Mon Sep 17 00:00:00 2001 From: KikooDX Date: Fri, 29 Jan 2021 12:32:38 +0100 Subject: [PATCH] Add MIT license notice at the top of source files. --- README.md | 2 +- src/level.zig | 5 +++++ src/main.zig | 7 ++++++- src/movement.zig | 5 +++++ src/rect.zig | 5 +++++ src/vec2.zig | 5 +++++ 6 files changed, 27 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3217d01..afd34d7 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ $ zig build run Press escape to close the program. # License -Copyright (C) 2021 KikooDX +Copyright (c) 2021 KikooDX This project is under the MIT license. See LICENSE for more details. diff --git a/src/level.zig b/src/level.zig index b137b8d..e2f9bb2 100644 --- a/src/level.zig +++ b/src/level.zig @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2021 KikooDX +// This file is part of [KBLE](https://sr.ht/~kikoodx/kble), which is +// MIT licensed. The MIT license requires this copyright notice to be +// included in all copies and substantial portions of the software. //! Level structure, grid containing tile data. const ray = @cImport({ @cInclude("raylib.h"); diff --git a/src/main.zig b/src/main.zig index cc08b58..8e3083f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2021 KikooDX +// This file is part of [KBLE](https://sr.ht/~kikoodx/kble), which is +// MIT licensed. The MIT license requires this copyright notice to be +// included in all copies and substantial portions of the software. const ray = @cImport({ @cInclude("raylib.h"); }); @@ -74,7 +79,7 @@ pub fn main() !void { var selection_update: movement.SelectionUpdate = undefined; - // Zoom. TODO: move to functions. + // TODO: move to functions. switch (action) { // Movement. 'h' => selection_update = movement.move_left(&cursor, 1, true), diff --git a/src/movement.zig b/src/movement.zig index 9e15013..195b143 100644 --- a/src/movement.zig +++ b/src/movement.zig @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2021 KikooDX +// This file is part of [KBLE](https://sr.ht/~kikoodx/kble), which is +// MIT licensed. The MIT license requires this copyright notice to be +// included in all copies and substantial portions of the software. //! Movement functions. const std = @import("std"); const expect = std.testing.expect; diff --git a/src/rect.zig b/src/rect.zig index b93236b..9300fda 100644 --- a/src/rect.zig +++ b/src/rect.zig @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2021 KikooDX +// This file is part of [KBLE](https://sr.ht/~kikoodx/kble), which is +// MIT licensed. The MIT license requires this copyright notice to be +// included in all copies and substantial portions of the software. const std = @import("std"); const expect = std.testing.expect; diff --git a/src/vec2.zig b/src/vec2.zig index b1124da..470a097 100644 --- a/src/vec2.zig +++ b/src/vec2.zig @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: MIT +// Copyright (c) 2021 KikooDX +// This file is part of [KBLE](https://sr.ht/~kikoodx/kble), which is +// MIT licensed. The MIT license requires this copyright notice to be +// included in all copies and substantial portions of the software. //! This module provides functions for creating and manipulating 2D //! vectors with integer precision. const expect = @import("std").testing.expect;