Messages in this thread | | | Date | Mon, 4 Jan 2010 22:24:29 +0000 | From | Alan Cox <> | Subject | Re: [PATCH] [4/6] kfifo: add kfifo_out_peek |
| |
> Macros are unpopular, for good reasons. But the case for a > template-based container such as this is a good one. However I worry > about the code bloat whcih the macro version might add. We worry about > all this later on.
Its really a special case for structs and fixed objects.
Bloat is going to be a big issue if its macro and all the serial/tty stuff switches to it. Please keep the bytewise one none macro - even if its a lib/foo.c file that simply uses the macros to produce the existing new API.
| |