正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -57,14 +57,14 @@ int64_t FILE_SIZE(int fd) | @@ -57,14 +57,14 @@ int64_t FILE_SIZE(int fd) | ||
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | // '\n' | 59 | // '\n' |
| 60 | -#define LF (char)0x0a | 60 | +#define __LF (char)0x0a |
| 61 | 61 | ||
| 62 | // '\r' | 62 | // '\r' |
| 63 | -#define CR (char)0x0d | 63 | +#define __CR (char)0x0d |
| 64 | 64 | ||
| 65 | bool is_common_space(char ch) | 65 | bool is_common_space(char ch) |
| 66 | { | 66 | { |
| 67 | - return (ch == ' ' || ch == '\t' || ch == CR || ch == LF); | 67 | + return (ch == ' ' || ch == '\t' || ch == __CR || ch == __LF); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | SrsConfDirective::SrsConfDirective() | 70 | SrsConfDirective::SrsConfDirective() |
| @@ -242,7 +242,7 @@ int SrsConfDirective::read_token(_srs_internal::SrsConfigBuffer* buffer, vector< | @@ -242,7 +242,7 @@ int SrsConfDirective::read_token(_srs_internal::SrsConfigBuffer* buffer, vector< | ||
| 242 | 242 | ||
| 243 | char ch = *buffer->pos++; | 243 | char ch = *buffer->pos++; |
| 244 | 244 | ||
| 245 | - if (ch == LF) { | 245 | + if (ch == __LF) { |
| 246 | buffer->line++; | 246 | buffer->line++; |
| 247 | sharp_comment = false; | 247 | sharp_comment = false; |
| 248 | } | 248 | } |
-
请 注册 或 登录 后发表评论