mirror of
https://github.com/thepigeongenerator/mcaselector-lite
synced 2026-02-07 23:28:09 +01:00
Update files' copyright headers (final time, promice)
This should be the end of the identity crisis with files' copyright headers/disclosures. We shall not be using names in the headers, since this does not make sense, this is covered by the git logs, and is preferred. The following commit will tackle the CONTRIBUTORS file, to specify how it should be generated.
This commit is contained in:
@@ -1,9 +1,3 @@
|
|||||||
# This file is part of MCA-Selector-lite,
|
|
||||||
# and is licensed under GPL-2.0-only.
|
|
||||||
# Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
|
||||||
# For further information, view COPYING and CONTRIBUTORS
|
|
||||||
# at: www.github.com/thepigeongenerator/mcaselector-lite
|
|
||||||
#
|
|
||||||
---
|
---
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
# general style settings
|
# general style settings
|
||||||
|
|||||||
@@ -1,9 +1,3 @@
|
|||||||
# This file is part of MCA-Selector-lite,
|
|
||||||
# and is licensed under GPL-2.0-only.
|
|
||||||
# Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
|
||||||
# For further information, view COPYING and CONTRIBUTORS
|
|
||||||
# at: www.github.com/thepigeongenerator/mcaselector-lite
|
|
||||||
|
|
||||||
[*]
|
[*]
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
|
|||||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,9 +1,3 @@
|
|||||||
# This file is part of MCA-Selector-lite,
|
|
||||||
# and is licensed under GPL-2.0-only.
|
|
||||||
# Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
|
||||||
# For further information, view COPYING and CONTRIBUTORS
|
|
||||||
# at: www.github.com/thepigeongenerator/mcaselector-lite
|
|
||||||
|
|
||||||
# ignore all dotfiles by default
|
# ignore all dotfiles by default
|
||||||
.*
|
.*
|
||||||
|
|
||||||
|
|||||||
35
Makefile
35
Makefile
@@ -1,8 +1,7 @@
|
|||||||
# This file is part of MCA-Selector-lite,
|
# Copyright (C)2026 MCA-Selector-Lite
|
||||||
# and is licensed under GPL-2.0-only.
|
# Licensed under GPL-2.0-only. For further information,
|
||||||
# Copyright (C)2026 quinnthepigeon@proton.me Quinn
|
# view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
# For further information, view COPYING and CONTRIBUTORS
|
# at www.github.com/thepigeongenerator/mcaselector-lite.
|
||||||
# at: www.github.com/thepigeongenerator/mcaselector-lite
|
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
|
||||||
@@ -37,12 +36,7 @@ LDFLAGS += $(shell pkg-config --libs-only-L libarchive)
|
|||||||
LDLIBS += $(shell pkg-config --libs-only-l libarchive)
|
LDLIBS += $(shell pkg-config --libs-only-l libarchive)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
msg-cc = $(info [CC] $(1))
|
msg = @printf '%-8s %s\n' "$(1)" "$(2)"
|
||||||
msg-clean = $(info [CLEAN] $(1))
|
|
||||||
msg-ld = $(info [LD] $(1))
|
|
||||||
msg-mkdir = $(info [MKDIR] $(1))
|
|
||||||
msg-tar = $(info [TAR] $(1))
|
|
||||||
msg-xxd = $(info [XXD] $(1))
|
|
||||||
|
|
||||||
# Set Q to @ to silence commands being printed, unless --no-silent has been set
|
# Set Q to @ to silence commands being printed, unless --no-silent has been set
|
||||||
ifeq (0, $(words $(findstring --no-silent,$(MAKEFLAGS))))
|
ifeq (0, $(words $(findstring --no-silent,$(MAKEFLAGS))))
|
||||||
@@ -54,8 +48,7 @@ endif
|
|||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
NAME := $(NAME).exe
|
NAME := $(NAME).exe
|
||||||
# BUG: I am purposefully neglecting this
|
# BUG: I am purposefully neglecting this
|
||||||
LDLIBS += -lopengl32 -lgdi32
|
LDLIBS += -lopengl32 -lgdi32 $(warning Detected Windows_NT, please refer to the documentation if you encounter issues.)
|
||||||
$(warning Detected Windows_NT, please refer to the documentation if you encounter issues.)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Default target; compiles everything.
|
# Default target; compiles everything.
|
||||||
@@ -78,9 +71,11 @@ uninstall:
|
|||||||
|
|
||||||
.PHONY:
|
.PHONY:
|
||||||
check-sparse: $(SRC)
|
check-sparse: $(SRC)
|
||||||
$(foreach f,$(SRC),\
|
-$(Q)$(SPARSE) $(CFLAGS) $(CPPFLAGS) $(SRC)
|
||||||
-$(Q)$(SPARSE) $(CFLAGS) $(CPPFLAGS) $f\
|
|
||||||
)
|
.PHONY:
|
||||||
|
check-gcc: $(SRC)
|
||||||
|
-$(Q)$(CC) -fanalyzer $(CFLAGS) $(CPPFLAGS) $(SRC)
|
||||||
|
|
||||||
.PHONY:
|
.PHONY:
|
||||||
clean:
|
clean:
|
||||||
@@ -89,19 +84,19 @@ clean:
|
|||||||
|
|
||||||
# Links together the object files into the final binary.
|
# Links together the object files into the final binary.
|
||||||
bin/$(NAME): $(OBJ) | bin/
|
bin/$(NAME): $(OBJ) | bin/
|
||||||
$(Q)$(call msg-ld,$@)
|
$(Q)$(call msg,LD,$@)
|
||||||
$(Q)$(CC) $(LDFLAGS) $(LDLIBS) -o $@ $^
|
$(Q)$(CC) $(LDFLAGS) $(LDLIBS) -o $@ $^
|
||||||
bin/stripped_$(NAME): $(OBJ) | bin/
|
bin/stripped_$(NAME): $(OBJ) | bin/
|
||||||
$(Q)$(call msg-ld,$@)
|
$(Q)$(call msg,LD,$@)
|
||||||
$(Q)$(CC) -s $(LDFLAGS) $(LDLIBS) -o $@ $^
|
$(Q)$(CC) -s $(LDFLAGS) $(LDLIBS) -o $@ $^
|
||||||
|
|
||||||
# Compiles C sources into object files
|
# Compiles C sources into object files
|
||||||
%.c.o: %.c
|
%.c.o: %.c
|
||||||
$(Q)$(call msg-cc,$@)
|
$(Q)$(call msg,CC,$@)
|
||||||
$(Q)$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
|
$(Q)$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
%/:
|
%/:
|
||||||
$(Q)$(call msg-mkdir,$@)
|
$(Q)$(call msg,MKDIR,$@)
|
||||||
$(Q)mkdir $@
|
$(Q)mkdir $@
|
||||||
|
|
||||||
# Generate and include dependencies,
|
# Generate and include dependencies,
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#ifndef MCASELECTOR_LITE_ATRB_H
|
#ifndef MCASELECTOR_LITE_ATRB_H
|
||||||
#define MCASELECTOR_LITE_ATRB_H
|
#define MCASELECTOR_LITE_ATRB_H
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#ifndef MCASELECTOR_LITE_ENDIAN_H
|
#ifndef MCASELECTOR_LITE_ENDIAN_H
|
||||||
#define MCASELECTOR_LITE_ENDIAN_H
|
#define MCASELECTOR_LITE_ENDIAN_H
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#ifndef MCASELECTOR_LITE_MACRO_H
|
#ifndef MCASELECTOR_LITE_MACRO_H
|
||||||
#define MCASELECTOR_LITE_MACRO_H
|
#define MCASELECTOR_LITE_MACRO_H
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#ifndef MCASELECTOR_LITE_TYPES_H
|
#ifndef MCASELECTOR_LITE_TYPES_H
|
||||||
#define MCASELECTOR_LITE_TYPES_H
|
#define MCASELECTOR_LITE_TYPES_H
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#ifndef MCASELECTOR_LITE_UTIL_H
|
#ifndef MCASELECTOR_LITE_UTIL_H
|
||||||
#define MCASELECTOR_LITE_UTIL_H
|
#define MCASELECTOR_LITE_UTIL_H
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#ifndef MCASELECTOR_LITE_VEC_H
|
#ifndef MCASELECTOR_LITE_VEC_H
|
||||||
#define MCASELECTOR_LITE_VEC_H
|
#define MCASELECTOR_LITE_VEC_H
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#include "mcx.h"
|
#include "mcx.h"
|
||||||
|
|
||||||
#include <archive.h>
|
#include <archive.h>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <mcaselector-lite/atrb.h>
|
#include <mcaselector-lite/atrb.h>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#include "nbt.h"
|
#include "nbt.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@@ -45,9 +44,8 @@ static const u8 *procarr(const u8 *restrict buf, s32 nmemb, uint size, struct nb
|
|||||||
{
|
{
|
||||||
usize len = nmemb * size;
|
usize len = nmemb * size;
|
||||||
*out = (struct nbt_array){
|
*out = (struct nbt_array){
|
||||||
out->nmemb = nmemb,
|
nmemb,
|
||||||
out->dat = malloc(len),
|
malloc(len)};
|
||||||
};
|
|
||||||
if (!out->dat)
|
if (!out->dat)
|
||||||
return buf + len;
|
return buf + len;
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <mcaselector-lite/atrb.h>
|
#include <mcaselector-lite/atrb.h>
|
||||||
#include <mcaselector-lite/types.h>
|
#include <mcaselector-lite/types.h>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined __unix__
|
#if defined __unix__
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined(__unix__)
|
#if defined(__unix__)
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#include "error.h"
|
#include "error.h"
|
||||||
|
|
||||||
#include <mcaselector-lite/types.h>
|
#include <mcaselector-lite/types.h>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
/* This file is part of MCA-Selector-lite,
|
/* Copyright (C)2025 MCA-Selector-Lite
|
||||||
* and is licensed under GPL-2.0-only.
|
* Licensed under GPL-2.0-only. For further information,
|
||||||
* Copyright (C)2025 quinnthepigeon@proton.me Quinn
|
* view `git log`, and the COPYING and CONTRIBUTORS files
|
||||||
* For further information, view COPYING and CONTRIBUTORS
|
* at www.github.com/thepigeongenerator/mcaselector-lite. */
|
||||||
* at: www.github.com/thepigeongenerator/mcaselector-lite */
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <mcaselector-lite/atrb.h>
|
#include <mcaselector-lite/atrb.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user