From 5026f256928cc3d3d6768faa63249bd343a4dd74 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期二, 07 九月 2021 16:14:25 +0800 Subject: [PATCH] 调整defer C.BHFree的执行顺序 --- src/proc_def.h | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/proc_def.h b/src/proc_def.h index cb4dc0a..1d84362 100644 --- a/src/proc_def.h +++ b/src/proc_def.h @@ -8,7 +8,7 @@ #define MAX_STR_LEN 128 //keep the same with serializer in proc check #define MIN_STR_LEN 10 #define MAX_PROC_NUM 128 -#define MAX_TOPICS_NUN 60 +#define MAX_TOPICS_NUN 60 #define PROC_REG 1 #define PROC_UNREG 2 @@ -16,6 +16,9 @@ #define PROC_QUE_TCS 4 #define PROC_QUE_STCS 5 #define PROC_QUE_ATCS 6 + +#define ID_RSV 16 +#define ABS_ID_RSV 18 #define STR_MAGIC "," @@ -40,9 +43,9 @@ ProcInfo procData; int stat; - char reg_info[MAX_STR_LEN]; - char local_info[MAX_STR_LEN]; - char net_info[MAX_STR_LEN]; + char reg_info[MAX_STR_LEN * MAX_TOPICS_NUN]; + char local_info[MAX_STR_LEN * MAX_TOPICS_NUN]; + char net_info[MAX_STR_LEN * MAX_TOPICS_NUN]; int list_num; -- Gitblit v1.8.0