lkml.org 
[lkml]   [2008]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/2] CRED: Introduce credential access wrappers
Date
Hi David,

On Tuesday 12 August 2008, David Howells wrote:
> Ingo Oeser <ioe-lkml@rameria.de> wrote:
>
> > Why macros? When introducing APIs using trivial inlines makes sure that
> > the conversion is correct, type correct and side effect free for the callers.
> > Macros cannot ensure this without pain.
>
> But macros don't care that you can't access current at this point.

Ok, if that is the only reason, please mention this in the commit message.
That would be enough for me to not wonder about this issue.

But I wonder how you solve this issue if the amount of code behinde your wrappers
grows.

If you have to take them out of line, it would give me a good indication
of the costs involved in the later bodies of these now trivial wrappers,
if you do it right away.

That way you'll find missing includes and whatnot while converting existing code
to the trivial wrappers.


Best Regards

Ingo Oeser


\
 
 \ /
  Last update: 2008-08-13 01:07    [W:0.043 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site