From: Urban Wallasch Date: Wed, 23 Oct 2019 20:37:11 +0000 (+0200) Subject: * added LICENSE file and copyright notices; added .gitignore; fixed comments X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=21af1cafd1fc62aa067bff5674a6e5d1b9c64785;p=oddbits.git * added LICENSE file and copyright notices; added .gitignore; fixed comments --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..261745f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.[oa] +*_test diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5764aee --- /dev/null +++ b/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2019, Urban Wallasch and contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/net/net.c b/net/net.c index de0c35a..6de3cf0 100644 --- a/net/net.c +++ b/net/net.c @@ -1,4 +1,9 @@ /* + * net.c + * + * Copyright (c) 2019, Urban Wallasch + * BSD 3-Clause License, see LICENSE file for more details. + * * Collection of functions to help create simple IPv4 or IPv6 based * TCP or UDP servers and clients. See net.h for further information. * diff --git a/net/net.h b/net/net.h index 946681a..f209dec 100644 --- a/net/net.h +++ b/net/net.h @@ -1,4 +1,9 @@ /* + * net.h + * + * Copyright (c) 2019, Urban Wallasch + * BSD 3-Clause License, see LICENSE file for more details. + * * Collection of functions to help create simple IPv4 or IPv6 based * TCP or UDP servers and clients. * diff --git a/net/net_test.c b/net/net_test.c index 66c5484..14b3ad9 100644 --- a/net/net_test.c +++ b/net/net_test.c @@ -1,3 +1,14 @@ +/* + * net_test.c + * + * Copyright (c) 2019, Urban Wallasch + * BSD 3-Clause License, see LICENSE file for more details. + * + * Simple, non-exhaustive quick check for net.c, net.h + * + * Build with: + * gcc -Wall -Wextra -DNET_DBG -onet_test net.c net_test.c + */ #include #include diff --git a/trace/trace.h b/trace/trace.h index e16fe83..91e4269 100644 --- a/trace/trace.h +++ b/trace/trace.h @@ -1,6 +1,9 @@ /* * trace.h * + * Copyright (c) 2019, Urban Wallasch + * BSD 3-Clause License, see LICENSE file for more details. + * * Function-like macros to issue tracing information on expressions. * * TRACE(e) - default formatting diff --git a/trace/trace_test.c b/trace/trace_test.c index 05df17e..a3c373e 100644 --- a/trace/trace_test.c +++ b/trace/trace_test.c @@ -1,10 +1,13 @@ /* - * trace.c + * trace_test.c + * + * Copyright (c) 2019, Urban Wallasch + * BSD 3-Clause License, see LICENSE file for more details. * * Simple, non-exhaustive quick check for trace.h * * Build with: - * cc [-std=c11 [-Wpedantic]] -Wall -Wextra -DTRACE_ON -otrace trace.c + * cc [-std=c11 [-Wpedantic]] -Wall -Wextra -DTRACE_ON -otrace_test trace_test.c * */