Ignore:
Timestamp:
08/12/05 16:15:19 (9 years ago)
Author:
xi
Message:

syck.dump() is implemented.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sandbox/syck-parser/syck-parser.c

    r4 r20  
    123123    switch (n->kind) { 
    124124        case syck_str_kind: 
    125             output(indent, "Node Scalar (%s):", n->type_id); 
     125            output(indent, "[%d] Node Scalar (%s):", id, n->type_id); 
    126126            output(indent+1, "Value: '%s'", n->data.str->ptr); 
    127127            break; 
    128128        case syck_seq_kind: 
    129             output(indent, "Node Sequence (%s):", n->type_id); 
     129            output(indent, "[%d] Node Sequence (%s):", id, n->type_id); 
    130130            for (i = 0; i < syck_seq_count(n); i++) { 
    131131                output(indent+1, "Item #%d:", i+1); 
     
    134134            break; 
    135135        case syck_map_kind: 
    136             output(indent, "Node Mapping (%s):", n->type_id); 
     136            output(indent, "[%d] Node Mapping (%s):", id, n->type_id); 
    137137            for (i = 0; i < syck_map_count(n); i++) { 
    138138                output(indent+1, "Key #%d:", i+1); 
Note: See TracChangeset for help on using the changeset viewer.