summaryrefslogtreecommitdiffstats
path: root/src/common/error.h
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 /src/common/error.h
parentf35e7ab6965d4da9779e948de71d23892954c1c7 (diff)
downloadblogc-0bbc18869720ad042b668742ca48e5cb8a37491a.tar.gz
blogc-0bbc18869720ad042b668742ca48e5cb8a37491a.tar.bz2
blogc-0bbc18869720ad042b668742ca48e5cb8a37491a.zip
*: modernize file headers (spdx and include guards)
Diffstat (limited to 'src/common/error.h')
-rw-r--r--src/common/error.h14
1 files changed, 3 insertions, 11 deletions
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 */