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
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Andrew Morton
Re: -mm merge plans for 2.6.23 -- sys_fallocate
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Roland Dreier
wait_for_completion_timeout() spurious failure under heavy load?
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
[GIT]: Networking
Rémi
[PATCH 00/14] [RFC] Phonet protocol stack
Jan Engelhardt
Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
4 users
and
844 guests
online.
Online users
hypnodownl
robvoo
email2sort
winni81633
Syndicate