summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2024-05-21 01:21:34 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2024-05-21 01:21:34 +0200
commit0bbc18869720ad042b668742ca48e5cb8a37491a (patch)
tree55248d0a68679cf22fb7eac3a1a41ba6f0d039c7
parentf35e7ab6965d4da9779e948de71d23892954c1c7 (diff)
downloadblogc-0bbc18869720ad042b668742ca48e5cb8a37491a.tar.gz
blogc-0bbc18869720ad042b668742ca48e5cb8a37491a.tar.bz2
blogc-0bbc18869720ad042b668742ca48e5cb8a37491a.zip
*: modernize file headers (spdx and include guards)
-rw-r--r--LICENSE2
-rw-r--r--src/blogc-git-receiver/main.c9
-rw-r--r--src/blogc-git-receiver/post-receive.c9
-rw-r--r--src/blogc-git-receiver/post-receive.h14
-rw-r--r--src/blogc-git-receiver/pre-receive-parser.c9
-rw-r--r--src/blogc-git-receiver/pre-receive-parser.h14
-rw-r--r--src/blogc-git-receiver/pre-receive.c9
-rw-r--r--src/blogc-git-receiver/pre-receive.h14
-rw-r--r--src/blogc-git-receiver/settings.c9
-rw-r--r--src/blogc-git-receiver/settings.h14
-rw-r--r--src/blogc-git-receiver/shell-command-parser.c9
-rw-r--r--src/blogc-git-receiver/shell-command-parser.h14
-rw-r--r--src/blogc-git-receiver/shell.c9
-rw-r--r--src/blogc-git-receiver/shell.h14
-rw-r--r--src/blogc-make/atom.c9
-rw-r--r--src/blogc-make/atom.h14
-rw-r--r--src/blogc-make/ctx.c9
-rw-r--r--src/blogc-make/ctx.h14
-rw-r--r--src/blogc-make/exec-native.c9
-rw-r--r--src/blogc-make/exec-native.h14
-rw-r--r--src/blogc-make/exec.c9
-rw-r--r--src/blogc-make/exec.h14
-rw-r--r--src/blogc-make/httpd.c9
-rw-r--r--src/blogc-make/httpd.h14
-rw-r--r--src/blogc-make/main.c9
-rw-r--r--src/blogc-make/reloader.c9
-rw-r--r--src/blogc-make/reloader.h14
-rw-r--r--src/blogc-make/rules.c9
-rw-r--r--src/blogc-make/rules.h14
-rw-r--r--src/blogc-make/settings.c9
-rw-r--r--src/blogc-make/settings.h14
-rw-r--r--src/blogc-make/utils.c9
-rw-r--r--src/blogc-make/utils.h14
-rw-r--r--src/blogc-runserver/httpd-utils.c9
-rw-r--r--src/blogc-runserver/httpd-utils.h14
-rw-r--r--src/blogc-runserver/httpd.c9
-rw-r--r--src/blogc-runserver/httpd.h14
-rw-r--r--src/blogc-runserver/main.c9
-rw-r--r--src/blogc-runserver/mime.c9
-rw-r--r--src/blogc-runserver/mime.h14
-rw-r--r--src/blogc/content-parser.c9
-rw-r--r--src/blogc/content-parser.h14
-rw-r--r--src/blogc/datetime-parser.c9
-rw-r--r--src/blogc/datetime-parser.h14
-rw-r--r--src/blogc/debug.c9
-rw-r--r--src/blogc/debug.h14
-rw-r--r--src/blogc/filelist-parser.c9
-rw-r--r--src/blogc/filelist-parser.h14
-rw-r--r--src/blogc/funcvars.c9
-rw-r--r--src/blogc/funcvars.h14
-rw-r--r--src/blogc/loader.c9
-rw-r--r--src/blogc/loader.h14
-rw-r--r--src/blogc/main.c9
-rw-r--r--src/blogc/renderer.c9
-rw-r--r--src/blogc/renderer.h14
-rw-r--r--src/blogc/rusage.c9
-rw-r--r--src/blogc/rusage.h14
-rw-r--r--src/blogc/source-parser.c9
-rw-r--r--src/blogc/source-parser.h14
-rw-r--r--src/blogc/sysinfo.c9
-rw-r--r--src/blogc/sysinfo.h14
-rw-r--r--src/blogc/template-parser.c9
-rw-r--r--src/blogc/template-parser.h14
-rw-r--r--src/blogc/toctree.c9
-rw-r--r--src/blogc/toctree.h14
-rw-r--r--src/common/compat.c9
-rw-r--r--src/common/compat.h14
-rw-r--r--src/common/config-parser.c9
-rw-r--r--src/common/config-parser.h14
-rw-r--r--src/common/error.c9
-rw-r--r--src/common/error.h14
-rw-r--r--src/common/file.c9
-rw-r--r--src/common/file.h14
-rw-r--r--src/common/sort.c9
-rw-r--r--src/common/sort.h14
-rw-r--r--src/common/stdin.c9
-rw-r--r--src/common/stdin.h14
-rw-r--r--src/common/utf8.c26
-rw-r--r--src/common/utf8.h14
-rw-r--r--src/common/utils.c9
-rw-r--r--src/common/utils.h14
-rwxr-xr-xtests/blogc-git-receiver/check_post_receive.sh.in3
-rwxr-xr-xtests/blogc-git-receiver/check_pre_receive.sh.in3
-rw-r--r--tests/blogc-git-receiver/check_pre_receive_parser.c9
-rw-r--r--tests/blogc-git-receiver/check_settings.c9
-rwxr-xr-xtests/blogc-git-receiver/check_shell.sh.in3
-rw-r--r--tests/blogc-git-receiver/check_shell_command_parser.c9
-rw-r--r--tests/blogc-make/check_atom.c9
-rwxr-xr-xtests/blogc-make/check_blogc_make.sh.in3
-rw-r--r--tests/blogc-make/check_exec.c9
-rw-r--r--tests/blogc-make/check_rules.c9
-rw-r--r--tests/blogc-make/check_settings.c9
-rw-r--r--tests/blogc-make/check_utils.c9
-rw-r--r--tests/blogc-runserver/check_httpd_utils.c9
-rw-r--r--tests/blogc-runserver/check_mime.c9
-rwxr-xr-xtests/blogc/check_blogc.sh.in3
-rw-r--r--tests/blogc/check_content_parser.c9
-rw-r--r--tests/blogc/check_datetime_parser.c9
-rw-r--r--tests/blogc/check_filelist_parser.c9
-rw-r--r--tests/blogc/check_funcvars.c9
-rw-r--r--tests/blogc/check_loader.c9
-rw-r--r--tests/blogc/check_renderer.c9
-rw-r--r--tests/blogc/check_rusage.c9
-rw-r--r--tests/blogc/check_source_parser.c9
-rw-r--r--tests/blogc/check_sysinfo.c9
-rw-r--r--tests/blogc/check_sysinfo2.c9
-rw-r--r--tests/blogc/check_template_parser.c9
-rw-r--r--tests/blogc/check_toctree.c9
-rw-r--r--tests/common/check_config_parser.c9
-rw-r--r--tests/common/check_error.c9
-rw-r--r--tests/common/check_sort.c9
-rw-r--r--tests/common/check_stdin.c9
-rw-r--r--tests/common/check_utf8.c9
-rw-r--r--tests/common/check_utils.c9
114 files changed, 271 insertions, 925 deletions
diff --git a/LICENSE b/LICENSE
index 705f3e1..9440e80 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2014-2020, Rafael G. Martins
+Copyright (c) 2014-2024, Rafael G. Martins
All rights reserved.
Redistribution and use in source and binary forms, with or without
diff --git a/src/blogc-git-receiver/main.c b/src/blogc-git-receiver/main.c
index 13218dd..c899573 100644
--- a/src/blogc-git-receiver/main.c
+++ b/src/blogc-git-receiver/main.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/blogc-git-receiver/post-receive.c b/src/blogc-git-receiver/post-receive.c
index 17a8aa7..7e56b85 100644
--- a/src/blogc-git-receiver/post-receive.c
+++ b/src/blogc-git-receiver/post-receive.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <errno.h>
#include <string.h>
diff --git a/src/blogc-git-receiver/post-receive.h b/src/blogc-git-receiver/post-receive.h
index fc56dc3..756d9fc 100644
--- a/src/blogc-git-receiver/post-receive.h
+++ b/src/blogc-git-receiver/post-receive.h
@@ -1,14 +1,6 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _POST_RECEIVE_H
-#define _POST_RECEIVE_H
+#pragma once
int bgr_post_receive_hook(int argc, char *argv[]);
-
-#endif /* _POST_RECEIVE_H */
diff --git a/src/blogc-git-receiver/pre-receive-parser.c b/src/blogc-git-receiver/pre-receive-parser.c
index 61a533c..4d2c205 100644
--- a/src/blogc-git-receiver/pre-receive-parser.c
+++ b/src/blogc-git-receiver/pre-receive-parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stddef.h>
#include <stdlib.h>
diff --git a/src/blogc-git-receiver/pre-receive-parser.h b/src/blogc-git-receiver/pre-receive-parser.h
index 45a9da8..12d221f 100644
--- a/src/blogc-git-receiver/pre-receive-parser.h
+++ b/src/blogc-git-receiver/pre-receive-parser.h
@@ -1,17 +1,9 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _PRE_RECEIVE_PARSER_H
-#define _PRE_RECEIVE_PARSER_H
+#pragma once
#include <stddef.h>
#include "../common/utils.h"
bc_trie_t* bgr_pre_receive_parse(const char *input, size_t input_len);
-
-#endif /* _PRE_RECEIVE_PARSER_H */
diff --git a/src/blogc-git-receiver/pre-receive.c b/src/blogc-git-receiver/pre-receive.c
index 12d29cf..b7235db 100644
--- a/src/blogc-git-receiver/pre-receive.c
+++ b/src/blogc-git-receiver/pre-receive.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/blogc-git-receiver/pre-receive.h b/src/blogc-git-receiver/pre-receive.h
index ab19c47..a7082e8 100644
--- a/src/blogc-git-receiver/pre-receive.h
+++ b/src/blogc-git-receiver/pre-receive.h
@@ -1,14 +1,6 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _PRE_RECEIVE_H
-#define _PRE_RECEIVE_H
+#pragma once
int bgr_pre_receive_hook(int argc, char *argv[]);
-
-#endif /* _PRE_RECEIVE_H */
diff --git a/src/blogc-git-receiver/settings.c b/src/blogc-git-receiver/settings.c
index db29b18..8c28370 100644
--- a/src/blogc-git-receiver/settings.c
+++ b/src/blogc-git-receiver/settings.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdio.h>
#include <libgen.h>
diff --git a/src/blogc-git-receiver/settings.h b/src/blogc-git-receiver/settings.h
index 04c1a2b..f191cf6 100644
--- a/src/blogc-git-receiver/settings.h
+++ b/src/blogc-git-receiver/settings.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _SETTINGS_H
-#define _SETTINGS_H
+#pragma once
#include "../common/config-parser.h"
@@ -15,5 +9,3 @@ const char* bgr_settings_get_base_dir(void);
char* bgr_settings_get_builds_dir(void);
char* bgr_settings_get_section(bc_config_t *config, const char *repo_path);
bc_config_t* bgr_settings_parse(void);
-
-#endif /* _SETTINGS_H */
diff --git a/src/blogc-git-receiver/shell-command-parser.c b/src/blogc-git-receiver/shell-command-parser.c
index 0091e0b..7cf9fbf 100644
--- a/src/blogc-git-receiver/shell-command-parser.c
+++ b/src/blogc-git-receiver/shell-command-parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdbool.h>
#include <stdlib.h>
diff --git a/src/blogc-git-receiver/shell-command-parser.h b/src/blogc-git-receiver/shell-command-parser.h
index 818d098..a4f88a6 100644
--- a/src/blogc-git-receiver/shell-command-parser.h
+++ b/src/blogc-git-receiver/shell-command-parser.h
@@ -1,14 +1,6 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _SHELL_COMMAND_PARSER_H
-#define _SHELL_COMMAND_PARSER_H
+#pragma once
char* bgr_shell_command_parse(const char *command);
-
-#endif /* _SHELL_COMMAND_PARSER_H */
diff --git a/src/blogc-git-receiver/shell.c b/src/blogc-git-receiver/shell.c
index a4c8a2d..0872a56 100644
--- a/src/blogc-git-receiver/shell.c
+++ b/src/blogc-git-receiver/shell.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stddef.h>
#include <stdio.h>
diff --git a/src/blogc-git-receiver/shell.h b/src/blogc-git-receiver/shell.h
index b59ff40..fbd24a5 100644
--- a/src/blogc-git-receiver/shell.h
+++ b/src/blogc-git-receiver/shell.h
@@ -1,15 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _SHELL_H
-#define _SHELL_H
+#pragma once
char* bgr_shell_get_repo(const char *command);
int bgr_shell(int argc, char *argv[]);
-
-#endif /* _SHELL_H */
diff --git a/src/blogc-make/atom.c b/src/blogc-make/atom.c
index 0b8cfd1..baf5eeb 100644
--- a/src/blogc-make/atom.c
+++ b/src/blogc-make/atom.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdlib.h>
#include <string.h>
diff --git a/src/blogc-make/atom.h b/src/blogc-make/atom.h
index 29a6dcb..ccd8d37 100644
--- a/src/blogc-make/atom.h
+++ b/src/blogc-make/atom.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _MAKE_ATOM_H
-#define _MAKE_ATOM_H
+#pragma once
#include "../common/error.h"
#include "settings.h"
@@ -15,5 +9,3 @@
char* bm_atom_generate(bm_settings_t *settings);
char* bm_atom_deploy(bm_settings_t *settings, bc_error_t **err);
void bm_atom_destroy(const char *fname);
-
-#endif /* _MAKE_ATOM_H */
diff --git a/src/blogc-make/ctx.c b/src/blogc-make/ctx.c
index b8d23dd..0745529 100644
--- a/src/blogc-make/ctx.c
+++ b/src/blogc-make/ctx.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <sys/stat.h>
#include <sys/types.h>
diff --git a/src/blogc-make/ctx.h b/src/blogc-make/ctx.h
index a66d51c..774601f 100644
--- a/src/blogc-make/ctx.h
+++ b/src/blogc-make/ctx.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _MAKE_CTX_H
-#define _MAKE_CTX_H
+#pragma once
#include <sys/stat.h>
#include <stdbool.h>
@@ -80,5 +74,3 @@ void bm_ctx_free_internal(bm_ctx_t *ctx);
void bm_ctx_free(bm_ctx_t *ctx);
const char* bm_ctx_settings_lookup(bm_ctx_t *ctx, const char *key);
const char* bm_ctx_settings_lookup_str(bm_ctx_t *ctx, const char *key);
-
-#endif /* _MAKE_CTX_H */
diff --git a/src/blogc-make/exec-native.c b/src/blogc-make/exec-native.c
index 6d7f58f..f18ed9c 100644
--- a/src/blogc-make/exec-native.c
+++ b/src/blogc-make/exec-native.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdbool.h>
#include <stdlib.h>
diff --git a/src/blogc-make/exec-native.h b/src/blogc-make/exec-native.h
index 56a1da1..bade6a2 100644
--- a/src/blogc-make/exec-native.h
+++ b/src/blogc-make/exec-native.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _MAKE_EXEC_NATIVE_H
-#define _MAKE_EXEC_NATIVE_H
+#pragma once
#include <stdbool.h>
#include "../common/error.h"
@@ -16,5 +10,3 @@
int bm_exec_native_cp(bm_filectx_t *source, bm_filectx_t *dest, bool verbose);
bool bm_exec_native_is_empty_dir(const char *dir, bc_error_t **err);
int bm_exec_native_rm(const char *output_dir, bm_filectx_t *dest, bool verbose);
-
-#endif /* _MAKE_EXEC_NATIVE_H */
diff --git a/src/blogc-make/exec.c b/src/blogc-make/exec.c
index 4b1f6df..4dd6f8b 100644
--- a/src/blogc-make/exec.c
+++ b/src/blogc-make/exec.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/src/blogc-make/exec.h b/src/blogc-make/exec.h
index 6bc206f..aa0784a 100644
--- a/src/blogc-make/exec.h
+++ b/src/blogc-make/exec.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _MAKE_EXEC_H
-#define _MAKE_EXEC_H
+#pragma once
#include <stdbool.h>
#include "../common/error.h"
@@ -31,5 +25,3 @@ char* bm_exec_blogc_get_variable(bm_ctx_t *ctx, bc_trie_t *global_variables,
bc_slist_t *sources, bool only_first_source);
int bm_exec_blogc_runserver(bm_ctx_t *ctx, const char *host, const char *port,
const char *threads);
-
-#endif /* _MAKE_EXEC_H */
diff --git a/src/blogc-make/httpd.c b/src/blogc-make/httpd.c
index c352da0..1491095 100644
--- a/src/blogc-make/httpd.c
+++ b/src/blogc-make/httpd.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/blogc-make/httpd.h b/src/blogc-make/httpd.h
index b0fa87d..73a8007 100644
--- a/src/blogc-make/httpd.h
+++ b/src/blogc-make/httpd.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _MAKE_HTTPD_H
-#define _MAKE_HTTPD_H
+#pragma once
#include "../common/utils.h"
#include "ctx.h"
@@ -15,5 +9,3 @@
int bm_httpd_run(bm_ctx_t **ctx, bm_rule_exec_func_t rule_exec, bc_slist_t *outputs,
bc_trie_t *args);
-
-#endif /* _MAKE_HTTPD_H */
diff --git a/src/blogc-make/main.c b/src/blogc-make/main.c
index 5b4a030..5d3f686 100644
--- a/src/blogc-make/main.c
+++ b/src/blogc-make/main.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/src/blogc-make/reloader.c b/src/blogc-make/reloader.c
index fea8bd4..e025998 100644
--- a/src/blogc-make/reloader.c
+++ b/src/blogc-make/reloader.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdbool.h>
#include <stdio.h>
diff --git a/src/blogc-make/reloader.h b/src/blogc-make/reloader.h
index f3fddf4..d6a9370 100644
--- a/src/blogc-make/reloader.h
+++ b/src/blogc-make/reloader.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _MAKE_RELOADER_H
-#define _MAKE_RELOADER_H
+#pragma once
#include "../common/utils.h"
#include "ctx.h"
@@ -16,5 +10,3 @@
int bm_reloader_run(bm_ctx_t **ctx, bm_rule_exec_func_t rule_exec,
bc_slist_t *outputs, bc_trie_t *args);
void bm_reloader_stop(int status_code);
-
-#endif /* _MAKE_RELOADER_H */
diff --git a/src/blogc-make/rules.c b/src/blogc-make/rules.c
index 7d92b95..9cfc969 100644
--- a/src/blogc-make/rules.c
+++ b/src/blogc-make/rules.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdbool.h>
#include <stdio.h>
diff --git a/src/blogc-make/rules.h b/src/blogc-make/rules.h
index 9ff39ca..ad1fa8f 100644
--- a/src/blogc-make/rules.h
+++ b/src/blogc-make/rules.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _MAKE_RULES_H
-#define _MAKE_RULES_H
+#pragma once
#include <stdbool.h>
#include "ctx.h"
@@ -32,5 +26,3 @@ bool bm_rule_need_rebuild(bc_slist_t *sources, bm_filectx_t *settings,
bool only_first_source);
bc_slist_t* bm_rule_list_built_files(bm_ctx_t *ctx);
void bm_rule_print_help(void);
-
-#endif /* _MAKE_RULES_H */
diff --git a/src/blogc-make/settings.c b/src/blogc-make/settings.c
index 1079fc0..4accc6d 100644
--- a/src/blogc-make/settings.c
+++ b/src/blogc-make/settings.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <libgen.h>
#include <stdbool.h>
diff --git a/src/blogc-make/settings.h b/src/blogc-make/settings.h
index 69fdbb6..dc28033 100644
--- a/src/blogc-make/settings.h
+++ b/src/blogc-make/settings.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _MAKE_SETTINGS_H
-#define _MAKE_SETTINGS_H
+#pragma once
#include <stddef.h>
#include "../common/error.h"
@@ -25,5 +19,3 @@ typedef struct {
bm_settings_t* bm_settings_parse(const char *content, size_t content_len,
bc_error_t **err);
void bm_settings_free(bm_settings_t *settings);
-
-#endif /* _MAKE_SETTINGS_H */
diff --git a/src/blogc-make/utils.c b/src/blogc-make/utils.c
index 8f69e44..c987cfd 100644
--- a/src/blogc-make/utils.c
+++ b/src/blogc-make/utils.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <errno.h>
#include <limits.h>
diff --git a/src/blogc-make/utils.h b/src/blogc-make/utils.h
index cbcfc0e..801bf0f 100644
--- a/src/blogc-make/utils.h
+++ b/src/blogc-make/utils.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _MAKE_UTILS_H
-#define _MAKE_UTILS_H
+#pragma once
#include "../common/error.h"
@@ -16,5 +10,3 @@ char* bm_generate_filename(const char *dir, const char *prefix, const char *fnam
char* bm_generate_filename2(const char *dir, const char *prefix, const char *fname,
const char *prefix2, const char *fname2, const char *ext);
char* bm_abspath(const char *path, bc_error_t **err);
-
-#endif /* _MAKE_UTILS_H */
diff --git a/src/blogc-runserver/httpd-utils.c b/src/blogc-runserver/httpd-utils.c
index 9d374ae..aa0be27 100644
--- a/src/blogc-runserver/httpd-utils.c
+++ b/src/blogc-runserver/httpd-utils.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdbool.h>
#include <string.h>
diff --git a/src/blogc-runserver/httpd-utils.h b/src/blogc-runserver/httpd-utils.h
index 06ad6e1..db638ad 100644
--- a/src/blogc-runserver/httpd-utils.h
+++ b/src/blogc-runserver/httpd-utils.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _HTTPD_UTILS_H
-#define _HTTPD_UTILS_H
+#pragma once
#define READLINE_BUFFER_SIZE 2048
@@ -15,5 +9,3 @@ char* br_readline(int socket);
int br_hextoi(const char c);
char* br_urldecode(const char *str);
const char* br_get_extension(const char *filename);
-
-#endif /* _HTTPD_UTILS_H */
diff --git a/src/blogc-runserver/httpd.c b/src/blogc-runserver/httpd.c
index fe98288..a7293a2 100644
--- a/src/blogc-runserver/httpd.c
+++ b/src/blogc-runserver/httpd.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <errno.h>
#include <stdio.h>
diff --git a/src/blogc-runserver/httpd.h b/src/blogc-runserver/httpd.h
index b71a8d9..033a8e3 100644
--- a/src/blogc-runserver/httpd.h
+++ b/src/blogc-runserver/httpd.h
@@ -1,15 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _HTTPD_H
-#define _HTTPD_H
+#pragma once
int br_httpd_run(const char *host, const char *port, const char *docroot,
size_t max_threads);
-
-#endif /* _HTTPD_H */
diff --git a/src/blogc-runserver/main.c b/src/blogc-runserver/main.c
index 1c5be29..ca402ec 100644
--- a/src/blogc-runserver/main.c
+++ b/src/blogc-runserver/main.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/src/blogc-runserver/mime.c b/src/blogc-runserver/mime.c
index 636c496..192911e 100644
--- a/src/blogc-runserver/mime.c
+++ b/src/blogc-runserver/mime.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdlib.h>
#include <string.h>
diff --git a/src/blogc-runserver/mime.h b/src/blogc-runserver/mime.h
index b9fb013..0d5fd03 100644
--- a/src/blogc-runserver/mime.h
+++ b/src/blogc-runserver/mime.h
@@ -1,15 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _MIME_H
-#define _MIME_H
+#pragma once
const char* br_mime_guess_content_type(const char *filename);
char* br_mime_guess_index(const char *path);
-
-#endif /* _MIME_H */
diff --git a/src/blogc/content-parser.c b/src/blogc/content-parser.c
index a42f6f6..fe2e84f 100644
--- a/src/blogc/content-parser.c
+++ b/src/blogc/content-parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdbool.h>
#include <stdlib.h>
diff --git a/src/blogc/content-parser.h b/src/blogc/content-parser.h
index a321155..f9a5c6e 100644
--- a/src/blogc/content-parser.h
+++ b/src/blogc/content-parser.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _CONTENT_PARSER_H
-#define _CONTENT_PARSER_H
+#pragma once
#include <stddef.h>
#include <stdbool.h>
@@ -21,5 +15,3 @@ bool blogc_is_ordered_list_item(const char *str, size_t prefix_len);
char* blogc_content_parse(const char *src, size_t *end_excerpt,
char **first_header, char **description, char **endl,
bc_slist_t **headers);
-
-#endif /* _CONTENT_PARSER_H */
diff --git a/src/blogc/datetime-parser.c b/src/blogc/datetime-parser.c
index ddaf6ef..36f55f0 100644
--- a/src/blogc/datetime-parser.c
+++ b/src/blogc/datetime-parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/src/blogc/datetime-parser.h b/src/blogc/datetime-parser.h
index 8617ad0..ba19036 100644
--- a/src/blogc/datetime-parser.h
+++ b/src/blogc/datetime-parser.h
@@ -1,17 +1,9 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _DATETIME_H
-#define _DATETIME_H
+#pragma once
#include "../common/error.h"
char* blogc_convert_datetime(const char *orig, const char *format,
bc_error_t **err);
-
-#endif /* _DATETIME_H */
diff --git a/src/blogc/debug.c b/src/blogc/debug.c
index 11e7973..925c1d9 100644
--- a/src/blogc/debug.c
+++ b/src/blogc/debug.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdio.h>
diff --git a/src/blogc/debug.h b/src/blogc/debug.h
index 6138a91..b8491e3 100644
--- a/src/blogc/debug.h
+++ b/src/blogc/debug.h
@@ -1,16 +1,8 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef ___DEBUG_H
-#define ___DEBUG_H
+#pragma once
#include "../common/utils.h"
void blogc_debug_template(bc_slist_t *ast);
-
-#endif /* ___DEBUG_H */
diff --git a/src/blogc/filelist-parser.c b/src/blogc/filelist-parser.c
index 984f25f..1ffe0ad 100644
--- a/src/blogc/filelist-parser.c
+++ b/src/blogc/filelist-parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include "../common/utils.h"
diff --git a/src/blogc/filelist-parser.h b/src/blogc/filelist-parser.h
index b068554..9c41ecc 100644
--- a/src/blogc/filelist-parser.h
+++ b/src/blogc/filelist-parser.h
@@ -1,16 +1,8 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _FILELIST_PARSER_H
-#define _FILELIST_PARSER_H
+#pragma once
#include "../common/utils.h"
bc_slist_t* blogc_filelist_parse(const char *src, size_t src_len);
-
-#endif /* _FILELIST_PARSER_H */
diff --git a/src/blogc/funcvars.c b/src/blogc/funcvars.c
index 6f0700b..7fbe98e 100644
--- a/src/blogc/funcvars.c
+++ b/src/blogc/funcvars.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdbool.h>
#include <stdlib.h>
diff --git a/src/blogc/funcvars.h b/src/blogc/funcvars.h
index aae1bc3..d75597f 100644
--- a/src/blogc/funcvars.h
+++ b/src/blogc/funcvars.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef ___FUNCVARS_H
-#define ___FUNCVARS_H
+#pragma once
#include <stdbool.h>
#include "../common/utils.h"
@@ -15,5 +9,3 @@
typedef void (*blogc_funcvars_func_t) (bc_trie_t*);
void blogc_funcvars_eval(bc_trie_t *global, const char *name);
-
-#endif /* ___FUNCVARS_H */
diff --git a/src/blogc/loader.c b/src/blogc/loader.c
index af30a1b..4006084 100644
--- a/src/blogc/loader.c
+++ b/src/blogc/loader.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <math.h>
#include <stdbool.h>
diff --git a/src/blogc/loader.h b/src/blogc/loader.h
index fe88730..5283d03 100644
--- a/src/blogc/loader.h
+++ b/src/blogc/loader.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _LOADER_H
-#define _LOADER_H
+#pragma once
#include "../common/error.h"
#include "../common/utils.h"
@@ -18,5 +12,3 @@ bc_trie_t* blogc_source_parse_from_file(bc_trie_t *conf, const char *f,
bc_error_t **err);
bc_slist_t* blogc_source_parse_from_files(bc_trie_t *conf, bc_slist_t *l,
bc_error_t **err);
-
-#endif /* _LOADER_H */
diff --git a/src/blogc/main.c b/src/blogc/main.c
index 9bfa9cf..1e21464 100644
--- a/src/blogc/main.c
+++ b/src/blogc/main.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/src/blogc/renderer.c b/src/blogc/renderer.c
index a91d105..4822294 100644
--- a/src/blogc/renderer.c
+++ b/src/blogc/renderer.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdbool.h>
#include <stddef.h>
diff --git a/src/blogc/renderer.h b/src/blogc/renderer.h
index 77c660a..e886fcc 100644
--- a/src/blogc/renderer.h
+++ b/src/blogc/renderer.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _RENDERER_H
-#define _RENDERER_H
+#pragma once
#include <stdbool.h>
#include "../common/utils.h"
@@ -20,5 +14,3 @@ bc_slist_t* blogc_split_list_variable(const char *name, bc_trie_t *global,
bc_trie_t *local);
char* blogc_render(bc_slist_t *tmpl, bc_slist_t *sources, bc_slist_t *listing_entries,
bc_trie_t *config, bool listing);
-
-#endif /* _RENDERER_H */
diff --git a/src/blogc/rusage.c b/src/blogc/rusage.c
index a38848d..c8f5a68 100644
--- a/src/blogc/rusage.c
+++ b/src/blogc/rusage.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/src/blogc/rusage.h b/src/blogc/rusage.h
index 6344066..9857cff 100644
--- a/src/blogc/rusage.h
+++ b/src/blogc/rusage.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef ___RUSAGE_H
-#define ___RUSAGE_H
+#pragma once
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -32,5 +26,3 @@ char* blogc_rusage_format_cpu_time(long long time);
char* blogc_rusage_format_memory(long mem);
void blogc_rusage_inject(bc_trie_t *global);
-
-#endif /* ___RUSAGE_H */
diff --git a/src/blogc/source-parser.c b/src/blogc/source-parser.c
index 13df9e3..b6154bc 100644
--- a/src/blogc/source-parser.c
+++ b/src/blogc/source-parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdlib.h>
#include <string.h>
diff --git a/src/blogc/source-parser.h b/src/blogc/source-parser.h
index 2acd753..216ac29 100644
--- a/src/blogc/source-parser.h
+++ b/src/blogc/source-parser.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _SOURCE_PARSER_H
-#define _SOURCE_PARSER_H
+#pragma once
#include <stddef.h>
#include "../common/error.h"
@@ -15,5 +9,3 @@
bc_trie_t* blogc_source_parse(const char *src, size_t src_len, int toctree_maxdepth,
bc_error_t **err);
-
-#endif /* _SOURCE_PARSER_H */
diff --git a/src/blogc/sysinfo.c b/src/blogc/sysinfo.c
index 3c30996..3eee530 100644
--- a/src/blogc/sysinfo.c
+++ b/src/blogc/sysinfo.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/src/blogc/sysinfo.h b/src/blogc/sysinfo.h
index b249661..7fd582c 100644
--- a/src/blogc/sysinfo.h
+++ b/src/blogc/sysinfo.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef ___SYSINFO_H
-#define ___SYSINFO_H
+#pragma once
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -34,5 +28,3 @@ char* blogc_sysinfo_get_datetime(void);
void blogc_sysinfo_inject_datetime(bc_trie_t *global);
bool blogc_sysinfo_get_inside_docker(void);
void blogc_sysinfo_inject_inside_docker(bc_trie_t *global);
-
-#endif /* ___SYSINFO_H */
diff --git a/src/blogc/template-parser.c b/src/blogc/template-parser.c
index 8e7ca84..08b5685 100644
--- a/src/blogc/template-parser.c
+++ b/src/blogc/template-parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdbool.h>
#include <stdlib.h>
diff --git a/src/blogc/template-parser.h b/src/blogc/template-parser.h
index 6183016..cb724eb 100644
--- a/src/blogc/template-parser.h
+++ b/src/blogc/template-parser.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _TEMPLATE_PARSER_H
-#define _TEMPLATE_PARSER_H
+#pragma once
#include <stddef.h>
#include "../common/error.h"
@@ -54,5 +48,3 @@ typedef struct {
bc_slist_t* blogc_template_parse(const char *src, size_t src_len,
bc_error_t **err);
void blogc_template_free_ast(bc_slist_t *ast);
-
-#endif /* _TEMPLATE_PARSER_H */
diff --git a/src/blogc/toctree.c b/src/blogc/toctree.c
index 307c62c..f4a9cc2 100644
--- a/src/blogc/toctree.c
+++ b/src/blogc/toctree.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdlib.h>
#include "../common/utils.h"
diff --git a/src/blogc/toctree.h b/src/blogc/toctree.h
index 460119b..ed3ab80 100644
--- a/src/blogc/toctree.h
+++ b/src/blogc/toctree.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef ___TOCTREE_H
-#define ___TOCTREE_H
+#pragma once
#include "../common/utils.h"
@@ -22,5 +16,3 @@ bc_slist_t* blogc_toctree_append(bc_slist_t *headers, size_t level,
char* blogc_toctree_render(bc_slist_t *headers, int maxdepth,
const char *endl);
void blogc_toctree_free(bc_slist_t *l);
-
-#endif /* ___TOCTREE_H */
diff --git a/src/common/compat.c b/src/common/compat.c
index f7394c8..179e97b 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/src/common/compat.h b/src/common/compat.h
index 1e743db..4acf167 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -1,14 +1,6 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _COMPAT_H
-#define _COMPAT_H
+#pragma once
int bc_compat_status_code(int waitstatus);
-
-#endif /* _COMPAT_H */
diff --git a/src/common/config-parser.c b/src/common/config-parser.c
index fbb79af..511d4ea 100644
--- a/src/common/config-parser.c
+++ b/src/common/config-parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdbool.h>
#include <stdlib.h>
diff --git a/src/common/config-parser.h b/src/common/config-parser.h
index 0b75ff8..700bc0b 100644
--- a/src/common/config-parser.h
+++ b/src/common/config-parser.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _CONFIG_PARSER_H
-#define _CONFIG_PARSER_H
+#pragma once
#include <stddef.h>
#include "utils.h"
@@ -27,5 +21,3 @@ const char* bc_config_get_with_default(bc_config_t *config, const char *section,
const char *key, const char *default_);
char** bc_config_get_list(bc_config_t *config, const char *section);
void bc_config_free(bc_config_t *config);
-
-#endif /* _CONFIG_PARSER_H */
diff --git a/src/common/error.c b/src/common/error.c
index caf47c3..3522a5c 100644
--- a/src/common/error.c
+++ b/src/common/error.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/common/error.h b/src/common/error.h
index b85f006..f1f3c96 100644
--- a/src/common/error.h
+++ b/src/common/error.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _ERROR_H
-#define _ERROR_H
+#pragma once
#include <stddef.h>
@@ -43,5 +37,3 @@ bc_error_t* bc_error_parser(bc_error_type_t type, const char *src,
size_t src_len, size_t current, const char *format, ...);
void bc_error_print(bc_error_t *err, const char *prefix);
void bc_error_free(bc_error_t *err);
-
-#endif /* _ERROR_H */
diff --git a/src/common/file.c b/src/common/file.c
index 1e55f64..121b91e 100644
--- a/src/common/file.c
+++ b/src/common/file.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <errno.h>
#include <stdbool.h>
diff --git a/src/common/file.h b/src/common/file.h
index d002bf7..18d631d 100644
--- a/src/common/file.h
+++ b/src/common/file.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _FILE_H
-#define _FILE_H
+#pragma once
#include <stddef.h>
#include <stdbool.h>
@@ -16,5 +10,3 @@
#define BC_FILE_CHUNK_SIZE 1024
char* bc_file_get_contents(const char *path, bool utf8, size_t *len, bc_error_t **err);
-
-#endif /* _FILE_H */
diff --git a/src/common/sort.c b/src/common/sort.c
index 3e24706..6b5da49 100644
--- a/src/common/sort.c
+++ b/src/common/sort.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdbool.h>
#include "utils.h"
diff --git a/src/common/sort.h b/src/common/sort.h
index 9f4dda2..b77d682 100644
--- a/src/common/sort.h
+++ b/src/common/sort.h
@@ -1,18 +1,10 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _SORT_H
-#define _SORT_H
+#pragma once
#include "utils.h"
typedef int (*bc_sort_func_t) (const void *a, const void *b);
bc_slist_t* bc_slist_sort(bc_slist_t *l, bc_sort_func_t cmp);
-
-#endif /* _SORT_H */
diff --git a/src/common/stdin.c b/src/common/stdin.c
index 556c7cf..3bd9abc 100644
--- a/src/common/stdin.c
+++ b/src/common/stdin.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdbool.h>
#include <stdio.h>
diff --git a/src/common/stdin.h b/src/common/stdin.h
index b27ecaf..a781b8c 100644
--- a/src/common/stdin.h
+++ b/src/common/stdin.h
@@ -1,16 +1,8 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _STDIN_H
-#define _STDIN_H
+#pragma once
#include <stddef.h>
char* bc_stdin_read(size_t *len);
-
-#endif /* _STDIN_H */
diff --git a/src/common/utf8.c b/src/common/utf8.c
index df5e2d2..be5d2b2 100644
--- a/src/common/utf8.c
+++ b/src/common/utf8.c
@@ -1,26 +1,6 @@
-/*
- * blogc: A blog compiler.
- * Copyright (c) 2008-2010 Bjoern Hoehrmann <bjoern@hoehrmann.de>
- * Copyright (c) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to
- * deal in the Software without restriction, including without limitation the
- * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
- * sell copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
- * IN THE SOFTWARE.
- */
+// SPDX-FileCopyrightText: 2008-2010 Bjoern Hoehrmann <bjoern@hoehrmann.de>
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: MIT
// Based on Bjoern Hoehrmann's algorithm.
// See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details.
diff --git a/src/common/utf8.h b/src/common/utf8.h
index bf0f1ae..6c1a992 100644
--- a/src/common/utf8.h
+++ b/src/common/utf8.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _UTF_8_H
-#define _UTF_8_H
+#pragma once
#include <stdbool.h>
#include <stddef.h>
@@ -17,5 +11,3 @@
bool bc_utf8_validate(const uint8_t *str, size_t len);
bool bc_utf8_validate_str(bc_string_t *str);
size_t bc_utf8_skip_bom(const uint8_t *str, size_t len);
-
-#endif /* _UTF_8_H */
diff --git a/src/common/utils.c b/src/common/utils.c
index ddd3911..7491ce6 100644
--- a/src/common/utils.c
+++ b/src/common/utils.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#define BC_STRING_CHUNK_SIZE 128
diff --git a/src/common/utils.h b/src/common/utils.h
index 4bdab8c..a9aa731 100644
--- a/src/common/utils.h
+++ b/src/common/utils.h
@@ -1,13 +1,7 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
-#ifndef _UTILS_H
-#define _UTILS_H
+#pragma once
#include <stddef.h>
#include <stdarg.h>
@@ -106,5 +100,3 @@ void bc_trie_foreach(bc_trie_t *trie, bc_trie_foreach_func_t func,
// shell
char* bc_shell_quote(const char *command);
-
-#endif /* _UTILS_H */
diff --git a/tests/blogc-git-receiver/check_post_receive.sh.in b/tests/blogc-git-receiver/check_post_receive.sh.in
index 74d4df2..53535f4 100755
--- a/tests/blogc-git-receiver/check_post_receive.sh.in
+++ b/tests/blogc-git-receiver/check_post_receive.sh.in
@@ -1,5 +1,8 @@
#!@BASH@
+# SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+# SPDX-License-Identifier: BSD-3-Clause
+
set -xe -o pipefail
export LC_ALL=C
diff --git a/tests/blogc-git-receiver/check_pre_receive.sh.in b/tests/blogc-git-receiver/check_pre_receive.sh.in
index 2cf3c89..2c36f4c 100755
--- a/tests/blogc-git-receiver/check_pre_receive.sh.in
+++ b/tests/blogc-git-receiver/check_pre_receive.sh.in
@@ -1,5 +1,8 @@
#!@BASH@
+# SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+# SPDX-License-Identifier: BSD-3-Clause
+
set -xe -o pipefail
export LC_ALL=C
diff --git a/tests/blogc-git-receiver/check_pre_receive_parser.c b/tests/blogc-git-receiver/check_pre_receive_parser.c
index cad1421..8db72ac 100644
--- a/tests/blogc-git-receiver/check_pre_receive_parser.c
+++ b/tests/blogc-git-receiver/check_pre_receive_parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc-git-receiver/check_settings.c b/tests/blogc-git-receiver/check_settings.c
index 61cd469..e1bd124 100644
--- a/tests/blogc-git-receiver/check_settings.c
+++ b/tests/blogc-git-receiver/check_settings.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc-git-receiver/check_shell.sh.in b/tests/blogc-git-receiver/check_shell.sh.in
index f70fc50..bf25029 100755
--- a/tests/blogc-git-receiver/check_shell.sh.in
+++ b/tests/blogc-git-receiver/check_shell.sh.in
@@ -1,5 +1,8 @@
#!@BASH@
+# SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+# SPDX-License-Identifier: BSD-3-Clause
+
set -xe -o pipefail
export LC_ALL=C
diff --git a/tests/blogc-git-receiver/check_shell_command_parser.c b/tests/blogc-git-receiver/check_shell_command_parser.c
index eafeabb..1b7d8fb 100644
--- a/tests/blogc-git-receiver/check_shell_command_parser.c
+++ b/tests/blogc-git-receiver/check_shell_command_parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc-make/check_atom.c b/tests/blogc-make/check_atom.c
index e93bc76..125ca85 100644
--- a/tests/blogc-make/check_atom.c
+++ b/tests/blogc-make/check_atom.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc-make/check_blogc_make.sh.in b/tests/blogc-make/check_blogc_make.sh.in
index 73393d4..d999840 100755
--- a/tests/blogc-make/check_blogc_make.sh.in
+++ b/tests/blogc-make/check_blogc_make.sh.in
@@ -1,5 +1,8 @@
#!@BASH@
+# SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+# SPDX-License-Identifier: BSD-3-Clause
+
set -xe -o pipefail
export LC_ALL=C
diff --git a/tests/blogc-make/check_exec.c b/tests/blogc-make/check_exec.c
index 6b15423..05fc440 100644
--- a/tests/blogc-make/check_exec.c
+++ b/tests/blogc-make/check_exec.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#ifdef HAVE_CONFIG_H
#include <config.h>
diff --git a/tests/blogc-make/check_rules.c b/tests/blogc-make/check_rules.c
index 5da412f..9f3ad10 100644
--- a/tests/blogc-make/check_rules.c
+++ b/tests/blogc-make/check_rules.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc-make/check_settings.c b/tests/blogc-make/check_settings.c
index b268570..3b136e7 100644
--- a/tests/blogc-make/check_settings.c
+++ b/tests/blogc-make/check_settings.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc-make/check_utils.c b/tests/blogc-make/check_utils.c
index 09d1580..cc4fd60 100644
--- a/tests/blogc-make/check_utils.c
+++ b/tests/blogc-make/check_utils.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc-runserver/check_httpd_utils.c b/tests/blogc-runserver/check_httpd_utils.c
index 9b2c39c..addf6fb 100644
--- a/tests/blogc-runserver/check_httpd_utils.c
+++ b/tests/blogc-runserver/check_httpd_utils.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc-runserver/check_mime.c b/tests/blogc-runserver/check_mime.c
index 59d7238..d9a9fc8 100644
--- a/tests/blogc-runserver/check_mime.c
+++ b/tests/blogc-runserver/check_mime.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc/check_blogc.sh.in b/tests/blogc/check_blogc.sh.in
index 208524d..8b23d3e 100755
--- a/tests/blogc/check_blogc.sh.in
+++ b/tests/blogc/check_blogc.sh.in
@@ -1,5 +1,8 @@
#!@BASH@
+# SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+# SPDX-License-Identifier: BSD-3-Clause
+
set -xe -o pipefail
export LC_ALL=C
diff --git a/tests/blogc/check_content_parser.c b/tests/blogc/check_content_parser.c
index 71f1680..e550672 100644
--- a/tests/blogc/check_content_parser.c
+++ b/tests/blogc/check_content_parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc/check_datetime_parser.c b/tests/blogc/check_datetime_parser.c
index fe0ddd8..5b54af3 100644
--- a/tests/blogc/check_datetime_parser.c
+++ b/tests/blogc/check_datetime_parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc/check_filelist_parser.c b/tests/blogc/check_filelist_parser.c
index da1698e..a7417f7 100644
--- a/tests/blogc/check_filelist_parser.c
+++ b/tests/blogc/check_filelist_parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc/check_funcvars.c b/tests/blogc/check_funcvars.c
index 23f1723..9b083a2 100644
--- a/tests/blogc/check_funcvars.c
+++ b/tests/blogc/check_funcvars.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc/check_loader.c b/tests/blogc/check_loader.c
index caeb8d8..e7a21b6 100644
--- a/tests/blogc/check_loader.c
+++ b/tests/blogc/check_loader.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc/check_renderer.c b/tests/blogc/check_renderer.c
index 08aed84..bcc5a70 100644
--- a/tests/blogc/check_renderer.c
+++ b/tests/blogc/check_renderer.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc/check_rusage.c b/tests/blogc/check_rusage.c
index c332991..38f49a2 100644
--- a/tests/blogc/check_rusage.c
+++ b/tests/blogc/check_rusage.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc/check_source_parser.c b/tests/blogc/check_source_parser.c
index 822133c..b7e703c 100644
--- a/tests/blogc/check_source_parser.c
+++ b/tests/blogc/check_source_parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc/check_sysinfo.c b/tests/blogc/check_sysinfo.c
index 197092c..134c4a9 100644
--- a/tests/blogc/check_sysinfo.c
+++ b/tests/blogc/check_sysinfo.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc/check_sysinfo2.c b/tests/blogc/check_sysinfo2.c
index 7dd440d..813f920 100644
--- a/tests/blogc/check_sysinfo2.c
+++ b/tests/blogc/check_sysinfo2.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc/check_template_parser.c b/tests/blogc/check_template_parser.c
index ace8ac4..8dc3b87 100644
--- a/tests/blogc/check_template_parser.c
+++ b/tests/blogc/check_template_parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/blogc/check_toctree.c b/tests/blogc/check_toctree.c
index 05cc008..5401203 100644
--- a/tests/blogc/check_toctree.c
+++ b/tests/blogc/check_toctree.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/common/check_config_parser.c b/tests/common/check_config_parser.c
index 5360f54..f789eeb 100644
--- a/tests/common/check_config_parser.c
+++ b/tests/common/check_config_parser.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/common/check_error.c b/tests/common/check_error.c
index 658ad22..3de9c11 100644
--- a/tests/common/check_error.c
+++ b/tests/common/check_error.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/common/check_sort.c b/tests/common/check_sort.c
index 2bc8751..059470c 100644
--- a/tests/common/check_sort.c
+++ b/tests/common/check_sort.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/common/check_stdin.c b/tests/common/check_stdin.c
index 5616ee9..3d7df63 100644
--- a/tests/common/check_stdin.c
+++ b/tests/common/check_stdin.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/common/check_utf8.c b/tests/common/check_utf8.c
index 95e2eab..734870d 100644
--- a/tests/common/check_utf8.c
+++ b/tests/common/check_utf8.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2019 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>
diff --git a/tests/common/check_utils.c b/tests/common/check_utils.c
index 20e6891..54630f9 100644
--- a/tests/common/check_utils.c
+++ b/tests/common/check_utils.c
@@ -1,10 +1,5 @@
-/*
- * blogc: A blog compiler.
- * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
- *
- * This program can be distributed under the terms of the BSD License.
- * See the file LICENSE.
- */
+// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+// SPDX-License-Identifier: BSD-3-Clause
#include <stdarg.h>
#include <stddef.h>