docs(file): added license documentation to the file source files

This commit is contained in:
Mineplay 2025-12-05 16:57:14 +01:00
parent bcbe5c8d0f
commit 5ea177d928
3 changed files with 18 additions and 2 deletions

View file

@ -11,7 +11,7 @@ target_include_directories(cosms-core PUBLIC ${PROJECT_SOURCE_DIR}/include)
if (MSVC)
target_compile_options(cosms-core PRIVATE /W4)
else()
target_compile_options(cosms-core PRIVATE -wall -Wextra -pedantic)
target_compile_options(cosms-core PRIVATE -Wall -Wextra -pedantic)
endif()
add_executable(cosms-core-test ${PROJECT_SOURCE_DIR}/tests/main.c)

View file

@ -1,3 +1,11 @@
/*
* Copyright (C) Tristan Franssen, <tristanfranssen@strawhats.nl>.
*
* This software is licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License in the file LICENSE or at
* http://www.apache.org/licenses/LICENSE-2.0
*/
#ifndef COSMS_CORE_FILE
#define COSMS_CORE_FILE

View file

@ -1,4 +1,12 @@
#include <cosms-core/file.h>
/*
* Copyright (C) Tristan Franssen, <tristanfranssen@strawhats.nl>.
*
* This software is licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License in the file LICENSE or at
* http://www.apache.org/licenses/LICENSE-2.0
*/
#include "cosms-core/file.h"
#include <stdio.h>