Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
阿啄debugIT
libfastcommon
提交
3ff6cd88
L
libfastcommon
项目概览
阿啄debugIT
/
libfastcommon
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libfastcommon
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3ff6cd88
编写于
8月 29, 2020
作者:
Y
YuQing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ini_file_reader.h: add struct ini_full_context
上级
cc80f721
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
19 addition
and
2 deletion
+19
-2
HISTORY
HISTORY
+1
-1
src/common_define.h
src/common_define.h
+1
-1
src/ini_file_reader.h
src/ini_file_reader.h
+17
-0
未找到文件。
HISTORY
浏览文件 @
3ff6cd88
Version 1.44 2020-08-2
4
Version 1.44 2020-08-2
9
* add test file src/tests/test_pthread_lock.c
* add uniq_skiplist.[hc]
* add function split_string_ex
...
...
src/common_define.h
浏览文件 @
3ff6cd88
...
...
@@ -86,7 +86,7 @@ extern int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int kind);
#define CONF_FILE_DIR "conf"
#define DEFAULT_CONNECT_TIMEOUT 10
#define DEFAULT_NETWORK_TIMEOUT 30
#define DEFAULT_MAX_CONNECTONS
1024
#define DEFAULT_MAX_CONNECTONS
256
#define DEFAULT_WORK_THREADS 4
#define SYNC_LOG_BUFF_DEF_INTERVAL 10
#define TIME_NONE -1
...
...
src/ini_file_reader.h
浏览文件 @
3ff6cd88
...
...
@@ -33,6 +33,16 @@
typedef
bool
(
*
IniSectionNameFilterFunc
)(
const
char
*
section_name
,
const
int
name_len
,
void
*
args
);
#define FAST_INI_SET_FULL_CTX_EX(ctx, config_file, sname, ini_context) \
do { \
ctx.filename = config_file; \
ctx.section_name = sname; \
ctx.context = ini_context; \
} while (0)
#define FAST_INI_SET_FULL_CTX(ctx, config_file, sname) \
FAST_INI_SET_FULL_CTX_EX(ctx, config_file, sname, NULL)
typedef
struct
ini_item
{
char
name
[
FAST_INI_ITEM_NAME_SIZE
];
...
...
@@ -62,6 +72,13 @@ typedef struct ini_context
char
flags
;
}
IniContext
;
typedef
struct
ini_full_context
{
const
char
*
filename
;
const
char
*
section_name
;
IniContext
*
context
;
}
IniFullContext
;
typedef
struct
ini_annotation_entry
{
char
*
func_name
;
void
*
arg
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录