about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPeter H. Froehlich <peter.hans.froehlich@gmail.com>2021-02-13 23:53:01 +0100
committerPeter H. Froehlich <peter.hans.froehlich@gmail.com>2021-02-13 23:53:01 +0100
commitb1bea0f8e18701d4ca32ff08ee79d0a0897e5de5 (patch)
tree1b5461eca9a54d69e5529cc21123a77e526e7164
parent8eee983028751ef16f0700eae777a48b10e722b6 (diff)
downloadsimple-allocators-b1bea0f8e18701d4ca32ff08ee79d0a0897e5de5.tar.gz
Oh look, a license.
-rw-r--r--LICENSE.md14
-rw-r--r--README.md8
2 files changed, 22 insertions, 0 deletions
diff --git a/LICENSE.md b/LICENSE.md
new file mode 100644
index 0000000..36f3442
--- /dev/null
+++ b/LICENSE.md
@@ -0,0 +1,14 @@
+# BSD Zero Clause License
+
+Copyright © 2019–2021 by Peter H. Fröhlich \<peter.hans.froehlich@gmail.com>
+
+Permission to use, copy, modify, and/or distribute this software for any purpose
+with or without fee is hereby granted.
+
+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.
diff --git a/README.md b/README.md
index 07f3cef..f77852b 100644
--- a/README.md
+++ b/README.md
@@ -15,3 +15,11 @@ The *arena* allocator already supports "arbitrary" object sizes, but it has a
 fixed maximum capacity that may not be appropriate for all programs; code to
 "grow" the arena when necessary might be a good addition.
 Nothing here is thread-safe either, so you may need to throw in a lock or three.
+
+## License
+
+I very much doubt that you can use the code "as is" for a real system, but feel
+free to take it as a starting point if that seems helpful. Since it's under a
+0-clause BSD license, which essentially makes it public domain, you're welcome
+to do as you please. If the code was helpful to you I'd *appreciate* an email,
+but it's certainly not required.