Print this page
10120 smatch indenting fixes for usr/src/cmd
Reviewed by: Gergő Doma <domag02@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/m4/common/m4.c
          +++ new/usr/src/cmd/sgs/m4/common/m4.c
↓ open down ↓ 22 lines elided ↑ open up ↑
  23   23   * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   */
  25   25  
  26   26  /*
  27   27   * Copyright (c) 2011 Gary Mills
  28   28   */
  29   29  
  30   30  /*      Copyright (c) 1988 AT&T */
  31   31  /*        All Rights Reserved   */
  32   32  
       33 +/*
       34 + * Copyright (c) 2018, Joyent, Inc.
       35 + */
       36 +
  33   37  #include        <signal.h>
  34   38  #include        <unistd.h>
  35   39  #include        <fcntl.h>
  36   40  #include        "m4.h"
  37   41  
  38   42  #if defined(__lint)
  39   43  extern int yydebug;
  40   44  #endif
  41   45  
  42   46  #define match(c, s)     (c == *s && (!s[1] || inpmatch(s+1)))
↓ open down ↓ 526 lines elided ↑ open up ↑
 569  573                                          for (;;) {
 570  574                                                  if (*dp == '@')
 571  575                                                          pbstr(rquote);
 572  576  
 573  577                                                  pbstr(a[i--]);
 574  578  
 575  579                                                  if (*dp == '@')
 576  580                                                          pbstr(lquote);
 577  581  
 578  582                                                  if (i <= 0)
 579      -                                                break;
      583 +                                                        break;
 580  584  
 581  585                                                  pbstr(L",");
 582  586                                          }
 583  587                                  ++dp;
 584  588                          } else
 585  589                                  putbak(*dp);
 586  590                  } else
 587  591                          putbak(*dp);
 588  592          }
 589  593  }
↓ open down ↓ 601 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX