This is the mail archive of the
mailing list for the GDB project.
Re: PATCH: Add type_sprint() function to return type in string form
On Tue, Apr 22, 2003 at 04:16:26PM -0400, Andrew Cagney wrote:
> >>Sure, but the interface would sux.
> >Then what would you prefer? I have a really negative gut reaction to
> >putting dup in the name; it's not duplicating anything.
> It is making an xmalloc'ed string duplicate of the type.
A duplicate is the same as the original.
A string is not the same as a type.
> Jason, your choice:
> type_xasprint (char **buf, ...)
> char *type_xstrdup (....);
MontaVista Software Debian GNU/Linux Developer