From 76f68a5ee394e9fd0d39730d71d870921c5b876e Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Sun, 10 Apr 2011 15:01:30 -0400 Subject: [PATCH] Mark source code with MIT license info. Feed the lawyers. --- LICENSE | 90 +++++++++++++++++++++++++++++++++++++++++++ c_src/decoder.c | 3 ++ c_src/encoder.c | 3 ++ c_src/jiffy.c | 3 ++ c_src/jiffy.h | 3 ++ c_src/utf8.c | 2 + c_src/util.c | 3 ++ src/jiffy.erl | 3 ++ test/001-yajl-tests.t | 2 + test/002-literals.t | 2 + test/003-numbers.t | 2 + test/004-strings.t | 2 + test/005-arrays.t | 2 + test/006-maps.t | 2 + test/007-compound.t | 2 + 15 files changed, 124 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6d5c254 --- /dev/null +++ b/LICENSE @@ -0,0 +1,90 @@ +jiffy +===== + +Files: c_src/* src/* test/*.t + +Copyright 2011 Paul J. Davis + +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. + +Etap +==== + +Files: test/etap.erl + +Copyright (c) 2008-2009 Nick Gerakines + +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. + +Yajl Test Cases +=============== + +Files: test/cases/*.json + +Copyright 2010, Lloyd Hilaiel. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + 2. 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. + + 3. Neither the name of Lloyd Hilaiel 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 AUTHOR ``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 AUTHOR 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/c_src/decoder.c b/c_src/decoder.c index 38ae858..80bcb35 100644 --- a/c_src/decoder.c +++ b/c_src/decoder.c @@ -1,3 +1,6 @@ +// This file is part of Jiffy released under the MIT license. +// See the LICENSE file for more information. + #include #include #include diff --git a/c_src/encoder.c b/c_src/encoder.c index b00784c..fc8a727 100644 --- a/c_src/encoder.c +++ b/c_src/encoder.c @@ -1,3 +1,6 @@ +// This file is part of Jiffy released under the MIT license. +// See the LICENSE file for more information. + #include #include #include diff --git a/c_src/jiffy.c b/c_src/jiffy.c index 3b737f8..6dede4e 100644 --- a/c_src/jiffy.c +++ b/c_src/jiffy.c @@ -1,3 +1,6 @@ +// This file is part of Jiffy released under the MIT license. +// See the LICENSE file for more information. + #include "jiffy.h" static int diff --git a/c_src/jiffy.h b/c_src/jiffy.h index 1844312..2612f75 100644 --- a/c_src/jiffy.h +++ b/c_src/jiffy.h @@ -1,3 +1,6 @@ +// This file is part of Jiffy released under the MIT license. +// See the LICENSE file for more information. + #ifndef JIFFY_H #define JIFFY_H diff --git a/c_src/utf8.c b/c_src/utf8.c index 280229c..c8d7bba 100644 --- a/c_src/utf8.c +++ b/c_src/utf8.c @@ -1,3 +1,5 @@ +// This file is part of Jiffy released under the MIT license. +// See the LICENSE file for more information. static const char hexvals[256] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, diff --git a/c_src/util.c b/c_src/util.c index eaf7afe..44845a2 100644 --- a/c_src/util.c +++ b/c_src/util.c @@ -1,3 +1,6 @@ +// This file is part of Jiffy released under the MIT license. +// See the LICENSE file for more information. + #include "jiffy.h" ERL_NIF_TERM diff --git a/src/jiffy.erl b/src/jiffy.erl index e313bbd..d79a2b9 100644 --- a/src/jiffy.erl +++ b/src/jiffy.erl @@ -1,3 +1,6 @@ +% This file is part of Jiffy released under the MIT license. +% See the LICENSE file for more information. + -module(jiffy). -export([decode/1, encode/1]). -define(NOT_LOADED, not_loaded(?LINE)). diff --git a/test/001-yajl-tests.t b/test/001-yajl-tests.t index 0f11afb..ca8d493 100755 --- a/test/001-yajl-tests.t +++ b/test/001-yajl-tests.t @@ -1,4 +1,6 @@ #! /usr/bin/env escript +% This file is part of Jiffy released under the MIT license. +% See the LICENSE file for more information. main([]) -> code:add_pathz("test"), diff --git a/test/002-literals.t b/test/002-literals.t index a49caeb..022808a 100755 --- a/test/002-literals.t +++ b/test/002-literals.t @@ -1,4 +1,6 @@ #! /usr/bin/env escript +% This file is part of Jiffy released under the MIT license. +% See the LICENSE file for more information. main([]) -> code:add_pathz("ebin"), diff --git a/test/003-numbers.t b/test/003-numbers.t index a854ae4..162f845 100755 --- a/test/003-numbers.t +++ b/test/003-numbers.t @@ -1,4 +1,6 @@ #! /usr/bin/env escript +% This file is part of Jiffy released under the MIT license. +% See the LICENSE file for more information. main([]) -> code:add_pathz("ebin"), diff --git a/test/004-strings.t b/test/004-strings.t index 2135a3c..b6695cb 100755 --- a/test/004-strings.t +++ b/test/004-strings.t @@ -1,4 +1,6 @@ #! /usr/bin/env escript +% This file is part of Jiffy released under the MIT license. +% See the LICENSE file for more information. main([]) -> code:add_pathz("ebin"), diff --git a/test/005-arrays.t b/test/005-arrays.t index 78120a4..921c00a 100755 --- a/test/005-arrays.t +++ b/test/005-arrays.t @@ -1,4 +1,6 @@ #! /usr/bin/env escript +% This file is part of Jiffy released under the MIT license. +% See the LICENSE file for more information. main([]) -> code:add_pathz("ebin"), diff --git a/test/006-maps.t b/test/006-maps.t index ebb8588..37aece4 100755 --- a/test/006-maps.t +++ b/test/006-maps.t @@ -1,4 +1,6 @@ #! /usr/bin/env escript +% This file is part of Jiffy released under the MIT license. +% See the LICENSE file for more information. main([]) -> code:add_pathz("ebin"), diff --git a/test/007-compound.t b/test/007-compound.t index 849f844..6964f47 100755 --- a/test/007-compound.t +++ b/test/007-compound.t @@ -1,4 +1,6 @@ #! /usr/bin/env escript +% This file is part of Jiffy released under the MIT license. +% See the LICENSE file for more information. main([]) -> code:add_pathz("ebin"),