login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
24
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h (update 2)
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Alexey Dobriyan <adobriyan@...>
To: Mathieu Desnoyers <mathieu.desnoyers@...>
Cc: Stefan Richter <stefanr@...>, Randy Dunlap <randy.dunlap@...>, <akpm@...>, Ingo Molnar <mingo@...>, <linux-kernel@...>
Subject:
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h (update 2)
Date: Thursday, January 24, 2008 - 6:50 pm
On Thu, Jan 24, 2008 at 05:10:54PM -0500, Mathieu Desnoyers wrote:
quoted text
> Array initializers in the body of a function causes unbalanced brackets which > syntax highlighting editors such as vim have problems with. Fix this by creating > the INIT_ARRAY() macro. > > It is used to declare arguments passed as function parameters such as: > text_poke(addr, INIT_ARRAY(unsigned char, 0xf0, len), len);
quoted text
> +#define INIT_ARRAY(type, val, len) ((type[]) {[0 ... (len)-1] = (val)})
While we are at useless macro territory, let's name it MAKE_ARRAY because it's exactly what it does. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
[patch 07/26] Add INIT_ARRAY() to kernel.h
, Mathieu Desnoyers
, (Thu Jan 24, 4:27 pm)
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h
, H. Peter Anvin
, (Thu Jan 24, 7:03 pm)
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h
, Randy Dunlap
, (Thu Jan 24, 4:58 pm)
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h
, Mathieu Desnoyers
, (Thu Jan 24, 5:04 pm)
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h
, Jan Engelhardt
, (Fri Jan 25, 4:03 am)
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h
, H. Peter Anvin
, (Thu Jan 24, 7:04 pm)
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h
, Mathieu Desnoyers
, (Fri Jan 25, 9:14 am)
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h
, Stefan Richter
, (Thu Jan 24, 6:02 pm)
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h (update 2)
, Mathieu Desnoyers
, (Thu Jan 24, 6:10 pm)
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h (update 2)
, Alexey Dobriyan
, (Thu Jan 24, 6:50 pm)
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h
, Jan Engelhardt
, (Thu Jan 24, 4:39 pm)
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h (updated)
, Mathieu Desnoyers
, (Thu Jan 24, 4:54 pm)
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h (updated)
, Jan Engelhardt
, (Thu Jan 24, 5:08 pm)
Re: [patch 07/26] Add INIT_ARRAY() to kernel.h (updated)
, Mathieu Desnoyers
, (Thu Jan 24, 5:18 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mike Galbraith
Re: regression: CD burning (k3b) went broke
Andi Kleen
[PATCH] [3/22] x86_64: Kill temp boot pmds
Alan Cox
Re: [PATCH][RFC] 4K stacks default, not a debug thing any more...?
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
git
:
openbsd-misc
:
linux-netdev
:
David Miller
[GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 05/37] dccp: Cleanup routines for feature negotiation
Brandeburg, Jesse
RE: [PATCH] e1000e: test MSI interrupts
Colocation donated by:
Who's online
There are currently
0 users
and
824 guests
online.
Syndicate