Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
ff3f04f1
提交
ff3f04f1
authored
10月 07, 2008
作者:
Brian West
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
spelling
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@9869
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
5445601f
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
+4
-4
switch_xml.c
src/switch_xml.c
+4
-4
没有找到文件。
src/switch_xml.c
浏览文件 @
ff3f04f1
...
...
@@ -1680,7 +1680,7 @@ SWITCH_DECLARE(switch_xml_t) switch_xml_open_cfg(const char *file_path, switch_x
}
// Encodes ampersand sequences appending the results to *dst, reallocating *dst
// if length exce
de
s max. a is non-zero for attribute encoding. Returns *dst
// if length exce
ed
s max. a is non-zero for attribute encoding. Returns *dst
static
char
*
switch_xml_ampencode
(
const
char
*
s
,
switch_size_t
len
,
char
**
dst
,
switch_size_t
*
dlen
,
switch_size_t
*
max
,
short
a
)
{
const
char
*
e
=
NULL
;
...
...
@@ -1744,7 +1744,7 @@ static char *switch_xml_ampencode(const char *s, switch_size_t len, char **dst,
#define XML_INDENT " "
// Recursively converts each tag to xml appending it to *s. Reallocates *s if
// its length exce
de
s max. start is the location of the previous tag in the
// its length exce
ed
s max. start is the location of the previous tag in the
// parent tag's character content. Returns *s.
static
char
*
switch_xml_toxml_r
(
switch_xml_t
xml
,
char
**
s
,
switch_size_t
*
len
,
switch_size_t
*
max
,
switch_size_t
start
,
char
***
attr
,
uint32_t
*
count
)
{
...
...
@@ -1955,7 +1955,7 @@ SWITCH_DECLARE(void) switch_xml_free(switch_xml_t xml)
switch_xml_free
(
xml
->
ordered
);
if
(
!
xml
->
parent
)
{
// free root tag allocations
for
(
i
=
10
;
root
->
ent
[
i
];
i
+=
2
)
// 0 - 9 are default entites (<>&"')
for
(
i
=
10
;
root
->
ent
[
i
];
i
+=
2
)
// 0 - 9 are default entit
i
es (<>&"')
if
((
s
=
root
->
ent
[
i
+
1
])
<
root
->
s
||
s
>
root
->
e
)
free
(
s
);
free
(
root
->
ent
);
// free list of general entities
...
...
@@ -2541,7 +2541,7 @@ static int glob3(char *pathbuf, char *pathend, char *pathend_last, char *pattern
/*
* Extend the gl_pathv member of a glob_t structure to accomodate a new item,
* Extend the gl_pathv member of a glob_t structure to accom
m
odate a new item,
* add the new item, and update gl_pathc.
*
* This assumes the BSD realloc, which only copies the block when its size
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论