[PATCH 2/2] Use obstack in ada_encode_1
Simon Marchi
simark@simark.ca
Wed Oct 7 18:36:37 GMT 2020
On 2020-10-07 2:35 p.m., Tom Tromey wrote:
> Yeah, actually it is probably a better API to simply return a new
> string. I avoided this since I wasn't sure about why the function is
> the way it is -- is it to avoid the difficulties of managing an
> allocation in C, or is it to avoid extra allocations? But I looked at
> the callers and I think it will be fine.
I always wonder the same with these functions and I have no idea.
Simon
More information about the Gdb-patches
mailing list