mirror of
https://github.com/simonask/libyaml-safer
synced 2024-11-23 03:43:03 +00:00
Factor out IS_BLANKZ_AT macro
This commit is contained in:
parent
94b45e4af2
commit
9769512036
3 changed files with 52 additions and 716 deletions
391
src/emitter.rs
391
src/emitter.rs
|
@ -1747,8 +1747,9 @@ unsafe fn yaml_emitter_analyze_scalar(
|
|||
flow_indicators = 1_i32;
|
||||
}
|
||||
preceded_by_whitespace = 1_i32;
|
||||
followed_by_whitespace = (*string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
followed_by_whitespace = IS_BLANKZ_AT!(
|
||||
string,
|
||||
if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
|
@ -1758,178 +1759,8 @@ unsafe fn yaml_emitter_analyze_scalar(
|
|||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== -62i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset(
|
||||
((if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) + 1_i32) as isize,
|
||||
) as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset(
|
||||
((if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) + 1_i32) as isize,
|
||||
) as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset(
|
||||
((if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) + 2_i32) as isize,
|
||||
) as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset(
|
||||
((if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) + 1_i32) as isize,
|
||||
) as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset(
|
||||
((if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) + 2_i32) as isize,
|
||||
) as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== '\0' as i32 as yaml_char_t as libc::c_int))
|
||||
as libc::c_int;
|
||||
}
|
||||
) as libc::c_int;
|
||||
while string.pointer != string.end {
|
||||
if string.start == string.pointer {
|
||||
if *string.pointer as libc::c_int == '#' as i32 as yaml_char_t as libc::c_int
|
||||
|
@ -2100,8 +1931,9 @@ unsafe fn yaml_emitter_analyze_scalar(
|
|||
preceded_by_whitespace = IS_BLANKZ!(string) as libc::c_int;
|
||||
MOVE!(string);
|
||||
if string.pointer != string.end {
|
||||
followed_by_whitespace = (*string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
followed_by_whitespace = IS_BLANKZ_AT!(
|
||||
string,
|
||||
if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
|
@ -2111,178 +1943,8 @@ unsafe fn yaml_emitter_analyze_scalar(
|
|||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== -62i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset(
|
||||
((if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) + 1_i32) as isize,
|
||||
) as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset(
|
||||
((if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) + 1_i32) as isize,
|
||||
) as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset(
|
||||
((if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) + 2_i32) as isize,
|
||||
) as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset(
|
||||
((if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) + 1_i32) as isize,
|
||||
) as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset(
|
||||
((if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) + 2_i32) as isize,
|
||||
) as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(
|
||||
(if *string.pointer as libc::c_int & 0x80_i32 == 0_i32 {
|
||||
1_i32
|
||||
} else if *string.pointer as libc::c_int & 0xe0_i32 == 0xc0_i32 {
|
||||
2_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf0_i32 == 0xe0_i32 {
|
||||
3_i32
|
||||
} else if *string.pointer as libc::c_int & 0xf8_i32 == 0xf0_i32 {
|
||||
4_i32
|
||||
} else {
|
||||
0_i32
|
||||
}) as isize,
|
||||
) as libc::c_int
|
||||
== '\0' as i32 as yaml_char_t as libc::c_int))
|
||||
as libc::c_int;
|
||||
}
|
||||
) as libc::c_int;
|
||||
}
|
||||
}
|
||||
(*emitter).scalar_data.multiline = line_breaks;
|
||||
|
@ -3335,38 +2997,7 @@ unsafe fn yaml_emitter_write_folded_scalar(
|
|||
0_i32
|
||||
};
|
||||
}
|
||||
if !(*string.pointer.wrapping_offset(k as isize) as libc::c_int
|
||||
== ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(k as isize) as libc::c_int
|
||||
== '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*string.pointer.wrapping_offset(k as isize) as libc::c_int
|
||||
== '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(k as isize) as libc::c_int
|
||||
== '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(k as isize) as libc::c_int
|
||||
== -62i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset((k + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(k as isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset((k + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset((k + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(k as isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset((k + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *string.pointer.wrapping_offset((k + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *string.pointer.wrapping_offset(k as isize) as libc::c_int
|
||||
== '\0' as i32 as yaml_char_t as libc::c_int))
|
||||
{
|
||||
if !IS_BLANKZ_AT!(string, k) {
|
||||
if !(PUT_BREAK!(emitter)) {
|
||||
return 0_i32;
|
||||
}
|
||||
|
|
|
@ -1,23 +1,37 @@
|
|||
macro_rules! IS_BLANKZ_AT {
|
||||
($string:expr, $offset:expr) => {
|
||||
(*$string.pointer.wrapping_offset($offset as isize) as libc::c_int
|
||||
== ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *$string.pointer.wrapping_offset($offset as isize) as libc::c_int
|
||||
== '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*$string.pointer.wrapping_offset($offset as isize) as libc::c_int
|
||||
== '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *$string.pointer.wrapping_offset($offset as isize) as libc::c_int
|
||||
== '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *$string.pointer.wrapping_offset($offset as isize) as libc::c_int
|
||||
== -62i32 as yaml_char_t as libc::c_int
|
||||
&& *$string.pointer.wrapping_offset($offset as isize + 1) as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *$string.pointer.wrapping_offset($offset as isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *$string.pointer.wrapping_offset($offset as isize + 1) as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *$string.pointer.wrapping_offset($offset as isize + 2) as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *$string.pointer.wrapping_offset($offset as isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *$string.pointer.wrapping_offset($offset as isize + 1) as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *$string.pointer.wrapping_offset($offset as isize + 2) as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *$string.pointer.wrapping_offset($offset as isize) as libc::c_int
|
||||
== '\0' as i32 as yaml_char_t as libc::c_int))
|
||||
};
|
||||
}
|
||||
|
||||
macro_rules! IS_BLANKZ {
|
||||
($string:expr) => {
|
||||
*$string.pointer as libc::c_int == ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *$string.pointer as libc::c_int == '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*$string.pointer as libc::c_int == '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *$string.pointer as libc::c_int == '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *$string.pointer as libc::c_int == -62i32 as yaml_char_t as libc::c_int
|
||||
&& *$string.pointer.wrapping_offset(1_isize) as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *$string.pointer as libc::c_int == -30i32 as yaml_char_t as libc::c_int
|
||||
&& *$string.pointer.wrapping_offset(1_isize) as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *$string.pointer.wrapping_offset(2_isize) as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *$string.pointer as libc::c_int == -30i32 as yaml_char_t as libc::c_int
|
||||
&& *$string.pointer.wrapping_offset(1_isize) as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *$string.pointer.wrapping_offset(2_isize) as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *$string.pointer as libc::c_int == '\0' as i32 as yaml_char_t as libc::c_int)
|
||||
IS_BLANKZ_AT!($string, 0)
|
||||
};
|
||||
}
|
||||
|
||||
|
|
327
src/scanner.rs
327
src/scanner.rs
|
@ -386,37 +386,7 @@ unsafe fn yaml_parser_fetch_next_token(parser: *mut yaml_parser_t) -> libc::c_in
|
|||
== '-' as i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset(2_isize) as libc::c_int
|
||||
== '-' as i32 as yaml_char_t as libc::c_int
|
||||
&& (*((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== -62i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((3_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((3_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((3_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((3_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((3_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== '\0' as i32 as yaml_char_t as libc::c_int))
|
||||
&& IS_BLANKZ_AT!((*parser).buffer, 3)
|
||||
{
|
||||
return yaml_parser_fetch_document_indicator(parser, YAML_DOCUMENT_START_TOKEN);
|
||||
}
|
||||
|
@ -426,37 +396,7 @@ unsafe fn yaml_parser_fetch_next_token(parser: *mut yaml_parser_t) -> libc::c_in
|
|||
== '.' as i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset(2_isize) as libc::c_int
|
||||
== '.' as i32 as yaml_char_t as libc::c_int
|
||||
&& (*((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== -62i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((3_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((3_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((3_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((3_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((3_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== '\0' as i32 as yaml_char_t as libc::c_int))
|
||||
&& IS_BLANKZ_AT!((*parser).buffer, 3)
|
||||
{
|
||||
return yaml_parser_fetch_document_indicator(parser, YAML_DOCUMENT_END_TOKEN);
|
||||
}
|
||||
|
@ -476,109 +416,17 @@ unsafe fn yaml_parser_fetch_next_token(parser: *mut yaml_parser_t) -> libc::c_in
|
|||
return yaml_parser_fetch_flow_entry(parser);
|
||||
}
|
||||
if *((*parser).buffer.pointer) as libc::c_int == '-' as i32 as yaml_char_t as libc::c_int
|
||||
&& (*((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== -62i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\0' as i32 as yaml_char_t as libc::c_int))
|
||||
&& IS_BLANKZ_AT!((*parser).buffer, 1)
|
||||
{
|
||||
return yaml_parser_fetch_block_entry(parser);
|
||||
}
|
||||
if *((*parser).buffer.pointer) as libc::c_int == '?' as i32 as yaml_char_t as libc::c_int
|
||||
&& ((*parser).flow_level != 0
|
||||
|| (*((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== -62i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\0' as i32 as yaml_char_t as libc::c_int)))
|
||||
&& ((*parser).flow_level != 0 || IS_BLANKZ_AT!((*parser).buffer, 1))
|
||||
{
|
||||
return yaml_parser_fetch_key(parser);
|
||||
}
|
||||
if *((*parser).buffer.pointer) as libc::c_int == ':' as i32 as yaml_char_t as libc::c_int
|
||||
&& ((*parser).flow_level != 0
|
||||
|| (*((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== -62i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\0' as i32 as yaml_char_t as libc::c_int)))
|
||||
&& ((*parser).flow_level != 0 || IS_BLANKZ_AT!((*parser).buffer, 1))
|
||||
{
|
||||
return yaml_parser_fetch_value(parser);
|
||||
}
|
||||
|
@ -637,37 +485,7 @@ unsafe fn yaml_parser_fetch_next_token(parser: *mut yaml_parser_t) -> libc::c_in
|
|||
== '?' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer) as libc::c_int
|
||||
== ':' as i32 as yaml_char_t as libc::c_int)
|
||||
&& !(*((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== -62i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer).wrapping_offset((1_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize) as libc::c_int
|
||||
== '\0' as i32 as yaml_char_t as libc::c_int))
|
||||
&& !IS_BLANKZ_AT!((*parser).buffer, 1)
|
||||
{
|
||||
return yaml_parser_fetch_plain_scalar(parser);
|
||||
}
|
||||
|
@ -3859,49 +3677,7 @@ unsafe fn yaml_parser_scan_flow_scalar(
|
|||
&& *((*parser).buffer.pointer).wrapping_offset(2_isize)
|
||||
as libc::c_int
|
||||
== '.' as i32 as yaml_char_t as libc::c_int)
|
||||
&& (*((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== -62i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((3_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((3_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((3_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((3_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((3_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== '\0' as i32 as yaml_char_t as libc::c_int))
|
||||
&& IS_BLANKZ_AT!((*parser).buffer, 3)
|
||||
{
|
||||
yaml_parser_set_scanner_error(
|
||||
parser,
|
||||
|
@ -4765,49 +4541,7 @@ unsafe fn yaml_parser_scan_plain_scalar(
|
|||
&& *((*parser).buffer.pointer).wrapping_offset(2_isize)
|
||||
as libc::c_int
|
||||
== '.' as i32 as yaml_char_t as libc::c_int)
|
||||
&& (*((*parser).buffer.pointer).wrapping_offset(3_isize) as libc::c_int
|
||||
== ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== -62i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((3_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((3_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((3_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((3_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((3_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(3_isize)
|
||||
as libc::c_int
|
||||
== '\0' as i32 as yaml_char_t as libc::c_int))
|
||||
&& IS_BLANKZ_AT!((*parser).buffer, 3)
|
||||
{
|
||||
current_block = 6281126495347172768;
|
||||
break;
|
||||
|
@ -4853,50 +4587,7 @@ unsafe fn yaml_parser_scan_plain_scalar(
|
|||
} else {
|
||||
if *((*parser).buffer.pointer) as libc::c_int
|
||||
== ':' as i32 as yaml_char_t as libc::c_int
|
||||
&& (*((*parser).buffer.pointer).wrapping_offset(1_isize)
|
||||
as libc::c_int
|
||||
== ' ' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize)
|
||||
as libc::c_int
|
||||
== '\t' as i32 as yaml_char_t as libc::c_int
|
||||
|| (*((*parser).buffer.pointer).wrapping_offset(1_isize)
|
||||
as libc::c_int
|
||||
== '\r' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize)
|
||||
as libc::c_int
|
||||
== '\n' as i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize)
|
||||
as libc::c_int
|
||||
== -62i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -123i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize)
|
||||
as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((1_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -88i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize)
|
||||
as libc::c_int
|
||||
== -30i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((1_i32 + 1_i32) as isize)
|
||||
as libc::c_int
|
||||
== -128i32 as yaml_char_t as libc::c_int
|
||||
&& *((*parser).buffer.pointer)
|
||||
.wrapping_offset((1_i32 + 2_i32) as isize)
|
||||
as libc::c_int
|
||||
== -87i32 as yaml_char_t as libc::c_int
|
||||
|| *((*parser).buffer.pointer).wrapping_offset(1_isize)
|
||||
as libc::c_int
|
||||
== '\0' as i32 as yaml_char_t as libc::c_int))
|
||||
&& IS_BLANKZ_AT!((*parser).buffer, 1)
|
||||
|| (*parser).flow_level != 0
|
||||
&& (*((*parser).buffer.pointer) as libc::c_int
|
||||
== ',' as i32 as yaml_char_t as libc::c_int
|
||||
|
|
Loading…
Reference in a new issue