aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Logan <cody@lokken.dev>2023-11-29 09:30:45 -0800
committerCody Logan <cody@lokken.dev>2023-11-29 09:30:45 -0800
commita3e547babd75055ea9cb3c60124975e72e85a3fc (patch)
treef29a6366a9db05e137feb5ef5e7e37fb02876618
parenta9dacce3f986e28e5ca16268ebfa57566cfc65cf (diff)
downloadconvert-markdown-a3e547babd75055ea9cb3c60124975e72e85a3fc.tar.gz
convert-markdown-a3e547babd75055ea9cb3c60124975e72e85a3fc.zip
Add copyright notices to new files
-rw-r--r--README.md9
-rw-r--r--convert-markdown.c3
-rw-r--r--parse-file.c17
-rw-r--r--parse-file.h21
-rw-r--r--test-convert-markdown.c16
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 <kristaps@bsd.lv>. 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 <kristaps@bsd.lv>. 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 <kristaps@bsd.lv>
- * With modifications by Cody Logan <cody@lokken.dev>
+ * Copyright (c) Cody Logan <cody@lokken.dev>
*
* 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 <kristaps@bsd.lv>
+ * With modifications by Cody Logan <cody@lokken.dev>
+ *
+ * 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 <cody@lokken.dev>
+ *
+ * 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 <lowdown.h>
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 <cody@lokken.dev>
+ *
+ * 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) {