Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/iso/stdio_c99.h
          +++ new/usr/src/head/iso/stdio_c99.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  /*
  28   30   * An application should not include this header directly.  Instead it
  29   31   * should be included only through the inclusion of other Sun headers.
  30   32   *
  31   33   * The contents of this header is limited to identifiers specified in
  32   34   * the C99 standard and in conflict with the C++ implementation of the
  33   35   * standard header.  The C++ standard may adopt the C99 standard at
  34   36   * which point it is expected that the symbols included here will
  35   37   * become part of the C++ std namespace.
  36   38   */
  37   39  
  38   40  #ifndef _ISO_STDIO_C99_H
  39   41  #define _ISO_STDIO_C99_H
  40   42  
  41      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  42      -
  43   43  #ifdef  __cplusplus
  44   44  extern "C" {
  45   45  #endif
  46   46  
  47   47  /*
  48   48   * The following have been added as a result of the ISO/IEC 9899:1999
  49   49   * standard. For a strictly conforming C application, visibility is
  50   50   * contingent on the value of __STDC_VERSION__ (see sys/feature_tests.h).
  51   51   * For non-strictly conforming C applications, there are no restrictions
  52   52   * on the C namespace.
↓ open down ↓ 11 lines elided ↑ open up ↑
  64   64  #pragma redefine_extname vsscanf        _vsscanf_c89
  65   65  #else
  66   66  #define snprintf        _snprintf_c89
  67   67  #define vsnprintf       _vsnprintf_c89
  68   68  #define vfscanf         _vfscanf_c89
  69   69  #define vscanf          _vscanf_c89
  70   70  #define vsscanf         _vsscanf_c89
  71   71  #endif
  72   72  #endif /* !defined(_LP64) && !defined(_LONGLONG_TYPE) */
  73   73  
  74      -#ifdef __STDC__
  75   74  extern int vfscanf(FILE *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, __va_list);
  76   75  extern int vscanf(const char *_RESTRICT_KYWD, __va_list);
  77   76  extern int vsscanf(const char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD,
  78   77                  __va_list);
  79      -#else
  80      -extern int vfscanf();
  81      -extern int vscanf();
  82      -extern int vsscanf();
  83      -#endif /* __STDC__ */
  84   78  #endif /* defined(__EXTENSIONS__) ... */
  85   79  #if defined(__EXTENSIONS__) || defined(_STDC_C99) || \
  86   80          (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
  87   81          defined(_XPG5)
  88      -#ifdef __STDC__
  89   82  extern int snprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD,
  90   83          ...);
  91   84  extern int vsnprintf(char *_RESTRICT_KYWD, size_t, const char *_RESTRICT_KYWD,
  92   85          __va_list);
  93      -#else
  94      -extern int snprintf();
  95      -extern int vsnprintf();
  96      -#endif /* __STDC__ */
  97   86  
  98   87  #endif /* defined(__EXTENSIONS__) || defined(_STDC_C99) ... */
  99   88  
 100   89  #ifdef  __cplusplus
 101   90  }
 102   91  #endif
 103   92  
 104   93  #endif  /* _ISO_STDIO_C99_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX