Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/int_const.h
          +++ new/usr/src/uts/common/sys/int_const.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  #ifndef _SYS_INT_CONST_H
  28   30  #define _SYS_INT_CONST_H
  29   31  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   32  /*
  33   33   * This file, <sys/int_const.h>, is part of the Sun Microsystems implementation
  34   34   * of <inttypes.h> as proposed in the ISO/JTC1/SC22/WG14 C committee's working
  35   35   * draft for the revision of the current ISO C standard, ISO/IEC 9899:1990
  36   36   * Programming language - C.
  37   37   *
  38   38   * Programs/Modules should not directly include this file.  Access to the
  39   39   * types defined in this file should be through the inclusion of one of the
  40   40   * following files:
  41   41   *
↓ open down ↓ 23 lines elided ↑ open up ↑
  65   65   *      Constants defined using these macros have a specific size and
  66   66   *      signedness. The suffix used for int64_t and uint64_t (ll and ull)
  67   67   *      are for examples only. Implementations are permitted to use other
  68   68   *      suffixes.
  69   69   *
  70   70   * The "CSTYLED" comments are flags to an internal code style analysis tool
  71   71   * telling it to silently accept the line which follows.  This internal
  72   72   * standard requires a space between arguments, but the historical,
  73   73   * non-ANSI-C ``method'' of concatenation can't tolerate those spaces.
  74   74   */
  75      -#ifdef __STDC__
  76   75  /* CSTYLED */
  77   76  #define __CONCAT__(A,B) A ## B
  78      -#else
  79      -/* CSTYLED */
  80      -#define __CONCAT__(A,B) A/**/B
  81      -#endif
  82   77  
  83      -#if defined(_CHAR_IS_SIGNED) || defined(__STDC__)
  84   78  #define INT8_C(c)       (c)
  85      -#endif
  86   79  #define INT16_C(c)      (c)
  87   80  #define INT32_C(c)      (c)
  88   81  #ifdef  _LP64
  89   82  /* CSTYLED */
  90   83  #define INT64_C(c)      __CONCAT__(c,l)
  91   84  #else   /* _ILP32 */
  92   85  #if defined(_LONGLONG_TYPE)
  93   86  /* CSTYLED */
  94   87  #define INT64_C(c)      __CONCAT__(c,ll)
  95   88  #endif
↓ open down ↓ 40 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX