if(print_type(((field_t*)td->fields.array[1])->type,
fd, tabs, basename, "")) return 1;
fprintf(fd, " *array;\n");
- fprintf(fd, "};\n");
+ fprintf(fd, "};\n"); /* We do not LTT_ALIGN, because we never copy
+ it to the buffer directly. */
fprintf(fd, "\n");
break;
fprintf(fd, "%s", field->name);
fprintf(fd, ";\n");
}
- fprintf(fd, "};\n");
+ fprintf(fd, "} LTT_ALIGN;\n");
fprintf(fd, "\n");
break;
case UNION:
- /* TODO : Do not allow variable length fields in a union */
for(unsigned int i=0;i<td->fields.position;i++){
field_t *field = (field_t*)(td->fields.array[i]);
type_descriptor_t *type = field->type;
fprintf(fd, "%s", field->name);
fprintf(fd, ";\n");
}
- fprintf(fd, "};\n");
+ fprintf(fd, "} LTT_ALIGN;\n");
fprintf(fd, "\n");
break;
default: