Lines Matching full:libc
6 libc, yaml_break_t, yaml_document_t, yaml_emitter_state_t, yaml_emitter_t, yaml_encoding_t,
25 pub(crate) unsafe fn yaml_malloc(size: size_t) -> *mut libc::c_void { in yaml_malloc()
29 pub(crate) unsafe fn yaml_realloc(ptr: *mut libc::c_void, size: size_t) -> *mut libc::c_void { in yaml_realloc()
37 pub(crate) unsafe fn yaml_free(ptr: *mut libc::c_void) { in yaml_free()
47 strdup(str as *mut libc::c_char) as *mut yaml_char_t in yaml_strdup()
56 *start as *mut libc::c_void, in yaml_string_extend()
57 (((*end).c_offset_from(*start) as libc::c_long).force_mul(2_i64)) as size_t, in yaml_string_extend()
60 new_start.wrapping_offset((*end).c_offset_from(*start) as libc::c_long as isize) in yaml_string_extend()
61 as *mut libc::c_void, in yaml_string_extend()
63 (*end).c_offset_from(*start) as libc::c_ulong, in yaml_string_extend()
65 *pointer = new_start.wrapping_offset((*pointer).c_offset_from(*start) as libc::c_long as isize); in yaml_string_extend()
67 (((*end).c_offset_from(*start) as libc::c_long).force_mul(2_i64)) as isize, in yaml_string_extend()
83 while (*a_end).c_offset_from(*a_pointer) as libc::c_long in yaml_string_join()
84 <= (*b_pointer).c_offset_from(*b_start) as libc::c_long in yaml_string_join()
89 *a_pointer as *mut libc::c_void, in yaml_string_join()
90 *b_start as *const libc::c_void, in yaml_string_join() constant
91 (*b_pointer).c_offset_from(*b_start) as libc::c_ulong, in yaml_string_join()
94 (*a_pointer).wrapping_offset((*b_pointer).c_offset_from(*b_start) as libc::c_long as isize); in yaml_string_join()
98 start: *mut *mut libc::c_void, in yaml_stack_extend()
99 top: *mut *mut libc::c_void, in yaml_stack_extend()
100 end: *mut *mut libc::c_void, in yaml_stack_extend()
102 let new_start: *mut libc::c_void = yaml_realloc( in yaml_stack_extend()
104 (((*end as *mut libc::c_char).c_offset_from(*start as *mut libc::c_char) as libc::c_long) in yaml_stack_extend()
107 *top = (new_start as *mut libc::c_char).wrapping_offset( in yaml_stack_extend()
108 (*top as *mut libc::c_char).c_offset_from(*start as *mut libc::c_char) as libc::c_long in yaml_stack_extend()
110 ) as *mut libc::c_void; in yaml_stack_extend()
111 *end = (new_start as *mut libc::c_char).wrapping_offset( in yaml_stack_extend()
112 (((*end as *mut libc::c_char).c_offset_from(*start as *mut libc::c_char) as libc::c_long) in yaml_stack_extend()
114 ) as *mut libc::c_void; in yaml_stack_extend()
119 start: *mut *mut libc::c_void, in yaml_queue_extend()
120 head: *mut *mut libc::c_void, in yaml_queue_extend()
121 tail: *mut *mut libc::c_void, in yaml_queue_extend()
122 end: *mut *mut libc::c_void, in yaml_queue_extend()
125 let new_start: *mut libc::c_void = yaml_realloc( in yaml_queue_extend()
127 (((*end as *mut libc::c_char).c_offset_from(*start as *mut libc::c_char) in yaml_queue_extend()
128 as libc::c_long) in yaml_queue_extend()
131 *head = (new_start as *mut libc::c_char).wrapping_offset( in yaml_queue_extend()
132 (*head as *mut libc::c_char).c_offset_from(*start as *mut libc::c_char) as libc::c_long in yaml_queue_extend()
134 ) as *mut libc::c_void; in yaml_queue_extend()
135 *tail = (new_start as *mut libc::c_char).wrapping_offset( in yaml_queue_extend()
136 (*tail as *mut libc::c_char).c_offset_from(*start as *mut libc::c_char) as libc::c_long in yaml_queue_extend()
138 ) as *mut libc::c_void; in yaml_queue_extend()
139 *end = (new_start as *mut libc::c_char).wrapping_offset( in yaml_queue_extend()
140 (((*end as *mut libc::c_char).c_offset_from(*start as *mut libc::c_char) in yaml_queue_extend()
141 as libc::c_long) in yaml_queue_extend()
143 ) as *mut libc::c_void; in yaml_queue_extend()
151 (*tail as *mut libc::c_char).c_offset_from(*head as *mut libc::c_char) in yaml_queue_extend()
152 as libc::c_ulong, in yaml_queue_extend()
155 *tail = (*start as *mut libc::c_char).wrapping_offset( in yaml_queue_extend()
156 (*tail as *mut libc::c_char).c_offset_from(*head as *mut libc::c_char) as libc::c_long in yaml_queue_extend()
158 ) as *mut libc::c_void; in yaml_queue_extend()
170 parser as *mut libc::c_void, in yaml_parser_initialize()
172 size_of::<yaml_parser_t>() as libc::c_ulong, in yaml_parser_initialize()
177 STACK_INIT!((*parser).indents, libc::c_int); in yaml_parser_initialize()
200 yaml_free(tag_directive.handle as *mut libc::c_void); in yaml_parser_delete()
201 yaml_free(tag_directive.prefix as *mut libc::c_void); in yaml_parser_delete()
205 parser as *mut libc::c_void, in yaml_parser_delete()
207 size_of::<yaml_parser_t>() as libc::c_ulong, in yaml_parser_delete()
212 data: *mut libc::c_void, in yaml_string_read_handler()
213 buffer: *mut libc::c_uchar, in yaml_string_read_handler()
216 ) -> libc::c_int { in yaml_string_read_handler()
236 buffer as *mut libc::c_void, in yaml_string_read_handler()
237 (*parser).input.string.current as *const libc::c_void, in yaml_string_read_handler() constant
253 input: *const libc::c_uchar, in yaml_parser_set_input_string()
262 as unsafe fn(*mut libc::c_void, *mut libc::c_uchar, size_t, *mut size_t) -> libc::c_int, in yaml_parser_set_input_string()
265 *fresh82 = parser as *mut libc::c_void; in yaml_parser_set_input_string()
278 data: *mut libc::c_void, in yaml_parser_set_input()
302 emitter as *mut libc::c_void, in yaml_emitter_initialize()
304 size_of::<yaml_emitter_t>() as libc::c_ulong, in yaml_emitter_initialize()
310 STACK_INIT!((*emitter).indents, libc::c_int); in yaml_emitter_initialize()
328 yaml_free(tag_directive.handle as *mut libc::c_void); in yaml_emitter_delete()
329 yaml_free(tag_directive.prefix as *mut libc::c_void); in yaml_emitter_delete()
332 yaml_free((*emitter).anchors as *mut libc::c_void); in yaml_emitter_delete()
334 emitter as *mut libc::c_void, in yaml_emitter_delete()
336 size_of::<yaml_emitter_t>() as libc::c_ulong, in yaml_emitter_delete()
341 data: *mut libc::c_void, in yaml_string_write_handler()
342 buffer: *mut libc::c_uchar, in yaml_string_write_handler()
344 ) -> libc::c_int { in yaml_string_write_handler()
359 as *mut libc::c_void, in yaml_string_write_handler()
360 buffer as *const libc::c_void, in yaml_string_write_handler() constant
376 as *mut libc::c_void, in yaml_string_write_handler()
377 buffer as *const libc::c_void, in yaml_string_write_handler() constant
381 *fresh153 = (*fresh153 as libc::c_ulong).force_add(size) as size_t; in yaml_string_write_handler()
393 output: *mut libc::c_uchar, in yaml_emitter_set_output_string()
403 as unsafe fn(*mut libc::c_void, *mut libc::c_uchar, size_t) -> libc::c_int, in yaml_emitter_set_output_string()
406 *fresh155 = emitter as *mut libc::c_void; in yaml_emitter_set_output_string()
419 data: *mut libc::c_void, in yaml_emitter_set_output()
444 pub unsafe fn yaml_emitter_set_indent(emitter: *mut yaml_emitter_t, indent: libc::c_int) { in yaml_emitter_set_indent()
450 pub unsafe fn yaml_emitter_set_width(emitter: *mut yaml_emitter_t, width: libc::c_int) { in yaml_emitter_set_width()
472 yaml_free((*token).data.tag_directive.handle as *mut libc::c_void); in yaml_token_delete()
473 yaml_free((*token).data.tag_directive.prefix as *mut libc::c_void); in yaml_token_delete()
476 yaml_free((*token).data.alias.value as *mut libc::c_void); in yaml_token_delete()
479 yaml_free((*token).data.anchor.value as *mut libc::c_void); in yaml_token_delete()
482 yaml_free((*token).data.tag.handle as *mut libc::c_void); in yaml_token_delete()
483 yaml_free((*token).data.tag.suffix as *mut libc::c_void); in yaml_token_delete()
486 yaml_free((*token).data.scalar.value as *mut libc::c_void); in yaml_token_delete()
491 token as *mut libc::c_void, in yaml_token_delete()
493 size_of::<yaml_token_t>() as libc::c_ulong, in yaml_token_delete()
501 let mut octet: libc::c_uchar; in yaml_check_utf8()
502 let mut value: libc::c_uint; in yaml_check_utf8()
505 let width: libc::c_uint = if octet & 0x80 == 0 { in yaml_check_utf8()
515 } as libc::c_uint; in yaml_check_utf8()
526 } as libc::c_uint; in yaml_check_utf8()
534 while k < width as libc::c_ulong { in yaml_check_utf8()
539 value = (value << 6).force_add((octet & 0x3F) as libc::c_uint); in yaml_check_utf8()
566 event as *mut libc::c_void, in yaml_stream_start_event_initialize()
568 size_of::<yaml_event_t>() as libc::c_ulong, in yaml_stream_start_event_initialize()
586 event as *mut libc::c_void, in yaml_stream_end_event_initialize()
588 size_of::<yaml_event_t>() as libc::c_ulong, in yaml_stream_end_event_initialize()
635 version_directive_copy = yaml_malloc(size_of::<yaml_version_directive_t>() as libc::c_ulong) in yaml_document_start_event_initialize()
653 strlen((*tag_directive).handle as *mut libc::c_char), in yaml_document_start_event_initialize()
662 strlen((*tag_directive).prefix as *mut libc::c_char), in yaml_document_start_event_initialize()
685 event as *mut libc::c_void, in yaml_document_start_event_initialize()
687 size_of::<yaml_event_t>() as libc::c_ulong, in yaml_document_start_event_initialize()
701 yaml_free(version_directive_copy as *mut libc::c_void); in yaml_document_start_event_initialize()
704 yaml_free(value.handle as *mut libc::c_void); in yaml_document_start_event_initialize()
705 yaml_free(value.prefix as *mut libc::c_void); in yaml_document_start_event_initialize()
708 yaml_free(value.handle as *mut libc::c_void); in yaml_document_start_event_initialize()
709 yaml_free(value.prefix as *mut libc::c_void); in yaml_document_start_event_initialize()
728 event as *mut libc::c_void, in yaml_document_end_event_initialize()
730 size_of::<yaml_event_t>() as libc::c_ulong, in yaml_document_end_event_initialize()
751 if yaml_check_utf8(anchor, strlen(anchor as *mut libc::c_char)).fail { in yaml_alias_event_initialize()
759 event as *mut libc::c_void, in yaml_alias_event_initialize()
761 size_of::<yaml_event_t>() as libc::c_ulong, in yaml_alias_event_initialize()
783 mut length: libc::c_int, in yaml_scalar_event_initialize()
800 if yaml_check_utf8(anchor, strlen(anchor as *mut libc::c_char)).fail { in yaml_scalar_event_initialize()
815 if yaml_check_utf8(tag, strlen(tag as *mut libc::c_char)).fail { in yaml_scalar_event_initialize()
830 length = strlen(value as *mut libc::c_char) as libc::c_int; in yaml_scalar_event_initialize()
835 value_copy as *mut libc::c_void, in yaml_scalar_event_initialize()
836 value as *const libc::c_void, in yaml_scalar_event_initialize() constant
837 length as libc::c_ulong, in yaml_scalar_event_initialize()
841 event as *mut libc::c_void, in yaml_scalar_event_initialize()
843 size_of::<yaml_event_t>() as libc::c_ulong, in yaml_scalar_event_initialize()
862 yaml_free(anchor_copy as *mut libc::c_void); in yaml_scalar_event_initialize()
863 yaml_free(tag_copy as *mut libc::c_void); in yaml_scalar_event_initialize()
864 yaml_free(value_copy as *mut libc::c_void); in yaml_scalar_event_initialize()
890 if yaml_check_utf8(anchor, strlen(anchor as *mut libc::c_char)).fail { in yaml_sequence_start_event_initialize()
906 if yaml_check_utf8(tag, strlen(tag as *mut libc::c_char)).fail { in yaml_sequence_start_event_initialize()
921 event as *mut libc::c_void, in yaml_sequence_start_event_initialize()
923 size_of::<yaml_event_t>() as libc::c_ulong, in yaml_sequence_start_event_initialize()
939 yaml_free(anchor_copy as *mut libc::c_void); in yaml_sequence_start_event_initialize()
940 yaml_free(tag_copy as *mut libc::c_void); in yaml_sequence_start_event_initialize()
953 event as *mut libc::c_void, in yaml_sequence_end_event_initialize()
955 size_of::<yaml_event_t>() as libc::c_ulong, in yaml_sequence_end_event_initialize()
985 if yaml_check_utf8(anchor, strlen(anchor as *mut libc::c_char)).fail { in yaml_mapping_start_event_initialize()
1000 if yaml_check_utf8(tag, strlen(tag as *mut libc::c_char)).fail { in yaml_mapping_start_event_initialize()
1015 event as *mut libc::c_void, in yaml_mapping_start_event_initialize()
1017 size_of::<yaml_event_t>() as libc::c_ulong, in yaml_mapping_start_event_initialize()
1031 yaml_free(anchor_copy as *mut libc::c_void); in yaml_mapping_start_event_initialize()
1032 yaml_free(tag_copy as *mut libc::c_void); in yaml_mapping_start_event_initialize()
1045 event as *mut libc::c_void, in yaml_mapping_end_event_initialize()
1047 size_of::<yaml_event_t>() as libc::c_ulong, in yaml_mapping_end_event_initialize()
1061 yaml_free((*event).data.document_start.version_directive as *mut libc::c_void); in yaml_event_delete()
1064 yaml_free((*tag_directive).handle as *mut libc::c_void); in yaml_event_delete()
1065 yaml_free((*tag_directive).prefix as *mut libc::c_void); in yaml_event_delete()
1068 yaml_free((*event).data.document_start.tag_directives.start as *mut libc::c_void); in yaml_event_delete()
1071 yaml_free((*event).data.alias.anchor as *mut libc::c_void); in yaml_event_delete()
1074 yaml_free((*event).data.scalar.anchor as *mut libc::c_void); in yaml_event_delete()
1075 yaml_free((*event).data.scalar.tag as *mut libc::c_void); in yaml_event_delete()
1076 yaml_free((*event).data.scalar.value as *mut libc::c_void); in yaml_event_delete()
1079 yaml_free((*event).data.sequence_start.anchor as *mut libc::c_void); in yaml_event_delete()
1080 yaml_free((*event).data.sequence_start.tag as *mut libc::c_void); in yaml_event_delete()
1083 yaml_free((*event).data.mapping_start.anchor as *mut libc::c_void); in yaml_event_delete()
1084 yaml_free((*event).data.mapping_start.tag as *mut libc::c_void); in yaml_event_delete()
1089 event as *mut libc::c_void, in yaml_event_delete()
1091 size_of::<yaml_event_t>() as libc::c_ulong, in yaml_event_delete()
1143 version_directive_copy = yaml_malloc(size_of::<yaml_version_directive_t>() as libc::c_ulong) in yaml_document_initialize()
1161 strlen((*tag_directive).handle as *mut libc::c_char), in yaml_document_initialize()
1170 strlen((*tag_directive).prefix as *mut libc::c_char), in yaml_document_initialize()
1193 document as *mut libc::c_void, in yaml_document_initialize()
1195 size_of::<yaml_document_t>() as libc::c_ulong, in yaml_document_initialize()
1216 yaml_free(version_directive_copy as *mut libc::c_void); in yaml_document_initialize()
1219 yaml_free(value.handle as *mut libc::c_void); in yaml_document_initialize()
1220 yaml_free(value.prefix as *mut libc::c_void); in yaml_document_initialize()
1223 yaml_free(value.handle as *mut libc::c_void); in yaml_document_initialize()
1224 yaml_free(value.prefix as *mut libc::c_void); in yaml_document_initialize()
1234 yaml_free(node.tag as *mut libc::c_void); in yaml_document_delete()
1237 yaml_free(node.data.scalar.value as *mut libc::c_void); in yaml_document_delete()
1251 yaml_free((*document).version_directive as *mut libc::c_void); in yaml_document_delete()
1254 yaml_free((*tag_directive).handle as *mut libc::c_void); in yaml_document_delete()
1255 yaml_free((*tag_directive).prefix as *mut libc::c_void); in yaml_document_delete()
1258 yaml_free((*document).tag_directives.start as *mut libc::c_void); in yaml_document_delete()
1260 document as *mut libc::c_void, in yaml_document_delete()
1262 size_of::<yaml_document_t>() as libc::c_ulong, in yaml_document_delete()
1274 index: libc::c_int, in yaml_document_get_node()
1316 mut length: libc::c_int, in yaml_document_add_scalar()
1318 ) -> libc::c_int { in yaml_document_add_scalar()
1331 tag = b"tag:yaml.org,2002:str\0" as *const u8 as *const libc::c_char as *mut yaml_char_t; in yaml_document_add_scalar() constant
1333 if yaml_check_utf8(tag, strlen(tag as *mut libc::c_char)).ok { in yaml_document_add_scalar()
1337 length = strlen(value as *mut libc::c_char) as libc::c_int; in yaml_document_add_scalar()
1342 value_copy as *mut libc::c_void, in yaml_document_add_scalar()
1343 value as *const libc::c_void, in yaml_document_add_scalar() constant
1344 length as libc::c_ulong, in yaml_document_add_scalar()
1348 node as *mut libc::c_void, in yaml_document_add_scalar()
1350 size_of::<yaml_node_t>() as libc::c_ulong, in yaml_document_add_scalar()
1360 return (*document).nodes.top.c_offset_from((*document).nodes.start) as libc::c_int; in yaml_document_add_scalar()
1364 yaml_free(tag_copy as *mut libc::c_void); in yaml_document_add_scalar()
1365 yaml_free(value_copy as *mut libc::c_void); in yaml_document_add_scalar()
1379 ) -> libc::c_int { in yaml_document_add_sequence()
1400 tag = b"tag:yaml.org,2002:seq\0" as *const u8 as *const libc::c_char as *mut yaml_char_t; in yaml_document_add_sequence() constant
1402 if yaml_check_utf8(tag, strlen(tag as *mut libc::c_char)).ok { in yaml_document_add_sequence()
1407 node as *mut libc::c_void, in yaml_document_add_sequence()
1409 size_of::<yaml_node_t>() as libc::c_ulong, in yaml_document_add_sequence()
1420 return (*document).nodes.top.c_offset_from((*document).nodes.start) as libc::c_int; in yaml_document_add_sequence()
1424 yaml_free(tag_copy as *mut libc::c_void); in yaml_document_add_sequence()
1438 ) -> libc::c_int { in yaml_document_add_mapping()
1459 tag = b"tag:yaml.org,2002:map\0" as *const u8 as *const libc::c_char as *mut yaml_char_t; in yaml_document_add_mapping() constant
1461 if yaml_check_utf8(tag, strlen(tag as *mut libc::c_char)).ok { in yaml_document_add_mapping()
1466 node as *mut libc::c_void, in yaml_document_add_mapping()
1468 size_of::<yaml_node_t>() as libc::c_ulong, in yaml_document_add_mapping()
1479 return (*document).nodes.top.c_offset_from((*document).nodes.start) as libc::c_int; in yaml_document_add_mapping()
1483 yaml_free(tag_copy as *mut libc::c_void); in yaml_document_add_mapping()
1490 sequence: libc::c_int, in yaml_document_append_sequence_item()
1491 item: libc::c_int, in yaml_document_append_sequence_item()
1520 mapping: libc::c_int, in yaml_document_append_mapping_pair()
1521 key: libc::c_int, in yaml_document_append_mapping_pair()
1522 value: libc::c_int, in yaml_document_append_mapping_pair()