Skip to content

Commit 241a29a

Browse files
authored
Merge pull request #3848 from BernardXiong/fix_doc_license
[skip travis] [Doc] Update file header copyright information for license
2 parents 07ad08e + 9680f5d commit 241a29a

File tree

2 files changed

+18
-39
lines changed

2 files changed

+18
-39
lines changed

documentation/coding_style_cn.md

+10-25
Original file line numberDiff line numberDiff line change
@@ -36,31 +36,16 @@ C语言头文件为了避免多次重复包含,需要定义一个符号。这
3636
在每个源文件文件头上,应该包括相应的版权信息,Change Log 记录:
3737

3838
```c
39-
/*
40-
* File : rtthread.h
41-
* This file is part of RT-Thread RTOS
42-
* COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
43-
*
44-
* This program is free software; you can redistribute it and/or modify
45-
* it under the terms of the GNU General Public License as published by
46-
* the Free Software Foundation; either version 2 of the License, or
47-
* (at your option) any later version.
48-
*
49-
* This program is distributed in the hope that it will be useful,
50-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
51-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
52-
* GNU General Public License for more details.
53-
*
54-
* You should have received a copy of the GNU General Public License along
55-
* with this program; if not, write to the Free Software Foundation, Inc.,
56-
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
57-
*
58-
* Change Logs:
59-
* Date Author Notes
60-
* 2006-03-18 Bernard the first version
61-
* 2006-04-26 Bernard add semaphore APIs
62-
* ...
63-
*/
39+
/*
40+
* Copyright (c) 2006-2020, RT-Thread Development Team
41+
*
42+
* SPDX-License-Identifier: Apache-2.0
43+
*
44+
* Change Logs:
45+
* Date Author Notes
46+
* 2006-03-18 Bernard the first version
47+
* 2006-04-26 Bernard add semaphore APIs
48+
*/
6449
```
6550

6651
例如采用如上的形式。

documentation/coding_style_en.txt

+8-14
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,16 @@ In every header file, there should be copyright information and Change Log
4242
record like this:
4343

4444
/*
45-
* File : rtthread.h
46-
* This file is part of RT-Thread RTOS
47-
* COPYRIGHT (C) 2006, RT-Thread Development Team
48-
*
49-
* The license and distribution terms for this file may be
50-
* found in the file LICENSE in this distribution or at
51-
* http://www.rt-thread.org/license/LICENSE.
52-
*
53-
* Change Logs:
54-
* Date Author Notes
55-
* 2006-03-18 Bernard the first version
56-
* 2006-04-26 Bernard add semaphore APIs
57-
* ...
45+
* Copyright (c) 2006-2020, RT-Thread Development Team
46+
*
47+
* SPDX-License-Identifier: Apache-2.0
48+
*
49+
* Change Logs:
50+
* Date Author Notes
51+
* 2006-03-18 Bernard the first version
52+
* 2006-04-26 Bernard add semaphore APIs
5853
*/
5954

60-
6155
5. Structure Defines
6256

6357
Please name structures in lower-case and connect words with "_". For example:

0 commit comments

Comments
 (0)