Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/int_fmtio.h
          +++ new/usr/src/uts/common/sys/int_fmtio.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_FMTIO_H
  28   30  #define _SYS_INT_FMTIO_H
  29   31  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   32  /*
  33   33   * This file, <sys/int_fmtio.h>, is part of the Sun Microsystems implementation
  34   34   * of <inttypes.h> as defined by the ISO C Standard, ISO/IEC 9899:1999
  35   35   * Programming language - C.
  36   36   *
  37   37   * ISO  International Organization for Standardization.
  38   38   *
  39   39   * Programs/Modules should not directly include this file.  Access to the
  40   40   * types defined in this file should be through the inclusion of one of the
  41   41   * following files:
↓ open down ↓ 45 lines elided ↑ open up ↑
  87   87  #define _MODF16 "h"
  88   88  #endif
  89   89  
  90   90  #define _PRId   "d"
  91   91  #define _PRIi   "i"
  92   92  #define _PRIo   "o"
  93   93  #define _PRIu   "u"
  94   94  #define _PRIx   "x"
  95   95  #define _PRIX   "X"
  96   96  
  97      -#if defined(_CHAR_IS_SIGNED) || defined(__STDC__)
  98   97  #define PRId8                   _MODF8 _PRId
  99   98  #define PRIdLEAST8              PRId8
 100   99  #define PRIdFAST8               PRId8
 101      -#endif
 102  100  #define PRId16                  _MODF16 _PRId
 103  101  #define PRIdLEAST16             PRId16
 104  102  #define PRId32                  "d"
 105  103  #define PRIdFAST16              PRId32
 106  104  #define PRIdLEAST32             PRId32
 107  105  #define PRIdFAST32              PRId32
 108  106  #ifdef  _LP64
 109  107  #define PRId64                  "ld"
 110  108  #else   /* _ILP32 */
 111  109  #if defined(_LONGLONG_TYPE)
 112  110  #define PRId64                  "lld"
 113  111  #endif
 114  112  #endif
 115  113  #ifdef PRId64
 116  114  #define PRIdLEAST64             PRId64
 117  115  #define PRIdFAST64              PRId64
 118  116  #endif
 119  117  
 120      -#if defined(_CHAR_IS_SIGNED) || defined(__STDC__)
 121  118  #define PRIi8                   _MODF8 _PRIi
 122  119  #define PRIiLEAST8              PRIi8
 123  120  #define PRIiFAST8               PRIi8
 124      -#endif
 125  121  #define PRIi16                  _MODF16 _PRIi
 126  122  #define PRIiLEAST16             PRIi16
 127  123  #define PRIi32                  "i"
 128  124  #define PRIiFAST16              PRIi32
 129  125  #define PRIiLEAST32             PRIi32
 130  126  #define PRIiFAST32              PRIi32
 131  127  #ifdef  _LP64
 132  128  #define PRIi64                  "li"
 133  129  #else   /* _ILP32 */
 134  130  #if defined(_LONGLONG_TYPE)
↓ open down ↓ 109 lines elided ↑ open up ↑
 244  240  #define PRIiPTR                 "i"
 245  241  #define PRIoPTR                 "o"
 246  242  #define PRIuPTR                 "u"
 247  243  #define PRIxPTR                 "x"
 248  244  #define PRIXPTR                 "X"
 249  245  #endif /* defined(_LP64) || defined(_I32LPx) */
 250  246  
 251  247  /*
 252  248   * fscanf macros for signed integers
 253  249   */
 254      -#if defined(_CHAR_IS_SIGNED) || defined(__STDC__)
 255  250  #define SCNd8                   "hhd"
 256  251  #define SCNdLEAST8              SCNd8
 257  252  #define SCNdFAST8               SCNd8
 258      -#endif
 259  253  #define SCNd16                  "hd"
 260  254  #define SCNdLEAST16             SCNd16
 261  255  #define SCNd32                  "d"
 262  256  #define SCNdFAST16              SCNd32
 263  257  #define SCNdLEAST32             SCNd32
 264  258  #define SCNdFAST32              SCNd32
 265  259  #ifdef PRId64
 266  260  #define SCNd64                  PRId64
 267  261  #define SCNdLEAST64             PRId64
 268  262  #define SCNdFAST64              PRId64
 269  263  #endif
 270  264  #define SCNdPTR                 PRIdPTR
 271  265  
 272      -#if defined(_CHAR_IS_SIGNED) || defined(__STDC__)
 273  266  #define SCNi8                   "hhi"
 274  267  #define SCNiLEAST8              SCNi8
 275  268  #define SCNiFAST8               SCNi8
 276      -#endif
 277  269  #define SCNi16                  "hi"
 278  270  #define SCNiLEAST16             SCNi16
 279  271  #define SCNi32                  "i"
 280  272  #define SCNiFAST16              SCNi32
 281  273  #define SCNiLEAST32             SCNi32
 282  274  #define SCNiFAST32              SCNi32
 283  275  #ifdef PRIi64
 284  276  #define SCNi64                  PRIi64
 285  277  #define SCNiLEAST64             PRIi64
 286  278  #define SCNiFAST64              PRIi64
↓ open down ↓ 101 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX