Changeset 240 for trunk/ext

Show
Ignore:
Timestamp:
10/16/2006 19:38:25 (2 years ago)
Author:
why
Message:
  • ext/io/YAML/source/IoYAML.c: okay, convert string keys to IO symbols. i'm not sure how this fares for serialization, but we'll see.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ext/io/YAML/source/IoYAML.c

    r238 r240  
    9191                case syck_str_kind: 
    9292                        if (n->type_id == NULL || strcmp(n->type_id, "str") == 0) { 
    93         o = IoSeq_newWithData_length_(self->state, n->data.str->ptr, n->data.str->len); 
     93        o = IOSEQ(n->data.str->ptr, n->data.str->len); 
    9494                        } 
    9595                        else if (strcmp(n->type_id, "null") == 0) 
     
    142142                        else 
    143143                        { 
    144         o = IoSeq_newWithData_length_(self->state, n->data.str->ptr, n->data.str->len); 
     144        o = IOSEQ(n->data.str->ptr, n->data.str->len); 
    145145                        } 
    146146                        break; 
     
    165165                                syck_lookup_sym(p, oid, (char **)&o3); 
    166166 
     167        o2 = IoSeq_rawAsSymbol(o2); 
    167168        IoMap_rawAtPut(o, (IoSymbol *)o2, o3); 
    168169                        }