Changes between Version 17 and Version 18 of LibYAML


Ignore:
Timestamp:
12/27/08 14:32:36 (5 years ago)
Author:
xi
Comment:

Fixed the parser api synopsys (see #87)

Legend:

Unmodified
Added
Removed
Modified
  • LibYAML

    v17 v18  
    166166yaml_event_t event; 
    167167 
     168int done = 0; 
     169 
    168170/* Create the Parser object. */ 
    169171yaml_parser_initialize(&parser); 
     
    193195 
    194196/* Read the event sequence. */ 
    195 do { 
     197while (!done) { 
    196198 
    197199    /* Get the next event. */ 
     
    205207    */ 
    206208 
     209    /* Are we finished? */ 
     210    done = (event.type == YAML_STREAM_END_EVENT); 
     211 
    207212    /* The application is responsible for destroying the event object. */ 
    208213    yaml_event_delete(&event); 
    209214 
    210 } while(event.type != YAML_STREAM_END_EVENT); 
     215} 
    211216 
    212217/* Destroy the Parser object. */