Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-07-20 16:19:26 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
75bfe2af78fa81eb80c9557ce72d84e2de138065
75bfe2af
1 parent
8cd9be4f
refine the LF,CR
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
trunk/src/app/srs_app_config.cpp
trunk/src/app/srs_app_config.cpp
查看文件 @
75bfe2a
...
...
@@ -57,14 +57,14 @@ int64_t FILE_SIZE(int fd)
}
// '\n'
#define LF (char)0x0a
#define
__
LF (char)0x0a
// '\r'
#define CR (char)0x0d
#define
__
CR (char)0x0d
bool
is_common_space
(
char
ch
)
{
return
(
ch
==
' '
||
ch
==
'\t'
||
ch
==
CR
||
ch
==
LF
);
return
(
ch
==
' '
||
ch
==
'\t'
||
ch
==
__CR
||
ch
==
__
LF
);
}
SrsConfDirective
::
SrsConfDirective
()
...
...
@@ -242,7 +242,7 @@ int SrsConfDirective::read_token(_srs_internal::SrsConfigBuffer* buffer, vector<
char
ch
=
*
buffer
->
pos
++
;
if
(
ch
==
LF
)
{
if
(
ch
==
__
LF
)
{
buffer
->
line
++
;
sharp_comment
=
false
;
}
...
...
请
注册
或
登录
后发表评论