|
From: | Avi Kivity |
Subject: | Re: [Qemu-devel] [PATCH] use qemu_malloc and friends consistently |
Date: | Tue, 02 Jun 2009 22:03:27 +0300 |
User-agent: | Thunderbird 2.0.0.21 (X11/20090320) |
David Turner wrote:
The first version will extract the item size automatically for you, making it less likely that you screw things in the second version's parameter list.But I'm not going to fight against it.Also, my code is usually a lot more aggressive than what I proposed. I don't want to burn too many cycles on this, just stating that, generally speaking, it is possible to use macros/wrappers to both make the code's intent more clear and reduce potential errors.
There's no need to reinvent a programming language in macros. If we feel that type safety is a good thing, we should switch to a language that supports it.
-- Do not meddle in the internals of kernels, for they are subtle and quick to panic.
[Prev in Thread] | Current Thread | [Next in Thread] |