Add license headers to C sample code

Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/8fd3d585
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/8fd3d585
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/8fd3d585

Branch: refs/heads/master
Commit: 8fd3d5858b5b12bd06719bf46c1443b2e370bdb2
Parents: 895c2e5
Author: Nick Wellnhofer <[email protected]>
Authored: Sat Jan 9 15:53:58 2016 +0100
Committer: Nick Wellnhofer <[email protected]>
Committed: Sat Jan 9 15:56:10 2016 +0100

----------------------------------------------------------------------
 c/sample/indexer.c        | 16 ++++++++++++++++
 c/sample/indexer_simple.c | 16 ++++++++++++++++
 c/sample/search.c         | 16 ++++++++++++++++
 c/sample/search_simple.c  | 16 ++++++++++++++++
 4 files changed, 64 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/8fd3d585/c/sample/indexer.c
----------------------------------------------------------------------
diff --git a/c/sample/indexer.c b/c/sample/indexer.c
index 1a00fd7..1692297 100644
--- a/c/sample/indexer.c
+++ b/c/sample/indexer.c
@@ -1,3 +1,19 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file 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.
+ */
+
 #include <dirent.h>
 #include <stdio.h>
 #include <stdlib.h>

http://git-wip-us.apache.org/repos/asf/lucy/blob/8fd3d585/c/sample/indexer_simple.c
----------------------------------------------------------------------
diff --git a/c/sample/indexer_simple.c b/c/sample/indexer_simple.c
index a348969..c220fe8 100644
--- a/c/sample/indexer_simple.c
+++ b/c/sample/indexer_simple.c
@@ -1,3 +1,19 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file 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.
+ */
+
 #include <dirent.h>
 #include <stdio.h>
 #include <stdlib.h>

http://git-wip-us.apache.org/repos/asf/lucy/blob/8fd3d585/c/sample/search.c
----------------------------------------------------------------------
diff --git a/c/sample/search.c b/c/sample/search.c
index b0c1ffd..d8db462 100644
--- a/c/sample/search.c
+++ b/c/sample/search.c
@@ -1,3 +1,19 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file 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.
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

http://git-wip-us.apache.org/repos/asf/lucy/blob/8fd3d585/c/sample/search_simple.c
----------------------------------------------------------------------
diff --git a/c/sample/search_simple.c b/c/sample/search_simple.c
index 31822e7..b3e6e66 100644
--- a/c/sample/search_simple.c
+++ b/c/sample/search_simple.c
@@ -1,3 +1,19 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file 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.
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

Reply via email to