From c1580fd8f8b06efef471578e2ba66a4efb7745c8 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Mon, 24 May 2021 21:05:16 +0200 Subject: Add copyright notice to all files --- src/bitmap.h | 11 +++++++++++ src/common.h | 10 +++++----- src/filesystem.c | 11 +++++++++++ src/main.c | 22 +++++++++++----------- src/shorthand.h | 11 +++++++++++ src/sprites.h | 10 +++++----- src/text.h | 11 +++++++++++ 7 files changed, 65 insertions(+), 21 deletions(-) diff --git a/src/bitmap.h b/src/bitmap.h index 2e61f0e..48c8442 100644 --- a/src/bitmap.h +++ b/src/bitmap.h @@ -1,3 +1,14 @@ +/* +Copyright (c) 2021 Bad Diode + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE. +*/ + #ifndef GBAEXP_BITMAP_H #define GBAEXP_BITMAP_H diff --git a/src/common.h b/src/common.h index bfa3903..5766565 100644 --- a/src/common.h +++ b/src/common.h @@ -1,8 +1,3 @@ -#ifndef GBAEXP_COMMON_H -#define GBAEXP_COMMON_H - -#include "shorthand.h" - /* Copyright (c) 2021 Bad Diode @@ -14,6 +9,11 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE. */ +#ifndef GBAEXP_COMMON_H +#define GBAEXP_COMMON_H + +#include "shorthand.h" + // // Memory sections. // diff --git a/src/filesystem.c b/src/filesystem.c index ee55dcf..b60dbde 100644 --- a/src/filesystem.c +++ b/src/filesystem.c @@ -1,3 +1,14 @@ +/* +Copyright (c) 2021 Bad Diode + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE. +*/ + // This file implements a filesystem with a minimum block size of 256 bytes. The // maximum number of files depends on the block size. The default 1KB block size // will give us 32-64 files depending on the size of MEM_CART. In case we want diff --git a/src/main.c b/src/main.c index ea8d459..7764278 100644 --- a/src/main.c +++ b/src/main.c @@ -1,3 +1,14 @@ +/* +Copyright (c) 2021 Bad Diode + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE. +*/ + #include #include "common.h" @@ -12,17 +23,6 @@ #include "text.h" -/* -Copyright (c) 2021 Bad Diode - -Permission to use, copy, modify, and distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE. -*/ - // // Config parameters. // diff --git a/src/shorthand.h b/src/shorthand.h index 42eb935..08cc7fe 100644 --- a/src/shorthand.h +++ b/src/shorthand.h @@ -1,3 +1,14 @@ +/* +Copyright (c) 2021 Bad Diode + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE. +*/ + #ifndef UTILS_SHORTHAND_H #define UTILS_SHORTHAND_H diff --git a/src/sprites.h b/src/sprites.h index c5eb57c..6c15387 100644 --- a/src/sprites.h +++ b/src/sprites.h @@ -1,8 +1,3 @@ -#ifndef GBAEXP_SPRITES_H -#define GBAEXP_SPRITES_H - -#include "common.h" - /* Copyright (c) 2021 Bad Diode @@ -14,6 +9,11 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE. */ +#ifndef GBAEXP_SPRITES_H +#define GBAEXP_SPRITES_H + +#include "common.h" + typedef struct Sprite { // A unique sprite identifier. size_t id; diff --git a/src/text.h b/src/text.h index 59ab9af..9c06f02 100644 --- a/src/text.h +++ b/src/text.h @@ -1,3 +1,14 @@ +/* +Copyright (c) 2021 Bad Diode + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE. +*/ + #ifndef GBAEXP_TILES_H #define GBAEXP_TILES_H -- cgit v1.2.1