diff options
| author | emlslxl <[email protected]> | 2018-03-06 11:46:53 +0800 |
|---|---|---|
| committer | emlslxl <[email protected]> | 2018-03-06 11:46:53 +0800 |
| commit | 417ecef5ce5e75097362052f2c2bedc374f28f42 (patch) | |
| tree | 8a079146c1c5eb202fc74eb3965066d9ee037d04 /documentation/coding_style_cn.md | |
| parent | 8f2588d609b01a59ee4ea8fba6e01a07f49182e5 (diff) | |
添加astyle工具的配置语句,格式化时可以实现宏定义的块缩进。
更改省略号为英文状态下的... 统一文件编码格式统一为UTF-8
Diffstat (limited to 'documentation/coding_style_cn.md')
| -rw-r--r-- | documentation/coding_style_cn.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/documentation/coding_style_cn.md b/documentation/coding_style_cn.md index fdb49789f7..0aff3cb543 100644 --- a/documentation/coding_style_cn.md +++ b/documentation/coding_style_cn.md @@ -59,7 +59,7 @@ C语言头文件为了避免多次重复包含,需要定义一个符号。这� * Date Author Notes * 2006-03-18 Bernard the first version * 2006-04-26 Bernard add semaphore APIs - * … + * ... */ ``` @@ -125,7 +125,7 @@ C语言头文件为了避免多次重复包含,需要定义一个符号。这� 行都采用缩进的方式,例如: ```c - if (condition) + if (condition) { /* others */ } @@ -237,6 +237,7 @@ rt_timer + 动词短语的形式表示能够应用于 timer 对象的方法。 参数:--style=allman --indent=spaces=4 + --indent-preproc-block --pad-oper --pad-header --unpad-paren |
