tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sys/malloc.h

There is a lot of code still using the old names, but using #define is the wrong way to provide it.

I would suggest changing it to a static inline __unused function instead.

-- thorpej
Sent from my iPhone.

> On Jul 2, 2019, at 5:03 AM, wrote:
> This was confusing for a bit, but apparently is due to sys/malloc.h:
> #define    free(addr, type)        kern_free(addr)
> This feels like a recipe for subtle bugs.
> What's our plan for this code?

Home | Main Index | Thread Index | Old Index