Skip to content
Snippets Groups Projects
Verified Commit a1115264 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: update libs

parent b04039df
Branches
Tags
No related merge requests found
...@@ -227,7 +227,6 @@ func yaml_parser_state_machine(parser *yaml_parser_t, event *yaml_event_t) bool ...@@ -227,7 +227,6 @@ func yaml_parser_state_machine(parser *yaml_parser_t, event *yaml_event_t) bool
// Parse the production: // Parse the production:
// stream ::= STREAM-START implicit_document? explicit_document* STREAM-END // stream ::= STREAM-START implicit_document? explicit_document* STREAM-END
//
// ************ // ************
func yaml_parser_parse_stream_start(parser *yaml_parser_t, event *yaml_event_t) bool { func yaml_parser_parse_stream_start(parser *yaml_parser_t, event *yaml_event_t) bool {
token := peek_token(parser) token := peek_token(parser)
...@@ -250,11 +249,8 @@ func yaml_parser_parse_stream_start(parser *yaml_parser_t, event *yaml_event_t) ...@@ -250,11 +249,8 @@ func yaml_parser_parse_stream_start(parser *yaml_parser_t, event *yaml_event_t)
// Parse the productions: // Parse the productions:
// implicit_document ::= block_node DOCUMENT-END* // implicit_document ::= block_node DOCUMENT-END*
//
// * // *
//
// explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* // explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END*
//
// ************************* // *************************
func yaml_parser_parse_document_start(parser *yaml_parser_t, event *yaml_event_t, implicit bool) bool { func yaml_parser_parse_document_start(parser *yaml_parser_t, event *yaml_event_t, implicit bool) bool {
...@@ -360,8 +356,8 @@ func yaml_parser_parse_document_start(parser *yaml_parser_t, event *yaml_event_t ...@@ -360,8 +356,8 @@ func yaml_parser_parse_document_start(parser *yaml_parser_t, event *yaml_event_t
// Parse the productions: // Parse the productions:
// explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* // explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END*
//
// *********** // ***********
//
func yaml_parser_parse_document_content(parser *yaml_parser_t, event *yaml_event_t) bool { func yaml_parser_parse_document_content(parser *yaml_parser_t, event *yaml_event_t) bool {
token := peek_token(parser) token := peek_token(parser)
if token == nil { if token == nil {
...@@ -383,10 +379,9 @@ func yaml_parser_parse_document_content(parser *yaml_parser_t, event *yaml_event ...@@ -383,10 +379,9 @@ func yaml_parser_parse_document_content(parser *yaml_parser_t, event *yaml_event
// Parse the productions: // Parse the productions:
// implicit_document ::= block_node DOCUMENT-END* // implicit_document ::= block_node DOCUMENT-END*
//
// ************* // *************
//
// explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* // explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END*
//
func yaml_parser_parse_document_end(parser *yaml_parser_t, event *yaml_event_t) bool { func yaml_parser_parse_document_end(parser *yaml_parser_t, event *yaml_event_t) bool {
token := peek_token(parser) token := peek_token(parser)
if token == nil { if token == nil {
...@@ -433,40 +428,29 @@ func yaml_parser_set_event_comments(parser *yaml_parser_t, event *yaml_event_t) ...@@ -433,40 +428,29 @@ func yaml_parser_set_event_comments(parser *yaml_parser_t, event *yaml_event_t)
// Parse the productions: // Parse the productions:
// block_node_or_indentless_sequence ::= // block_node_or_indentless_sequence ::=
//
// ALIAS // ALIAS
// ***** // *****
// | properties (block_content | indentless_block_sequence)? // | properties (block_content | indentless_block_sequence)?
// ********** * // ********** *
// | block_content | indentless_block_sequence // | block_content | indentless_block_sequence
// * // *
//
// block_node ::= ALIAS // block_node ::= ALIAS
//
// ***** // *****
// | properties block_content? // | properties block_content?
// ********** * // ********** *
// | block_content // | block_content
// * // *
//
// flow_node ::= ALIAS // flow_node ::= ALIAS
//
// ***** // *****
// | properties flow_content? // | properties flow_content?
// ********** * // ********** *
// | flow_content // | flow_content
// * // *
//
// properties ::= TAG ANCHOR? | ANCHOR TAG? // properties ::= TAG ANCHOR? | ANCHOR TAG?
//
// ************************* // *************************
//
// block_content ::= block_collection | flow_collection | SCALAR // block_content ::= block_collection | flow_collection | SCALAR
//
// ****** // ******
//
// flow_content ::= flow_collection | SCALAR // flow_content ::= flow_collection | SCALAR
//
// ****** // ******
func yaml_parser_parse_node(parser *yaml_parser_t, event *yaml_event_t, block, indentless_sequence bool) bool { func yaml_parser_parse_node(parser *yaml_parser_t, event *yaml_event_t, block, indentless_sequence bool) bool {
//defer trace("yaml_parser_parse_node", "block:", block, "indentless_sequence:", indentless_sequence)() //defer trace("yaml_parser_parse_node", "block:", block, "indentless_sequence:", indentless_sequence)()
...@@ -698,8 +682,8 @@ func yaml_parser_parse_node(parser *yaml_parser_t, event *yaml_event_t, block, i ...@@ -698,8 +682,8 @@ func yaml_parser_parse_node(parser *yaml_parser_t, event *yaml_event_t, block, i
// Parse the productions: // Parse the productions:
// block_sequence ::= BLOCK-SEQUENCE-START (BLOCK-ENTRY block_node?)* BLOCK-END // block_sequence ::= BLOCK-SEQUENCE-START (BLOCK-ENTRY block_node?)* BLOCK-END
//
// ******************** *********** * ********* // ******************** *********** * *********
//
func yaml_parser_parse_block_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { func yaml_parser_parse_block_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool {
if first { if first {
token := peek_token(parser) token := peek_token(parser)
...@@ -756,7 +740,6 @@ func yaml_parser_parse_block_sequence_entry(parser *yaml_parser_t, event *yaml_e ...@@ -756,7 +740,6 @@ func yaml_parser_parse_block_sequence_entry(parser *yaml_parser_t, event *yaml_e
// Parse the productions: // Parse the productions:
// indentless_sequence ::= (BLOCK-ENTRY block_node?)+ // indentless_sequence ::= (BLOCK-ENTRY block_node?)+
//
// *********** * // *********** *
func yaml_parser_parse_indentless_sequence_entry(parser *yaml_parser_t, event *yaml_event_t) bool { func yaml_parser_parse_indentless_sequence_entry(parser *yaml_parser_t, event *yaml_event_t) bool {
token := peek_token(parser) token := peek_token(parser)
...@@ -822,7 +805,6 @@ func yaml_parser_split_stem_comment(parser *yaml_parser_t, stem_len int) { ...@@ -822,7 +805,6 @@ func yaml_parser_split_stem_comment(parser *yaml_parser_t, stem_len int) {
// Parse the productions: // Parse the productions:
// block_mapping ::= BLOCK-MAPPING_START // block_mapping ::= BLOCK-MAPPING_START
//
// ******************* // *******************
// ((KEY block_node_or_indentless_sequence?)? // ((KEY block_node_or_indentless_sequence?)?
// *** * // *** *
...@@ -830,6 +812,7 @@ func yaml_parser_split_stem_comment(parser *yaml_parser_t, stem_len int) { ...@@ -830,6 +812,7 @@ func yaml_parser_split_stem_comment(parser *yaml_parser_t, stem_len int) {
// //
// BLOCK-END // BLOCK-END
// ********* // *********
//
func yaml_parser_parse_block_mapping_key(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { func yaml_parser_parse_block_mapping_key(parser *yaml_parser_t, event *yaml_event_t, first bool) bool {
if first { if first {
token := peek_token(parser) token := peek_token(parser)
...@@ -903,6 +886,8 @@ func yaml_parser_parse_block_mapping_key(parser *yaml_parser_t, event *yaml_even ...@@ -903,6 +886,8 @@ func yaml_parser_parse_block_mapping_key(parser *yaml_parser_t, event *yaml_even
// (VALUE block_node_or_indentless_sequence?)?)* // (VALUE block_node_or_indentless_sequence?)?)*
// ***** * // ***** *
// BLOCK-END // BLOCK-END
//
//
func yaml_parser_parse_block_mapping_value(parser *yaml_parser_t, event *yaml_event_t) bool { func yaml_parser_parse_block_mapping_value(parser *yaml_parser_t, event *yaml_event_t) bool {
token := peek_token(parser) token := peek_token(parser)
if token == nil { if token == nil {
...@@ -930,7 +915,6 @@ func yaml_parser_parse_block_mapping_value(parser *yaml_parser_t, event *yaml_ev ...@@ -930,7 +915,6 @@ func yaml_parser_parse_block_mapping_value(parser *yaml_parser_t, event *yaml_ev
// Parse the productions: // Parse the productions:
// flow_sequence ::= FLOW-SEQUENCE-START // flow_sequence ::= FLOW-SEQUENCE-START
//
// ******************* // *******************
// (flow_sequence_entry FLOW-ENTRY)* // (flow_sequence_entry FLOW-ENTRY)*
// * ********** // * **********
...@@ -938,10 +922,9 @@ func yaml_parser_parse_block_mapping_value(parser *yaml_parser_t, event *yaml_ev ...@@ -938,10 +922,9 @@ func yaml_parser_parse_block_mapping_value(parser *yaml_parser_t, event *yaml_ev
// * // *
// FLOW-SEQUENCE-END // FLOW-SEQUENCE-END
// ***************** // *****************
//
// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? // flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)?
//
// * // *
//
func yaml_parser_parse_flow_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { func yaml_parser_parse_flow_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool {
if first { if first {
token := peek_token(parser) token := peek_token(parser)
...@@ -1004,10 +987,11 @@ func yaml_parser_parse_flow_sequence_entry(parser *yaml_parser_t, event *yaml_ev ...@@ -1004,10 +987,11 @@ func yaml_parser_parse_flow_sequence_entry(parser *yaml_parser_t, event *yaml_ev
return true return true
} }
//
// Parse the productions: // Parse the productions:
// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? // flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)?
//
// *** * // *** *
//
func yaml_parser_parse_flow_sequence_entry_mapping_key(parser *yaml_parser_t, event *yaml_event_t) bool { func yaml_parser_parse_flow_sequence_entry_mapping_key(parser *yaml_parser_t, event *yaml_event_t) bool {
token := peek_token(parser) token := peek_token(parser)
if token == nil { if token == nil {
...@@ -1027,8 +1011,8 @@ func yaml_parser_parse_flow_sequence_entry_mapping_key(parser *yaml_parser_t, ev ...@@ -1027,8 +1011,8 @@ func yaml_parser_parse_flow_sequence_entry_mapping_key(parser *yaml_parser_t, ev
// Parse the productions: // Parse the productions:
// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? // flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)?
//
// ***** * // ***** *
//
func yaml_parser_parse_flow_sequence_entry_mapping_value(parser *yaml_parser_t, event *yaml_event_t) bool { func yaml_parser_parse_flow_sequence_entry_mapping_value(parser *yaml_parser_t, event *yaml_event_t) bool {
token := peek_token(parser) token := peek_token(parser)
if token == nil { if token == nil {
...@@ -1051,8 +1035,8 @@ func yaml_parser_parse_flow_sequence_entry_mapping_value(parser *yaml_parser_t, ...@@ -1051,8 +1035,8 @@ func yaml_parser_parse_flow_sequence_entry_mapping_value(parser *yaml_parser_t,
// Parse the productions: // Parse the productions:
// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? // flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)?
//
// * // *
//
func yaml_parser_parse_flow_sequence_entry_mapping_end(parser *yaml_parser_t, event *yaml_event_t) bool { func yaml_parser_parse_flow_sequence_entry_mapping_end(parser *yaml_parser_t, event *yaml_event_t) bool {
token := peek_token(parser) token := peek_token(parser)
if token == nil { if token == nil {
...@@ -1069,7 +1053,6 @@ func yaml_parser_parse_flow_sequence_entry_mapping_end(parser *yaml_parser_t, ev ...@@ -1069,7 +1053,6 @@ func yaml_parser_parse_flow_sequence_entry_mapping_end(parser *yaml_parser_t, ev
// Parse the productions: // Parse the productions:
// flow_mapping ::= FLOW-MAPPING-START // flow_mapping ::= FLOW-MAPPING-START
//
// ****************** // ******************
// (flow_mapping_entry FLOW-ENTRY)* // (flow_mapping_entry FLOW-ENTRY)*
// * ********** // * **********
...@@ -1077,9 +1060,9 @@ func yaml_parser_parse_flow_sequence_entry_mapping_end(parser *yaml_parser_t, ev ...@@ -1077,9 +1060,9 @@ func yaml_parser_parse_flow_sequence_entry_mapping_end(parser *yaml_parser_t, ev
// ****************** // ******************
// FLOW-MAPPING-END // FLOW-MAPPING-END
// **************** // ****************
//
// flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? // flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)?
// - *** * // * *** *
//
func yaml_parser_parse_flow_mapping_key(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { func yaml_parser_parse_flow_mapping_key(parser *yaml_parser_t, event *yaml_event_t, first bool) bool {
if first { if first {
token := peek_token(parser) token := peek_token(parser)
...@@ -1145,7 +1128,8 @@ func yaml_parser_parse_flow_mapping_key(parser *yaml_parser_t, event *yaml_event ...@@ -1145,7 +1128,8 @@ func yaml_parser_parse_flow_mapping_key(parser *yaml_parser_t, event *yaml_event
// Parse the productions: // Parse the productions:
// flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? // flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)?
// - ***** * // * ***** *
//
func yaml_parser_parse_flow_mapping_value(parser *yaml_parser_t, event *yaml_event_t, empty bool) bool { func yaml_parser_parse_flow_mapping_value(parser *yaml_parser_t, event *yaml_event_t, empty bool) bool {
token := peek_token(parser) token := peek_token(parser)
if token == nil { if token == nil {
......
...@@ -1614,11 +1614,11 @@ func yaml_parser_scan_to_next_token(parser *yaml_parser_t) bool { ...@@ -1614,11 +1614,11 @@ func yaml_parser_scan_to_next_token(parser *yaml_parser_t) bool {
// Scan a YAML-DIRECTIVE or TAG-DIRECTIVE token. // Scan a YAML-DIRECTIVE or TAG-DIRECTIVE token.
// //
// Scope: // Scope:
//
// %YAML 1.1 # a comment \n // %YAML 1.1 # a comment \n
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// %TAG !yaml! tag:yaml.org,2002: \n // %TAG !yaml! tag:yaml.org,2002: \n
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
//
func yaml_parser_scan_directive(parser *yaml_parser_t, token *yaml_token_t) bool { func yaml_parser_scan_directive(parser *yaml_parser_t, token *yaml_token_t) bool {
// Eat '%'. // Eat '%'.
start_mark := parser.mark start_mark := parser.mark
...@@ -1719,11 +1719,11 @@ func yaml_parser_scan_directive(parser *yaml_parser_t, token *yaml_token_t) bool ...@@ -1719,11 +1719,11 @@ func yaml_parser_scan_directive(parser *yaml_parser_t, token *yaml_token_t) bool
// Scan the directive name. // Scan the directive name.
// //
// Scope: // Scope:
//
// %YAML 1.1 # a comment \n // %YAML 1.1 # a comment \n
// ^^^^ // ^^^^
// %TAG !yaml! tag:yaml.org,2002: \n // %TAG !yaml! tag:yaml.org,2002: \n
// ^^^ // ^^^
//
func yaml_parser_scan_directive_name(parser *yaml_parser_t, start_mark yaml_mark_t, name *[]byte) bool { func yaml_parser_scan_directive_name(parser *yaml_parser_t, start_mark yaml_mark_t, name *[]byte) bool {
// Consume the directive name. // Consume the directive name.
if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) {
...@@ -1758,7 +1758,6 @@ func yaml_parser_scan_directive_name(parser *yaml_parser_t, start_mark yaml_mark ...@@ -1758,7 +1758,6 @@ func yaml_parser_scan_directive_name(parser *yaml_parser_t, start_mark yaml_mark
// Scan the value of VERSION-DIRECTIVE. // Scan the value of VERSION-DIRECTIVE.
// //
// Scope: // Scope:
//
// %YAML 1.1 # a comment \n // %YAML 1.1 # a comment \n
// ^^^^^^ // ^^^^^^
func yaml_parser_scan_version_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, major, minor *int8) bool { func yaml_parser_scan_version_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, major, minor *int8) bool {
...@@ -1798,7 +1797,6 @@ const max_number_length = 2 ...@@ -1798,7 +1797,6 @@ const max_number_length = 2
// Scan the version number of VERSION-DIRECTIVE. // Scan the version number of VERSION-DIRECTIVE.
// //
// Scope: // Scope:
//
// %YAML 1.1 # a comment \n // %YAML 1.1 # a comment \n
// ^ // ^
// %YAML 1.1 # a comment \n // %YAML 1.1 # a comment \n
...@@ -1836,9 +1834,9 @@ func yaml_parser_scan_version_directive_number(parser *yaml_parser_t, start_mark ...@@ -1836,9 +1834,9 @@ func yaml_parser_scan_version_directive_number(parser *yaml_parser_t, start_mark
// Scan the value of a TAG-DIRECTIVE token. // Scan the value of a TAG-DIRECTIVE token.
// //
// Scope: // Scope:
//
// %TAG !yaml! tag:yaml.org,2002: \n // %TAG !yaml! tag:yaml.org,2002: \n
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
//
func yaml_parser_scan_tag_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, handle, prefix *[]byte) bool { func yaml_parser_scan_tag_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, handle, prefix *[]byte) bool {
var handle_value, prefix_value []byte var handle_value, prefix_value []byte
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
// Source code and other details for the project are available at GitHub: // Source code and other details for the project are available at GitHub:
// //
// https://github.com/go-yaml/yaml // https://github.com/go-yaml/yaml
//
package yaml package yaml
import ( import (
...@@ -83,6 +84,7 @@ type Marshaler interface { ...@@ -83,6 +84,7 @@ type Marshaler interface {
// //
// See the documentation of Marshal for the format of tags and a list of // See the documentation of Marshal for the format of tags and a list of
// supported tag options. // supported tag options.
//
func Unmarshal(in []byte, out interface{}) (err error) { func Unmarshal(in []byte, out interface{}) (err error) {
return unmarshal(in, out, false) return unmarshal(in, out, false)
} }
...@@ -212,6 +214,7 @@ func unmarshal(in []byte, out interface{}, strict bool) (err error) { ...@@ -212,6 +214,7 @@ func unmarshal(in []byte, out interface{}, strict bool) (err error) {
// } // }
// yaml.Marshal(&T{B: 2}) // Returns "b: 2\n" // yaml.Marshal(&T{B: 2}) // Returns "b: 2\n"
// yaml.Marshal(&T{F: 1}} // Returns "a: 1\nb: 0\n" // yaml.Marshal(&T{F: 1}} // Returns "a: 1\nb: 0\n"
//
func Marshal(in interface{}) (out []byte, err error) { func Marshal(in interface{}) (out []byte, err error) {
defer handleErr(&err) defer handleErr(&err)
e := newEncoder() e := newEncoder()
...@@ -365,6 +368,7 @@ const ( ...@@ -365,6 +368,7 @@ const (
// //
// var person Node // var person Node
// err := yaml.Unmarshal(data, &person) // err := yaml.Unmarshal(data, &person)
//
type Node struct { type Node struct {
// Kind defines whether the node is a document, a mapping, a sequence, // Kind defines whether the node is a document, a mapping, a sequence,
// a scalar value, or an alias to another node. The specific data type of // a scalar value, or an alias to another node. The specific data type of
...@@ -417,6 +421,7 @@ func (n *Node) IsZero() bool { ...@@ -417,6 +421,7 @@ func (n *Node) IsZero() bool {
n.HeadComment == "" && n.LineComment == "" && n.FootComment == "" && n.Line == 0 && n.Column == 0 n.HeadComment == "" && n.LineComment == "" && n.FootComment == "" && n.Line == 0 && n.Column == 0
} }
// LongTag returns the long form of the tag that indicates the data type for // LongTag returns the long form of the tag that indicates the data type for
// the node. If the Tag field isn't explicitly defined, one will be computed // the node. If the Tag field isn't explicitly defined, one will be computed
// based on the node properties. // based on the node properties.
......
...@@ -438,9 +438,7 @@ type yaml_document_t struct { ...@@ -438,9 +438,7 @@ type yaml_document_t struct {
// The number of written bytes should be set to the size_read variable. // The number of written bytes should be set to the size_read variable.
// //
// [in,out] data A pointer to an application data specified by // [in,out] data A pointer to an application data specified by
//
// yaml_parser_set_input(). // yaml_parser_set_input().
//
// [out] buffer The buffer to write the data from the source. // [out] buffer The buffer to write the data from the source.
// [in] size The size of the buffer. // [in] size The size of the buffer.
// [out] size_read The actual number of bytes read from the source. // [out] size_read The actual number of bytes read from the source.
...@@ -641,6 +639,7 @@ type yaml_parser_t struct { ...@@ -641,6 +639,7 @@ type yaml_parser_t struct {
} }
type yaml_comment_t struct { type yaml_comment_t struct {
scan_mark yaml_mark_t // Position where scanning for comments started scan_mark yaml_mark_t // Position where scanning for comments started
token_mark yaml_mark_t // Position after which tokens will be associated with this comment token_mark yaml_mark_t // Position after which tokens will be associated with this comment
start_mark yaml_mark_t // Position of '#' comment mark start_mark yaml_mark_t // Position of '#' comment mark
...@@ -660,14 +659,13 @@ type yaml_comment_t struct { ...@@ -660,14 +659,13 @@ type yaml_comment_t struct {
// @a buffer to the output. // @a buffer to the output.
// //
// @param[in,out] data A pointer to an application data specified by // @param[in,out] data A pointer to an application data specified by
//
// yaml_emitter_set_output(). // yaml_emitter_set_output().
//
// @param[in] buffer The buffer with bytes to be written. // @param[in] buffer The buffer with bytes to be written.
// @param[in] size The size of the buffer. // @param[in] size The size of the buffer.
// //
// @returns On success, the handler should return @c 1. If the handler failed, // @returns On success, the handler should return @c 1. If the handler failed,
// the returned value should be @c 0. // the returned value should be @c 0.
//
type yaml_write_handler_t func(emitter *yaml_emitter_t, buffer []byte) error type yaml_write_handler_t func(emitter *yaml_emitter_t, buffer []byte) error
type yaml_emitter_state_t int type yaml_emitter_state_t int
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment