__SIZE_TYPE__ and friends out of specs

Neil Booth neil@daikokuya.demon.co.uk
Tue May 14 00:44:00 GMT 2002


Zack Weinberg wrote:-

> +  size_t mlen = strlen (macro);
> +  size_t elen = strlen (expansion);
> +
> +  q = buf = xmalloc (mlen + elen + 2);

Best to use alloca there I think, and avoid a leak.

Neil.



More information about the Gcc-patches mailing list