Re: [PATCH 15/16] trivial: use ARRAY_SIZE

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dan Carpenter
Date: Monday, June 28, 2010 - 5:52 am

On Mon, Jun 28, 2010 at 03:55:41PM +0400, Kulikov Vasiliy wrote:

I would say the more critical problem with this macro is that it doesn't
work unless you name all your arrays "xxxx[]" so it encourages sub par
variable names.

You could do:
#define PRI_IDENTITY_OFFSET(x) (ARRAY_SIZE(x) - 3)

regards,
dan carpenter

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 15/16] trivial: use ARRAY_SIZE, Kulikov Vasiliy, (Mon Jun 28, 4:55 am)
Re: [PATCH 15/16] trivial: use ARRAY_SIZE, Dan Carpenter, (Mon Jun 28, 5:52 am)
Re: [PATCH 15/16] trivial: use ARRAY_SIZE, Dan Carpenter, (Mon Jun 28, 6:24 am)
Re: [PATCH 15/16] trivial: use ARRAY_SIZE, Henk de Groot, (Mon Jun 28, 1:43 pm)