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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) (limited to 'gen_inl.c') 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"); -- cgit v1.2.3