lkml.org 
[lkml]   [2008]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/17] checkpatch: complex macros -- fix up extension handling
    Date
    Only pull in new extension lines where the current contents ends
    with a \.

    Signed-off-by: Andy Whitcroft <apw@shadowen.org>
    ---
    scripts/checkpatch.pl | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
    index 303c363..586f9a4 100755
    --- a/scripts/checkpatch.pl
    +++ b/scripts/checkpatch.pl
    @@ -1977,8 +1977,8 @@ sub process {
    # Extract the remainder of the define (if any) and
    # rip off surrounding spaces, and trailing \'s.
    $rest = '';
    - while ($off != 0 || ($cnt > 0 && $rest =~ /(?:^|\\)\s*$/)) {
    - #print "ADDING $off <" . substr($lines[$ln - 1], $off) . ">\n";
    + while ($off != 0 || ($cnt > 0 && $rest =~ /\\\s*$/)) {
    + #print "ADDING cnt<$cnt> $off <" . substr($lines[$ln - 1], $off) . "> rest<$rest>\n";
    if ($off != 0 || $lines[$ln - 1] !~ /^-/) {
    $rest .= substr($lines[$ln - 1], $off) . "\n";
    $cnt--;
    --
    1.6.0.rc1.258.g80295


    \
     
     \ /
      Last update: 2008-08-11 22:17    [W:0.021 / U:0.840 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site