[PATCH] Refactor malloc (x * sizeof (t) to XNMALLOC (x, t).
Paul Eggert
eggert@cs.ucla.edu
Fri Nov 1 03:28:00 GMT 2013
OndÅej BÃlka wrote:
> A macro saves cast in more cases than adding cast to change type.
I don't see how that would be, as no casts are necessary with the function.
> Second reason that I picked macro was because I assumed that gcc does
> not inline functions with inline assembly. A gcc does it which changes
> situation a bit.
GCC normally inlines such functions these days, so the situation is
indeed different than it was way back when.
More information about the Libc-alpha
mailing list