lkml.org 
[lkml]   [2008]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/23] checkpatch: types: unary -- goto introduces unary context
    Date
    When we see a goto we enter unary context.  For example:

    goto *h;

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

    diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
    index 94250d1..b2b0648 100755
    --- a/scripts/checkpatch.pl
    +++ b/scripts/checkpatch.pl
    @@ -780,7 +780,7 @@ sub annotate_values {
    $av_pending = 'N';
    $type = 'N';

    - } elsif ($cur =~/^(return|case|else)/o) {
    + } elsif ($cur =~/^(return|case|else|goto)/o) {
    print "KEYWORD($1)\n" if ($dbg_values > 1);
    $type = 'N';

    --
    1.5.6.rc0.140.ga9675


    \
     
     \ /
      Last update: 2008-06-12 14:13    [W:0.020 / U:0.508 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site