Skip to content

Commit 2b02f6e

Browse files
committed
Move copyright notice to top of C files
1 parent cc239f2 commit 2b02f6e

File tree

4 files changed

+64
-68
lines changed

4 files changed

+64
-68
lines changed

c_src/py_callback.c

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1+
/*
2+
* Copyright 2026 Benoit Chesneau
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
/**
218
* @file py_callback.c
319
* @brief Erlang callback support and asyncio integration
420
* @author Benoit Chesneau
5-
* @copyright 2026 Benoit Chesneau. Licensed under Apache License 2.0.
621
*
722
* @ingroup cb
823
*
@@ -68,22 +83,6 @@
6883
* @note This file is included from py_nif.c (single compilation unit)
6984
*/
7085

71-
/*
72-
* Copyright 2026 Benoit Chesneau
73-
*
74-
* Licensed under the Apache License, Version 2.0 (the "License");
75-
* you may not use this file except in compliance with the License.
76-
* You may obtain a copy of the License at
77-
*
78-
* http://www.apache.org/licenses/LICENSE-2.0
79-
*
80-
* Unless required by applicable law or agreed to in writing, software
81-
* distributed under the License is distributed on an "AS IS" BASIS,
82-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
83-
* See the License for the specific language governing permissions and
84-
* limitations under the License.
85-
*/
86-
8786
/* ============================================================================
8887
* Suspended state management
8988
* ============================================================================ */

c_src/py_convert.c

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1+
/*
2+
* Copyright 2026 Benoit Chesneau
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
/**
218
* @file py_convert.c
319
* @brief Bidirectional type conversion between Python and Erlang
420
* @author Benoit Chesneau
5-
* @copyright 2026 Benoit Chesneau. Licensed under Apache License 2.0.
621
*
722
* @ingroup convert
823
*
@@ -31,22 +46,6 @@
3146
* @note This file is included from py_nif.c (single compilation unit)
3247
*/
3348

34-
/*
35-
* Copyright 2026 Benoit Chesneau
36-
*
37-
* Licensed under the Apache License, Version 2.0 (the "License");
38-
* you may not use this file except in compliance with the License.
39-
* You may obtain a copy of the License at
40-
*
41-
* http://www.apache.org/licenses/LICENSE-2.0
42-
*
43-
* Unless required by applicable law or agreed to in writing, software
44-
* distributed under the License is distributed on an "AS IS" BASIS,
45-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
46-
* See the License for the specific language governing permissions and
47-
* limitations under the License.
48-
*/
49-
5049
/* ============================================================================
5150
* Python to Erlang Conversion
5251
* ============================================================================ */

c_src/py_exec.c

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1+
/*
2+
* Copyright 2026 Benoit Chesneau
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
/**
218
* @file py_exec.c
319
* @brief Python execution engine and GIL management
420
* @author Benoit Chesneau
5-
* @copyright 2026 Benoit Chesneau. Licensed under Apache License 2.0.
621
*
722
* @ingroup exec
823
*
@@ -53,22 +68,6 @@
5368
* @note This file is included from py_nif.c (single compilation unit)
5469
*/
5570

56-
/*
57-
* Copyright 2026 Benoit Chesneau
58-
*
59-
* Licensed under the Apache License, Version 2.0 (the "License");
60-
* you may not use this file except in compliance with the License.
61-
* You may obtain a copy of the License at
62-
*
63-
* http://www.apache.org/licenses/LICENSE-2.0
64-
*
65-
* Unless required by applicable law or agreed to in writing, software
66-
* distributed under the License is distributed on an "AS IS" BASIS,
67-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
68-
* See the License for the specific language governing permissions and
69-
* limitations under the License.
70-
*/
71-
7271
/* ============================================================================
7372
* Timeout Support
7473
*

c_src/py_nif.h

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1+
/*
2+
* Copyright 2026 Benoit Chesneau
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
/**
218
* @file py_nif.h
319
* @brief Shared header for the Python-Erlang NIF integration
420
* @author Benoit Chesneau
5-
* @copyright 2026 Benoit Chesneau. Licensed under Apache License 2.0.
621
*
722
* @mainpage Python-Erlang NIF Integration
823
*
@@ -56,22 +71,6 @@
5671
* - Proper cleanup in resource destructors
5772
*/
5873

59-
/*
60-
* Copyright 2026 Benoit Chesneau
61-
*
62-
* Licensed under the Apache License, Version 2.0 (the "License");
63-
* you may not use this file except in compliance with the License.
64-
* You may obtain a copy of the License at
65-
*
66-
* http://www.apache.org/licenses/LICENSE-2.0
67-
*
68-
* Unless required by applicable law or agreed to in writing, software
69-
* distributed under the License is distributed on an "AS IS" BASIS,
70-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
71-
* See the License for the specific language governing permissions and
72-
* limitations under the License.
73-
*/
74-
7574
#ifndef PY_NIF_H
7675
#define PY_NIF_H
7776

0 commit comments

Comments
 (0)