aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE19
-rw-r--r--src/dump.c7
-rw-r--r--src/jansson.h7
-rw-r--r--src/jansson_private.h7
-rw-r--r--src/load.c7
-rw-r--r--src/strbuffer.c7
-rw-r--r--src/strbuffer.h7
-rw-r--r--src/utf.c7
-rw-r--r--src/utf.h7
-rw-r--r--src/util.h7
-rw-r--r--src/value.c7
-rw-r--r--test/load_file_dump_file.c7
-rw-r--r--test/loadf_dumpf.c7
-rw-r--r--test/loads_dumps.c7
-rw-r--r--test/run-test5
-rwxr-xr-xtest/split-testfile.py5
-rwxr-xr-xtest/test-invalid5
-rwxr-xr-xtest/test-valid5
18 files changed, 130 insertions, 0 deletions
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 <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.
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 <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>
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 <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
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 <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
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 <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>
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 <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>
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 <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
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 <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)
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 <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
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 <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
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 <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>
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 <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>
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 <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>
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 <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>
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 <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() {
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 <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
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 <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"
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 <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"