* H. Peter Anvin ([EMAIL PROTECTED]) wrote:
> Mathieu Desnoyers wrote:
>> Try opening such code in vim, and the syntax highlighting gets all
>> messed up :-/
>> The other option is to do the *right thing* and fix vim, of course, but
>> this change won't be in distros for a while.
>
> Let's get this
On Jan 24 2008 16:04, Mathieu Desnoyers wrote:
>* Randy Dunlap ([EMAIL PROTECTED]) wrote:
>
>Try opening such code in vim, and the syntax highlighting gets all
>messed up :-/
Then we'd also have to fix dcache.h:
#define DCACHE_NFSFS_RENAMED 0x0002/* this dentry has been "silly
Mathieu Desnoyers wrote:
Try opening such code in vim, and the syntax highlighting gets all
messed up :-/
The other option is to do the *right thing* and fix vim, of course, but
this change won't be in distros for a while.
Let's get this straight...
You're suggesting introducing a pointless
Mathieu Desnoyers wrote:
Add initialization of an array, which needs brackets that would pollute kernel
code, to kernel.h
"brackets which would pollute kernel code"???
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PRO
On Thu, Jan 24, 2008 at 05:10:54PM -0500, Mathieu Desnoyers wrote:
> 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 pas
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, 0x
On 24 Jan, Mathieu Desnoyers wrote:
> * Randy Dunlap ([EMAIL PROTECTED]) wrote:
>> Maybe you have explained this previously, but please give a short
>> explanation of "brackets that would pollute kernel code".
>>
>> Thanks.
>>
>
> Try opening such code in vim, and the syntax highlighting gets al
* Jan Engelhardt ([EMAIL PROTECTED]) wrote:
>
> On Jan 24 2008 15:54, Mathieu Desnoyers wrote:
> >
> >Add initialization of an array, which needs brackets that would pollute
> >kernel
> >code, to kernel.h. It is used to declare arguments passed as function
> >parameters
> >such as:
> >text_poke(
On Jan 24 2008 15:54, Mathieu Desnoyers wrote:
>
>Add initialization of an array, which needs brackets that would pollute kernel
>code, to kernel.h. It is used to declare arguments passed as function
>parameters
>such as:
>text_poke(addr, INIT_ARRAY(unsigned char, 0xf0, len), len);
>
>Changelog :
* Randy Dunlap ([EMAIL PROTECTED]) wrote:
> On Thu, 24 Jan 2008 15:27:13 -0500 Mathieu Desnoyers wrote:
>
> > Add initialization of an array, which needs brackets that would pollute
> > kernel
> > code, to kernel.h. It is used to declare arguments passed as function
> > parameters
>
> Hi Mathie
On Thu, 24 Jan 2008 15:27:13 -0500 Mathieu Desnoyers wrote:
> Add initialization of an array, which needs brackets that would pollute kernel
> code, to kernel.h. It is used to declare arguments passed as function
> parameters
Hi Mathieu,
Maybe you have explained this previously, but please give
Add initialization of an array, which needs brackets that would pollute kernel
code, to kernel.h. It is used to declare arguments passed as function parameters
such as:
text_poke(addr, INIT_ARRAY(unsigned char, 0xf0, len), len);
Changelog :
- [len] -> []
- Remove whitespaces.
- Fixed Jan's suggest
On Jan 24 2008 15:27, Mathieu Desnoyers wrote:
>such as:
>text_poke(addr, INIT_ARRAY(unsigned char, 0xf0, len), len);
text_poke(addr, (unsigned char[]){[0 ... len-1] = val});
Well ugliness is debatable, but at least:
>+#define INIT_ARRAY(type, val, len) ((type [len]) { [0 ... (len)-1] = (val) }
Add initialization of an array, which needs brackets that would pollute kernel
code, to kernel.h. It is used to declare arguments passed as function parameters
such as:
text_poke(addr, INIT_ARRAY(unsigned char, 0xf0, len), len);
Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]>
---
include/lin
14 matches
Mail list logo