From: Petri Lehtinen Date: Tue, 28 Jul 2009 08:01:52 +0000 (+0300) Subject: Add LICENSE and a copyright note to all sources X-Git-Tag: v1.0~13 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=jansson.git;a=commitdiff_plain;h=2f4d6f8ae768886f8ee831bae169763856b5a827 Add LICENSE and a copyright note to all sources --- diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6c6dbed --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2009 Petri Lehtinen + +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/src/dump.c b/src/dump.c index 9645e9f..c00260c 100644 --- a/src/dump.c +++ b/src/dump.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #define _GNU_SOURCE #include #include diff --git a/src/jansson.h b/src/jansson.h index 9b79892..91bf553 100644 --- a/src/jansson.h +++ b/src/jansson.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #ifndef JANSSON_H #define JANSSON_H diff --git a/src/jansson_private.h b/src/jansson_private.h index d359ed5..ad8419a 100644 --- a/src/jansson_private.h +++ b/src/jansson_private.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #ifndef JANSSON_PRIVATE_H #define JANSSON_PRIVATE_H diff --git a/src/load.c b/src/load.c index d28721e..88cd1f0 100644 --- a/src/load.c +++ b/src/load.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #define _GNU_SOURCE #include #include diff --git a/src/strbuffer.c b/src/strbuffer.c index 7de7be4..1a71a53 100644 --- a/src/strbuffer.c +++ b/src/strbuffer.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #define _GNU_SOURCE #include #include diff --git a/src/strbuffer.h b/src/strbuffer.h index ec1009e..4afefa9 100644 --- a/src/strbuffer.h +++ b/src/strbuffer.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #ifndef STRBUFFER_H #define STRBUFFER_H diff --git a/src/utf.c b/src/utf.c index 0adf01b..cf2e8e4 100644 --- a/src/utf.c +++ b/src/utf.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #include int utf8_encode(int codepoint, char *buffer, int *size) diff --git a/src/utf.h b/src/utf.h index b49d8a1..75d7b6e 100644 --- a/src/utf.h +++ b/src/utf.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #ifndef UTF_H #define UTF_H diff --git a/src/util.h b/src/util.h index 5bffa9b..66066c5 100644 --- a/src/util.h +++ b/src/util.h @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #ifndef UTIL_H #define UTIL_H diff --git a/src/value.c b/src/value.c index 6f0094b..1aaec90 100644 --- a/src/value.c +++ b/src/value.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #define _GNU_SOURCE #include #include diff --git a/test/load_file_dump_file.c b/test/load_file_dump_file.c index 5add119..ac55afe 100644 --- a/test/load_file_dump_file.c +++ b/test/load_file_dump_file.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #include #include diff --git a/test/loadf_dumpf.c b/test/loadf_dumpf.c index ce9d873..75b889f 100644 --- a/test/loadf_dumpf.c +++ b/test/loadf_dumpf.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #include #include diff --git a/test/loads_dumps.c b/test/loads_dumps.c index ab8db1a..d2a7240 100644 --- a/test/loads_dumps.c +++ b/test/loads_dumps.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #include #include #include diff --git a/test/run-test b/test/run-test index 2086c82..0df1471 100644 --- a/test/run-test +++ b/test/run-test @@ -1,3 +1,8 @@ +# Copyright (c) 2009 Petri Lehtinen +# +# Jansson is free software; you can redistribute it and/or modify +# it under the terms of the MIT license. See LICENSE for details. + VALGRIND_CMDLINE="valgrind --leak-check=full --show-reachable=yes --track-origins=yes -q" run_testprog() { diff --git a/test/split-testfile.py b/test/split-testfile.py index fdbe6ba..0191302 100755 --- a/test/split-testfile.py +++ b/test/split-testfile.py @@ -1,4 +1,9 @@ #!/usr/bin/python +# +# Copyright (c) 2009 Petri Lehtinen +# +# Jansson is free software; you can redistribute it and/or modify +# it under the terms of the MIT license. See LICENSE for details. import os import sys diff --git a/test/test-invalid b/test/test-invalid index e7268da..60c4cca 100755 --- a/test/test-invalid +++ b/test/test-invalid @@ -1,4 +1,9 @@ #!/bin/sh +# +# Copyright (c) 2009 Petri Lehtinen +# +# Jansson is free software; you can redistribute it and/or modify +# it under the terms of the MIT license. See LICENSE for details. TESTFILES="${srcdir}/testdata/invalid ${srcdir}/testdata/invalid-unicode" diff --git a/test/test-valid b/test/test-valid index 45c08fb..55489ea 100755 --- a/test/test-valid +++ b/test/test-valid @@ -1,4 +1,9 @@ #!/bin/sh +# +# Copyright (c) 2009 Petri Lehtinen +# +# Jansson is free software; you can redistribute it and/or modify +# it under the terms of the MIT license. See LICENSE for details. TESTFILES="${srcdir}/testdata/valid"