PATCH: (updated) dynamic allocation and GC root
Richard Henderson
rth@cygnus.com
Thu Sep 30 23:58:00 GMT 1999
On Tue, Sep 21, 1999 at 02:41:23PM -0700, Alex Samuel wrote:
> + char digit[2] = "?";
This is illegal in K&R C, and not really very friendly in ISO C.
Just do `digit[1] = 0' as a plain statement.
> + digit_strings[i] = ggc_alloc_string (digit, 1);
Actually, you don't even need digit[1] initialized if you
tell ggc_alloc_string how long the string is.
Change this and the patch is ok.
r~
More information about the Gcc-patches
mailing list