mirror of
http://159.75.139.228:3000/terry/TBooks.git
synced 2025-01-06 06:43:40 +00:00
update 08/30
This commit is contained in:
parent
cdc752eee6
commit
23f1e8ba27
@ -60,3 +60,12 @@ for (i = 0; i < 5; ++i) {
|
|||||||
```c
|
```c
|
||||||
//这是一个注释
|
//这是一个注释
|
||||||
```
|
```
|
||||||
|
4. 数据格式
|
||||||
|
* 变量声明都按u8/u16/u32,s8/s16/s32格式
|
||||||
|
* 同类状态尽量按枚举类型定义,如
|
||||||
|
```c
|
||||||
|
enum U_SMS{SMS_WORK=0, SMS_CHARGE, SMS_SLEEP} flag;
|
||||||
|
```
|
||||||
|
* 同功能变量尽量定义结构体,便于管理和阅读
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user