Print this page
10097 indenting fixes in usr/src/{lib,common}

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libeti/form/common/regex.c
          +++ new/usr/src/lib/libeti/form/common/regex.c
↓ open down ↓ 20 lines elided ↑ open up ↑
  21   21   */
  22   22  /*      Copyright (c) 1988 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25   25  
  26   26  /*
  27   27   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  28   28   * Use is subject to license terms.
  29   29   */
  30   30  
       31 +/*
       32 + * Copyright (c) 2018, Joyent, Inc.
       33 + */
       34 +
  31   35  /*LINTLIBRARY*/
  32   36  
  33   37  #include <sys/types.h>
  34   38  #include <stdlib.h>
  35   39  #include <unistd.h>
  36   40  #include "utility.h"
  37   41  
  38   42  /*
  39   43   *      this code was taken from REGCMP(3X)
  40   44   */
↓ open down ↓ 86 lines elided ↑ open up ↑
 127  131                          __lptr_ = (intptr_t *)&__st[0];
 128  132                          if (i = __advance(p1, p2))  {
 129  133                                  __loc1 = p1;
 130  134                                  return (i);
 131  135                          }
 132  136                  } while (*p1++);
 133  137                  return ((intptr_t)addrl);
 134  138          }
 135  139          /* regular algorithm */
 136  140          do {
 137      -        __eptr_ = (intptr_t *)&__st[SSIZE];
 138      -        __lptr_ = (intptr_t *)&__st[0];
      141 +                __eptr_ = (intptr_t *)&__st[SSIZE];
      142 +                __lptr_ = (intptr_t *)&__st[0];
 139  143                  if (i = __advance(p1, p2))  {
 140  144                          __loc1 = p1;
 141  145                          return (i);
 142  146                  }
 143  147          } while (*p1++);
 144  148          return ((intptr_t)addrl);
 145  149  }
 146  150  
 147  151  intptr_t
 148  152  __advance(char *alp, char *aep)
↓ open down ↓ 259 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX