Add LICENSE and a copyright note to all sources
authorPetri Lehtinen <petri@digip.org>
Tue, 28 Jul 2009 08:01:52 +0000 (11:01 +0300)
committerPetri Lehtinen <petri@digip.org>
Thu, 30 Jul 2009 08:32:24 +0000 (11:32 +0300)
18 files changed:
LICENSE [new file with mode: 0644]
src/dump.c
src/jansson.h
src/jansson_private.h
src/load.c
src/strbuffer.c
src/strbuffer.h
src/utf.c
src/utf.h
src/util.h
src/value.c
test/load_file_dump_file.c
test/loadf_dumpf.c
test/loads_dumps.c
test/run-test
test/split-testfile.py
test/test-invalid
test/test-valid

diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..6c6dbed
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2009 Petri Lehtinen <petri@digip.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.
index 9645e9f..c00260c 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * 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 <stdio.h>
 #include <stdlib.h>
 #define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
index 9b79892..91bf553 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * 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
 
 #ifndef JANSSON_H
 #define JANSSON_H
 
index d359ed5..ad8419a 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * 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
 
 #ifndef JANSSON_PRIVATE_H
 #define JANSSON_PRIVATE_H
 
index d28721e..88cd1f0 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * 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 <ctype.h>
 #include <errno.h>
 #define _GNU_SOURCE
 #include <ctype.h>
 #include <errno.h>
index 7de7be4..1a71a53 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * 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 <stdlib.h>
 #include <string.h>
 #define _GNU_SOURCE
 #include <stdlib.h>
 #include <string.h>
index ec1009e..4afefa9 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * 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
 
 #ifndef STRBUFFER_H
 #define STRBUFFER_H
 
index 0adf01b..cf2e8e4 100644 (file)
--- a/src/utf.c
+++ b/src/utf.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * Jansson is free software; you can redistribute it and/or modify
+ * it under the terms of the MIT license. See LICENSE for details.
+ */
+
 #include <string.h>
 
 int utf8_encode(int codepoint, char *buffer, int *size)
 #include <string.h>
 
 int utf8_encode(int codepoint, char *buffer, int *size)
index b49d8a1..75d7b6e 100644 (file)
--- a/src/utf.h
+++ b/src/utf.h
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * 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
 
 #ifndef UTF_H
 #define UTF_H
 
index 5bffa9b..66066c5 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * 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
 
 #ifndef UTIL_H
 #define UTIL_H
 
index 6f0094b..1aaec90 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * 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 <stdlib.h>
 #include <string.h>
 #define _GNU_SOURCE
 #include <stdlib.h>
 #include <string.h>
index 5add119..ac55afe 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * Jansson is free software; you can redistribute it and/or modify
+ * it under the terms of the MIT license. See LICENSE for details.
+ */
+
 #include <stdio.h>
 #include <jansson.h>
 
 #include <stdio.h>
 #include <jansson.h>
 
index ce9d873..75b889f 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * Jansson is free software; you can redistribute it and/or modify
+ * it under the terms of the MIT license. See LICENSE for details.
+ */
+
 #include <stdio.h>
 #include <jansson.h>
 
 #include <stdio.h>
 #include <jansson.h>
 
index ab8db1a..d2a7240 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * Jansson is free software; you can redistribute it and/or modify
+ * it under the terms of the MIT license. See LICENSE for details.
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <jansson.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <jansson.h>
index 2086c82..0df1471 100644 (file)
@@ -1,3 +1,8 @@
+# Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+#
+# 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() {
 VALGRIND_CMDLINE="valgrind --leak-check=full --show-reachable=yes --track-origins=yes -q"
 
 run_testprog() {
index fdbe6ba..0191302 100755 (executable)
@@ -1,4 +1,9 @@
 #!/usr/bin/python
 #!/usr/bin/python
+#
+# Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+#
+# 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
 
 import os
 import sys
index e7268da..60c4cca 100755 (executable)
@@ -1,4 +1,9 @@
 #!/bin/sh
 #!/bin/sh
+#
+# Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+#
+# 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"
 
 
 TESTFILES="${srcdir}/testdata/invalid ${srcdir}/testdata/invalid-unicode"
 
index 45c08fb..55489ea 100755 (executable)
@@ -1,4 +1,9 @@
 #!/bin/sh
 #!/bin/sh
+#
+# Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+#
+# 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"
 
 
 TESTFILES="${srcdir}/testdata/valid"