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/scanner.c

    r211 r213  
    939939    assert(token);  /* Non-NULL token object is expected. */ 
    940940 
     941    /* Erase the token object. */ 
     942 
     943    memset(token, 0, sizeof(yaml_token_t)); 
     944 
    941945    /* No tokens after STREAM-END or error. */ 
    942946 
    943947    if (parser->stream_end_produced || parser->error) { 
    944         memset(token, 0, sizeof(yaml_token_t)); 
    945  
    946948        return 1; 
    947949    } 
Note: See TracChangeset for help on using the changeset viewer.