lkml.org 
[lkml]   [2007]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] kernel-doc: handle spaces in array size

On Apr 6 2007 16:03, Randy Dunlap wrote:
>On Fri, 6 Apr 2007 21:24:48 +0200 (MEST) Jan Engelhardt wrote:
>
>> On Apr 6 2007 11:47, Randy Dunlap wrote:
>> >
>> >Unfortunately, kernel-doc has problems with a struct field like this:
>> > uint8_t databuf[NAND_MAX_PAGESIZE + NAND_MAX_OOBSIZE];
>> >
>> >simply due to the spaces around the "+" sign, so drop all spaces inside
>> >[...] so that parsing is done correctly (in some sense).
>> >
>
>...
>
>>
>> while($arg =~ s/\[(.*)\s+(.*)\]/[$1$2]/) {
>> }
>>
>> should do it, and saves us the pre-matching. (Also note the + at \s)
>> (No need to escape [ and ] in the target pattern.)
>
>Yep, that works. Want to send it with sign-off or shall I just
>send a new patch to akpm?

Signed-off-by: Jan Engelhardt <jengelh@gmx.de>


Jan
--
-
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/

\
 
 \ /
  Last update: 2007-04-07 01:43    [W:0.065 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site