From 782d97aa2940f849282b52fa19b26fbf0970b966 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 8 Sep 2023 21:53:56 +0200 Subject: Add comment header --- gen_inl.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ include/kit.inl.h | 34 ++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) diff --git a/gen_inl.c b/gen_inl.c index bb1aac8..af77c7d 100644 --- a/gen_inl.c +++ b/gen_inl.c @@ -137,6 +137,64 @@ int main(int argc, char **argv) { return 1; } + fprintf(out, "// " + "=====================================================" + "===========\n"); + fprintf(out, "//\n"); + fprintf(out, "// kit.inl.h\n"); + fprintf(out, "// https://guattari.tech/git/?p=kit.git;a=tree\n"); + fprintf(out, "//\n"); + fprintf(out, "// Header-only utility library for C.\n"); + fprintf(out, "//\n"); + fprintf(out, "// " + "=====================================================" + "===========\n"); + fprintf(out, "//\n"); + fprintf(out, "// The MIT License\n"); + fprintf(out, "//\n"); + fprintf(out, "// Copyright (c) 2022-2023 Mitya Selivanov\n"); + fprintf(out, "//\n"); + fprintf(out, "// Permission is hereby granted, free of charge, to " + "any person\n"); + fprintf(out, "// obtaining a copy of this software and associated " + "documentation\n"); + fprintf(out, "// files (the \"Software\"), to deal in the " + "Software without\n"); + fprintf(out, "// restriction, including without limitation the " + "rights to use, copy,\n"); + fprintf(out, "// modify, merge, publish, distribute, sublicense, " + "and/or sell copies\n"); + fprintf(out, "// of the Software, and to permit persons to whom " + "the Software is\n"); + fprintf(out, "// furnished to do so, subject to the following " + "conditions:\n"); + fprintf(out, "//\n"); + fprintf(out, "// The above copyright notice and this permission " + "notice shall be\n"); + fprintf(out, "// included in all copies or substantial portions " + "of the Software.\n"); + fprintf(out, "//\n"); + fprintf(out, "// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT " + "WARRANTY OF ANY KIND,\n"); + fprintf(out, "// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO " + "THE WARRANTIES OF\n"); + fprintf( + out, + "// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n"); + fprintf(out, "// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS " + "OR COPYRIGHT\n"); + fprintf(out, "// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR " + "OTHER LIABILITY,\n"); + fprintf(out, "// WHETHER IN AN ACTION OF CONTRACT, TORT OR " + "OTHERWISE, ARISING FROM,\n"); + fprintf(out, "// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE " + "USE OR OTHER\n"); + fprintf(out, "// DEALINGS IN THE SOFTWARE.\n"); + fprintf(out, "//\n"); + fprintf(out, "// " + "=====================================================" + "===========\n"); + fprintf(out, "#ifndef KIT_INL_H\n"); fprintf(out, "#define KIT_INL_H\n"); diff --git a/include/kit.inl.h b/include/kit.inl.h index c28bd27..781de95 100644 --- a/include/kit.inl.h +++ b/include/kit.inl.h @@ -1,3 +1,37 @@ +// ================================================================ +// +// kit.inl.h +// https://guattari.tech/git/?p=kit.git;a=tree +// +// Header-only utility library for C. +// +// ================================================================ +// +// The MIT License +// +// Copyright (c) 2022-2023 Mitya Selivanov +// +// 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. +// +// ================================================================ #ifndef KIT_INL_H #define KIT_INL_H /********************************************************************* -- cgit v1.2.3