This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Add type_sprint() function to return type in string form



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. type_as_string?

It is making an xmalloc'ed string duplicate of the type.


Jason, your choice:

type_xasprint (char **buf, ...)

or

char *type_xstrdup (....);

Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]