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>


  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24  */
  25 
  26 /*
  27  * Copyright (c) 2011 Gary Mills
  28  */
  29 
  30 /*      Copyright (c) 1988 AT&T     */
  31 /*        All Rights Reserved   */
  32 




  33 #include        <signal.h>
  34 #include        <unistd.h>
  35 #include        <fcntl.h>
  36 #include        "m4.h"
  37 
  38 #if defined(__lint)
  39 extern int yydebug;
  40 #endif
  41 
  42 #define match(c, s)     (c == *s && (!s[1] || inpmatch(s+1)))
  43 
  44 static char     tmp_name[] = "/tmp/m4aXXXXX";
  45 static wchar_t  prev_char;
  46 static int mb_cur_max;
  47 
  48 static void getflags(int *, char ***, int *);
  49 static void initalloc(void);
  50 static void expand(wchar_t **, int);
  51 static void lnsync(FILE *);
  52 static void fpath(FILE *);




  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24  */
  25 
  26 /*
  27  * Copyright (c) 2011 Gary Mills
  28  */
  29 
  30 /*      Copyright (c) 1988 AT&T     */
  31 /*        All Rights Reserved   */
  32 
  33 /*
  34  * Copyright (c) 2018, Joyent, Inc.
  35  */
  36 
  37 #include        <signal.h>
  38 #include        <unistd.h>
  39 #include        <fcntl.h>
  40 #include        "m4.h"
  41 
  42 #if defined(__lint)
  43 extern int yydebug;
  44 #endif
  45 
  46 #define match(c, s)     (c == *s && (!s[1] || inpmatch(s+1)))
  47 
  48 static char     tmp_name[] = "/tmp/m4aXXXXX";
  49 static wchar_t  prev_char;
  50 static int mb_cur_max;
  51 
  52 static void getflags(int *, char ***, int *);
  53 static void initalloc(void);
  54 static void expand(wchar_t **, int);
  55 static void lnsync(FILE *);
  56 static void fpath(FILE *);