新增代码规范检查钩子(规范V1.0 可机械校验项)并修复存量违规
新增 scripts/check_coding_standard.py + coding-standard 钩子(S1~S9: 头文件保护宏、文件头注释、宏大写、_t 后缀、switch default、 禁 strcpy/sprintf/goto/Tab、函数注释) 修复存量违规:NET_* 字节序宏大写化、net_fd_set 等类型加 _t 后缀、 net_inet_ntoa 的 sprintf 改 snprintf、补 4 处函数注释与 ui_task.c 文件头 docs/代码规范/pre-commit使用说明.md:新增 2.8 节,修正失效文档路径
This commit is contained in:
@@ -596,8 +596,8 @@ static void phase8_run(int32_t sockfd) {
|
||||
static uint32_t s_phase9_count = 0;
|
||||
|
||||
static void phase9_run(int32_t sockfd) {
|
||||
net_fd_set readfds;
|
||||
net_timeval tv;
|
||||
net_fd_set_t readfds;
|
||||
net_timeval_t tv;
|
||||
|
||||
/*
|
||||
* 配置 select:只监测 Socket 0 的可读状态,超时 50ms。
|
||||
|
||||
Reference in New Issue
Block a user