mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the LF,CR
This commit is contained in:
parent
8cd9be4fce
commit
75bfe2af78
1 changed files with 4 additions and 4 deletions
|
@ -57,14 +57,14 @@ int64_t FILE_SIZE(int fd)
|
||||||
}
|
}
|
||||||
|
|
||||||
// '\n'
|
// '\n'
|
||||||
#define LF (char)0x0a
|
#define __LF (char)0x0a
|
||||||
|
|
||||||
// '\r'
|
// '\r'
|
||||||
#define CR (char)0x0d
|
#define __CR (char)0x0d
|
||||||
|
|
||||||
bool is_common_space(char ch)
|
bool is_common_space(char ch)
|
||||||
{
|
{
|
||||||
return (ch == ' ' || ch == '\t' || ch == CR || ch == LF);
|
return (ch == ' ' || ch == '\t' || ch == __CR || ch == __LF);
|
||||||
}
|
}
|
||||||
|
|
||||||
SrsConfDirective::SrsConfDirective()
|
SrsConfDirective::SrsConfDirective()
|
||||||
|
@ -242,7 +242,7 @@ int SrsConfDirective::read_token(_srs_internal::SrsConfigBuffer* buffer, vector<
|
||||||
|
|
||||||
char ch = *buffer->pos++;
|
char ch = *buffer->pos++;
|
||||||
|
|
||||||
if (ch == LF) {
|
if (ch == __LF) {
|
||||||
buffer->line++;
|
buffer->line++;
|
||||||
sharp_comment = false;
|
sharp_comment = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue