Function yaml_document_end_event_initialize

Synopsis

#include <include/yaml.h>

int yaml_document_end_event_initialize(yaml_event_t *event, int implicit)

Description

Create the DOCUMENT-END event.

The implicit argument is considered as a stylistic parameter and may be ignored by the emitter.

Parameters:

[ out ] event - An empty event object.

[ in ] implicit - If the document end indicator is implicit.

Return
1 if the function succeeded, 0 on error.
Create DOCUMENT-END.

Source

Lines 780-790 in src/api.c. Line 543 in include/yaml.h.

YAML_DECLARE(int)
yaml_document_end_event_initialize(yaml_event_t *event, int implicit)
{
    yaml_mark_t mark = { 0, 0, 0 };

    assert(event);      /* Non-NULL emitter object is expected. */

    DOCUMENT_END_EVENT_INIT(*event, implicit, mark, mark);

    return 1;
}





Add Discussion as Guest

Log in to DocsForge