|
Ruby
1.9.3p551(2014-11-13revision48407)
|
Go to the source code of this file.
Data Structures | |
| struct | bytestring_t |
| void free_any_io | ( | SyckParser * | p | ) |
Definition at line 400 of file syck.c.
References ASSERT, NULL, p, S_FREE, syck_io_file, and syck_io_str.
Referenced by syck_free_parser(), syck_parser_file(), and syck_parser_str().
| int syck_add_sym | ( | SyckParser * | p, |
| void * | data | ||
| ) |
Definition at line 180 of file syck.c.
References emitter_xtra::data, id, NULL, p, st_init_numtable, st_insert, and SYMID.
Referenced by syck_yaml2byte_handler().
| void syck_check_limit | ( | SyckParser * | p, |
| long | len | ||
| ) |
Definition at line 449 of file syck.c.
Referenced by syck_parser_read(), and syck_parser_readlen().
| void syck_default_error_handler | ( | SyckParser * | p, |
| const char * | msg | ||
| ) |
Definition at line 517 of file syck.c.
References msg, p, and PRIdPTRDIFF.
Referenced by syckerror().
| void syck_free_parser | ( | SyckParser * | p | ) |
Definition at line 249 of file syck.c.
References free_any_io(), NULL, p, S_FREE, st_foreach, st_free_table, syck_parser_reset_levels(), syck_st_free(), and syck_st_free_syms().
Referenced by rb_syck_compile(), rb_syck_free_parser(), and syck_yaml2byte().
| long syck_io_file_read | ( | char * | buf, |
| SyckIoFile * | file, | ||
| long | max_size, | ||
| long | skip | ||
| ) |
Definition at line 46 of file syck.c.
References ASSERT, buf, len, NULL, and _syck_file::ptr.
Referenced by syck_parser_file().
Definition at line 64 of file syck.c.
References ASSERT, buf, _syck_str::end, len, NULL, _syck_str::ptr, and S_MEMCPY.
Referenced by syck_parser_str().
| int syck_lookup_sym | ( | SyckParser * | p, |
| SYMID | id, | ||
| void ** | datap | ||
| ) |
Definition at line 193 of file syck.c.
References emitter_xtra::data, NULL, p, and st_lookup.
Referenced by rb_syck_compile(), syck_yaml2byte(), and syck_yaml2byte_handler().
| long syck_move_tokens | ( | SyckParser * | p | ) |
Definition at line 424 of file syck.c.
References ASSERT, count, NULL, p, and S_MEMMOVE.
Referenced by syck_parser_read(), and syck_parser_readlen().
| SyckParser* syck_new_parser | ( | void | ) |
Definition at line 157 of file syck.c.
References ALLOC_CT, NULL, p, S_ALLOC, S_ALLOC_N, S_MEMZERO, SYCK_BUFFERSIZE, syck_io_str, syck_parser_reset_levels(), and syck_yaml_utf8.
Referenced by rb_syck_compile(), syck_parser_s_alloc(), and syck_yaml2byte().
| SYMID syck_parse | ( | SyckParser * | p | ) |
Definition at line 506 of file syck.c.
References ASSERT, NULL, p, syck_parser_reset_levels(), syck_st_free(), and syckparse().
Referenced by rb_syck_compile(), syck_parser_load(), syck_parser_load_documents(), and syck_yaml2byte().
| void syck_parser_add_level | ( | SyckParser * | p, |
| int | len, | ||
| enum syck_level_status | status | ||
| ) |
Definition at line 382 of file syck.c.
References ALLOC_CT, ASSERT, len, NULL, p, S_REALLOC_N, strlen(), and syck_strndup().
| void syck_parser_bad_anchor_handler | ( | SyckParser * | p, |
| SyckBadAnchorHandler | hdlr | ||
| ) |
| SyckLevel* syck_parser_current_level | ( | SyckParser * | p | ) |
| void syck_parser_error_handler | ( | SyckParser * | p, |
| SyckErrorHandler | hdlr | ||
| ) |
Definition at line 297 of file syck.c.
References ASSERT, NULL, and p.
Referenced by rb_syck_compile(), syck_set_model(), and syck_yaml2byte().
| void syck_parser_file | ( | SyckParser * | p, |
| FILE * | fp, | ||
| SyckIoFileRead | read | ||
| ) |
Definition at line 318 of file syck.c.
References ASSERT, free_any_io(), NULL, p, S_ALLOC, syck_io_file, syck_io_file_read(), and syck_parser_reset_cursor().
| void syck_parser_handler | ( | SyckParser * | p, |
| SyckNodeHandler | hdlr | ||
| ) |
Definition at line 278 of file syck.c.
References ASSERT, NULL, and p.
Referenced by rb_syck_compile(), syck_set_model(), and syck_yaml2byte().
| void syck_parser_implicit_typing | ( | SyckParser * | p, |
| int | flag | ||
| ) |
Definition at line 285 of file syck.c.
References p.
Referenced by rb_syck_compile(), syck_set_model(), and syck_yaml2byte().
| void syck_parser_pop_level | ( | SyckParser * | p | ) |
| long syck_parser_read | ( | SyckParser * | p | ) |
Definition at line 462 of file syck.c.
References ASSERT, len, NULL, p, SYCK_BUFFERSIZE, syck_check_limit(), syck_io_file, syck_io_str, and syck_move_tokens().
Referenced by sycklex_bytecode_utf8(), and sycklex_yaml_utf8().
| long syck_parser_readlen | ( | SyckParser * | p, |
| long | max_size | ||
| ) |
Definition at line 484 of file syck.c.
References ASSERT, len, NULL, p, syck_check_limit(), syck_io_file, syck_io_str, and syck_move_tokens().
| void syck_parser_reset_cursor | ( | SyckParser * | p | ) |
Definition at line 119 of file syck.c.
References NULL, p, S_ALLOC_N, and S_MEMZERO.
Referenced by syck_parser_file(), and syck_parser_str().
| void syck_parser_reset_levels | ( | SyckParser * | p | ) |
Definition at line 101 of file syck.c.
References p, syck_lvl_header, syck_parser_pop_level(), and syck_strndup().
Referenced by syck_free_parser(), syck_new_parser(), and syck_parse().
| void syck_parser_set_input_type | ( | SyckParser * | p, |
| enum syck_parser_input | input_type | ||
| ) |
| void syck_parser_set_root_on_error | ( | SyckParser * | p, |
| SYMID | roer | ||
| ) |
| void syck_parser_str | ( | SyckParser * | p, |
| char * | ptr, | ||
| long | len, | ||
| SyckIoStrRead | read | ||
| ) |
Definition at line 337 of file syck.c.
References ASSERT, free_any_io(), len, NULL, p, S_ALLOC, syck_io_str, syck_io_str_read(), and syck_parser_reset_cursor().
Referenced by syck_parser_assign_io(), and syck_parser_str_auto().
| void syck_parser_str_auto | ( | SyckParser * | p, |
| char * | ptr, | ||
| SyckIoStrRead | read | ||
| ) |
Definition at line 358 of file syck.c.
References p, strlen(), and syck_parser_str().
Referenced by syck_yaml2byte().
| void syck_parser_taguri_expansion | ( | SyckParser * | p, |
| int | flag | ||
| ) |
Definition at line 291 of file syck.c.
References p.
Referenced by rb_syck_compile(), syck_set_model(), and syck_yaml2byte().
| void syck_st_free | ( | SyckParser * | p | ) |
Definition at line 212 of file syck.c.
References NULL, p, st_foreach, st_free_table, and syck_st_free_nodes().
Referenced by syck_free_parser(), and syck_parse().
| int syck_st_free_nodes | ( | char * | key, |
| SyckNode * | n, | ||
| char * | arg | ||
| ) |
Definition at line 204 of file syck.c.
References NULL, ST_CONTINUE, and syck_free_node().
Referenced by syck_st_free().
| int syck_st_free_syms | ( | void * | key, |
| bytestring_t * | sav, | ||
| void * | dummy | ||
| ) |
Definition at line 241 of file syck.c.
References bytestring_t::buffer, S_FREE, and ST_CONTINUE.
Referenced by syck_free_parser().
Definition at line 34 of file syck.c.
References buf, len, S_ALLOC_N, S_MEMCPY, and S_MEMZERO.
Referenced by rb_syck_bad_anchor_handler(), syck_base64dec(), syck_emitter_add_level(), syck_emitter_reset_levels(), syck_node_transform(), syck_node_type_id_set(), syck_parser_add_level(), syck_parser_reset_levels(), syck_scalar_value_set(), syck_tagcmp(), syck_type_id_to_uri(), sycklex_bytecode_utf8(), sycklex_yaml_utf8(), try_tag_implicit(), and yyparse().
1.8.14