Ignore:
Timestamp:
07/26/06 16:32:16 (8 years ago)
Author:
xi
Message:

Implement Emitter state machine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libyaml/trunk/src/parser.c

    r212 r213  
    173173    assert(event);      /* Non-NULL event object is expected. */ 
    174174 
     175    /* Erase the event object. */ 
     176 
     177    memset(event, 0, sizeof(yaml_event_t)); 
     178 
    175179    /* No events after the end of the stream or error. */ 
    176180 
    177181    if (parser->stream_end_produced || parser->error || 
    178182            parser->state == YAML_PARSE_END_STATE) { 
    179         memset(event, 0, sizeof(yaml_event_t)); 
    180  
    181183        return 1; 
    182184    } 
     
    13191321} 
    13201322 
     1323/* 
     1324 * Append a tag directive to the directives stack. 
     1325 */ 
     1326 
    13211327static int 
    13221328yaml_parser_append_tag_directive(yaml_parser_t *parser, 
Note: See TracChangeset for help on using the changeset viewer.