Changeset 116

Show
Ignore:
Timestamp:
11/18/06 23:06:30 (2 years ago)
Author:
Gregor
Message:

bcd.gen/bcd/gen/bcdgen.d: Proper support for static arrays in C structs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bcd.gen/bcd/gen/bcdgen.d

    r114 r116  
    900900{ 
    901901    char[] stype = toStringFree(xmlGetProp(node, "type")); 
    902     ParsedType type = parseTypeReturnable(stype)
     902    ParsedType type
    903903    char[] name = getNName(node); 
    904904    char[] mangled = toStringFree(getMangled(node)); 
    905905     
    906906    if (outputC) { 
     907        type = parseType(stype); 
    907908        if (!inclass) { 
    908909            dtail ~= "extern (C) extern "; 
     
    910911        dtail ~= type.DType ~ " " ~ safeName(name) ~ ";\n"; 
    911912    } else { 
     913        type = parseTypeReturnable(stype); 
    912914        if (inclass) { 
    913915            // if it's a const, don't make the set