From a3e547babd75055ea9cb3c60124975e72e85a3fc Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Wed, 29 Nov 2023 09:30:45 -0800 Subject: Add copyright notices to new files --- README.md | 9 ++++----- convert-markdown.c | 3 +-- parse-file.c | 17 +++++++++++++++++ parse-file.h | 21 +++++++++++++++++++++ test-convert-markdown.c | 16 ++++++++++++++++ 5 files changed, 59 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e390159..d569835 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,9 @@ $ convert-markdown < file.md > output.html ## License -This code is adapted from the example section of [lowdown_file(3)][lowdown_file], which is part of -[lowdown][lowdown-site] by Kristaps Dzonsons . Lowdown is free software released under the terms of the -[ISC license][isc]. +Some of this code is adapted from the example section of [lowdown_file(3)][lowdown_file], which is part of +[lowdown][lowdown-site] by Kristaps Dzonsons . Lowdown is free software released under the terms of +the [ISC license][isc], therefore this code is as well. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. @@ -30,8 +30,7 @@ THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WIT IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF -THIS -SOFTWARE. +THIS SOFTWARE. [lowdown]: https://kristaps.bsd.lv/lowdown/lowdown.3.html [lowdown_file]: https://kristaps.bsd.lv/lowdown/lowdown_file.3.html diff --git a/convert-markdown.c b/convert-markdown.c index 6801e47..89e11a6 100644 --- a/convert-markdown.c +++ b/convert-markdown.c @@ -1,6 +1,5 @@ /* - * Copyright (c) Kristaps Dzonsons - * With modifications by Cody Logan + * Copyright (c) Cody Logan * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above diff --git a/parse-file.c b/parse-file.c index 14a737c..215e13a 100644 --- a/parse-file.c +++ b/parse-file.c @@ -1,3 +1,20 @@ +/* + * Copyright (c) Kristaps Dzonsons + * With modifications by Cody Logan + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + #include "parse-file.h" void _parse_file(FILE* instream, FILE* outstream) { diff --git a/parse-file.h b/parse-file.h index d0054e4..30f292f 100644 --- a/parse-file.h +++ b/parse-file.h @@ -1,3 +1,22 @@ +/* + * Copyright (c) Cody Logan + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef PARSE_FILE_H +#define PARSE_FILE_H + #include "config.h" #if HAVE_ERR @@ -10,3 +29,5 @@ #include void _parse_file(FILE*, FILE*); + +#endif \ No newline at end of file diff --git a/test-convert-markdown.c b/test-convert-markdown.c index 5925184..403a68a 100644 --- a/test-convert-markdown.c +++ b/test-convert-markdown.c @@ -1,3 +1,19 @@ +/* + * Copyright (c) Cody Logan + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + #include "parse-file.h" static int test_parse_file(const char* testname, const char* input, const char* output) { -- cgit v1.2.3