summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-01-21 11:55:34 -0500
committerOri Bernstein <ori@eigenstate.org>2013-01-21 11:55:40 -0500
commit693647efbb86d842a9edc6e15c8d2420ff14b01c (patch)
tree35bf04506c85859713ae8193facf764aa10b4ee5
parent6f4d243b545169886cfd4498386337ec37d18a1e (diff)
downloadmc-693647efbb86d842a9edc6e15c8d2420ff14b01c.tar.gz
Add a license.
MIT style, because why not.
-rw-r--r--LICENSE7
-rw-r--r--libstd/alloc.myr2
-rw-r--r--libstd/optparse.myr2
3 files changed, 9 insertions, 2 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..740e164
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,7 @@
+Copyright (c) 2013 Ori Bernstein <ori@eigenstate.org>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/libstd/alloc.myr b/libstd/alloc.myr
index 1cf6c74..ab7e383 100644
--- a/libstd/alloc.myr
+++ b/libstd/alloc.myr
@@ -30,8 +30,8 @@ pkg std =
generic free : (v:@a* -> void)
generic slalloc : (len : size -> @a[:])
- generic slfree : (sl : @a[:] -> void)
generic slgrow : (sl : @a[:], len : size -> @a[:])
+ generic slfree : (sl : @a[:] -> void)
const bytealloc : (sz:size -> byte*)
const bytefree : (m:byte*, sz:size -> void)
diff --git a/libstd/optparse.myr b/libstd/optparse.myr
index 037b1a4..6702514 100644
--- a/libstd/optparse.myr
+++ b/libstd/optparse.myr
@@ -15,7 +15,7 @@ pkg std =
arglist : byte[:][:]
;;
- const optinit : (opts : byte[:], opts : byte[:][:] -> optctx*)
+ const optinit : (opts : byte[:], args : byte[:][:] -> optctx*)
const optnext : (ctx : optctx* -> char)
const optarg : (ctx : optctx* -> byte[:])
;;