Skip to content
Browse files

Added missing headers for some ejson source files

Thanks to Paul Davis for noticing this.


git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1089181 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 7570bb5 commit 2e99f965af6f0010973c528ff5f60bb7312ca2d1 @fdmanana fdmanana committed
Showing with 72 additions and 6 deletions.
  1. +18 −0 LICENSE
  2. +0 −6 NOTICE
  3. +12 −0 src/ejson/decode.c
  4. +12 −0 src/ejson/ejson.erl
  5. +12 −0 src/ejson/encode.c
  6. +18 −0 src/ejson/erl_nif_compat.h
View
18 LICENSE
@@ -401,3 +401,21 @@ 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.
+For the src/ejson/erl_nif_compat.h file
+
+ Copyright (c) 2010-2011 Basho Technologies, Inc.
+ With some minor modifications for Apache CouchDB.
+
+ This file is provided to you under the Apache License,
+ Version 2.0 (the "License"); you may not use this file
+ except in compliance with the License. You may obtain
+ a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
View
6 NOTICE
@@ -53,9 +53,3 @@ This product also includes the following third-party components:
* yajl (http://lloyd.github.com/yajl/)
Copyright 2010, Lloyd Hilaiel
-
- * ejson
-
- Based on Paul Davis' eep0018 implementation (https://github.com/davisp/eep0018/),
- with some modifications from Damien Katz, Filipe Manana and Benoît Chesneau.
- This application uses yajl.
View
12 src/ejson/decode.c
@@ -1,3 +1,15 @@
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License. You may obtain a copy of
+// the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations under
+// the License.
+
#include <assert.h>
#include <stdio.h>
#include <string.h>
View
12 src/ejson/ejson.erl
@@ -1,3 +1,15 @@
+% Licensed under the Apache License, Version 2.0 (the "License"); you may not
+% use this file except in compliance with the License. You may obtain a copy of
+% the License at
+%
+% http://www.apache.org/licenses/LICENSE-2.0
+%
+% Unless required by applicable law or agreed to in writing, software
+% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% License for the specific language governing permissions and limitations under
+% the License.
+
-module(ejson).
-export([encode/1, decode/1]).
-on_load(init/0).
View
12 src/ejson/encode.c
@@ -1,3 +1,15 @@
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License. You may obtain a copy of
+// the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations under
+// the License.
+
#include <stdio.h>
#include <string.h>
#include <math.h>
View
18 src/ejson/erl_nif_compat.h
@@ -1,3 +1,21 @@
+/* Copyright (c) 2010-2011 Basho Technologies, Inc.
+ * With some minor modifications for Apache CouchDB.
+ *
+ * This file is provided to you under the Apache License,
+ * Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain
+ * a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+*/
+
#ifndef ERL_NIF_COMPAT_H_
#define ERL_NIF_COMPAT_H_

0 comments on commit 2e99f96

Please sign in to comment.
Something went wrong with that request. Please try again.