Bug 5287

Summary: char * * foo ; char** foo ; char **foo
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Stan Cox <scox>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 2246, 5294    

Description Andrew Cagney 2007-11-07 20:51:20 UTC
Of the possible print formattings, the first is probably not the best.

This goes back to the question of having the "C" type print code use a tree
walker; rather than hard wiring the C print code in frysk.value.Type.toPrint
Comment 1 Stan Cox 2007-12-12 14:58:02 UTC
This was addressed in this change to make type display top down:

Change String toPrint() to use StringBuilder.
    
* Type.java (toPrint(StringBuilder, int)): Change signature from Writer
to StringBuilder.
Change all callers.
(String toPrint()): Change to use StringBuilder.
ArrayType.java (toPrint): Use typeStringBuilder for return type.
* CompositeType.java (toPrint): Use memberStringBuilder for members.
* FunctionType.java (toPrint): Use parmStringBuilder for parameters.
    * PointerType.java (toPrint): Detect ptr to array and ptr to function cases.