- fprintf(stdout," { ");
- while (fields) {
- fprintf(stdout,"%s%s = ",(first ? "": ", "),fields->name);
- first = 0;
- if (IS_AGGREGATE(fields->type)) {
- printValAggregates(fields,fields->type,space, addr, fmt);
- } else {
- printValBasic(fields,fields->type,space,addr,getSize(fields->type), fmt);
- }
- addr += getSize(fields->type);
- fields = fields->next;
- }
- fprintf(stdout,"}");
+ do_indent (indent);
+ fprintf(stdout,"{\n");
+ while (fields) {
+ do_indent(indent + 1);
+ fprintf(stdout,"%s = ", fields->name);
+ first = 0;
+ if (IS_AGGREGATE(fields->type)) {
+ printValAggregates(fields,fields->type,space, addr, fmt, indent + 1);
+ } else {
+ printValBasic(fields,fields->type,space,addr,getSize(fields->type), fmt);
+ }
+ fprintf(stdout,",\n");
+ addr += getSize(fields->type);
+ fields = fields->next;
+ }
+ do_indent(indent);
+ fprintf(stdout,"}");