已合并
capi告警整改 #3670
zql_666创建于 7月3日
capi告警整改 #3670
已合并
共 2 个文件变更+4-1
| @@ -34,6 +34,8 @@ | |||
| 34 | #ifndef ARKWEB_INTERFACE_H | 34 | #ifndef ARKWEB_INTERFACE_H |
| 35 | #define ARKWEB_INTERFACE_H | 35 | #define ARKWEB_INTERFACE_H |
| 36 | 36 | ||
| 37 | +#include <stdbool.h> | ||
| 38 | + | ||
| 37 | #include "arkweb_type.h" | 39 | #include "arkweb_type.h" |
| 38 | 40 | ||
| 39 | #ifdef __cplusplus | 41 | #ifdef __cplusplus |
| @@ -34,6 +34,7 @@ | |||
| 34 | #ifndef ARKWEB_TYPE_H | 34 | #ifndef ARKWEB_TYPE_H |
| 35 | #define ARKWEB_TYPE_H | 35 | #define ARKWEB_TYPE_H |
| 36 | 36 | ||
| 37 | +#include <stdbool.h> | ||
| 37 | #include <stddef.h> | 38 | #include <stddef.h> |
| 38 | #include <stdint.h> | 39 | #include <stdint.h> |
| 39 | 40 | ||
| @@ -601,7 +602,7 @@ typedef struct { | |||
| 601 | * @since 12 | 602 | * @since 12 |
| 602 | */ | 603 | */ |
| 603 | #define ARKWEB_MEMBER_EXISTS(s, f) \ | 604 | #define ARKWEB_MEMBER_EXISTS(s, f) \ |
| 604 | - ((intptr_t) & ((s)->f) - (intptr_t)(s) + sizeof((s)->f) <= *reinterpret_cast<size_t*>(s)) | 605 | + ((intptr_t) & ((s)->f) - (intptr_t)(s) + sizeof((s)->f) <= *(size_t *)(s)) |
| 605 | 606 | ||
| 606 | /** | 607 | /** |
| 607 | * @brief 当前结构体存在该成员变量则返回false,否则返回true。 | 608 | * @brief 当前结构体存在该成员变量则返回false,否则返回true。 |