Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/iso/ctype_iso.h
          +++ new/usr/src/head/iso/ctype_iso.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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  /*      Copyright (c) 1988 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25      -
  26   25  /*
       26 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       27 + *
  27   28   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  28   29   * Use is subject to license terms.
  29   30   */
  30      -/*
  31      - * Copyright 2013 Garrett D'Amore <garrett@damore.org>
  32      - */
  33   31  
  34   32  /*
  35   33   * An application should not include this header directly.  Instead it
  36   34   * should be included only through the inclusion of other Sun headers.
  37   35   *
  38   36   * The contents of this header is limited to identifiers specified in the
  39   37   * C Standard.  Any new identifiers specified in future amendments to the
  40   38   * C Standard must be placed in this header.  If these new identifiers
  41   39   * are required to also be in the C++ Standard "std" namespace, then for
  42   40   * anything other than macro definitions, corresponding "using" directives
↓ open down ↓ 29 lines elided ↑ open up ↑
  72   70  #define _ISGRAPH        0x00002000
  73   71  #define _ISALPHA        0x00004000
  74   72  #define _ISPRINT        0x00008000
  75   73  #define _ISALNUM        (_ISALPHA | _ISDIGIT)
  76   74  
  77   75  extern unsigned char    __ctype[];
  78   76  extern unsigned int     *__ctype_mask;
  79   77  extern int              *__trans_upper;
  80   78  extern int              *__trans_lower;
  81   79  
  82      -#if defined(__STDC__)
  83      -
  84   80  #if __cplusplus >= 199711L
  85   81  namespace std {
  86   82  #endif
  87   83  
  88   84  /*
  89   85   * These used to be macros, which while more efficient, precludes operation
  90   86   * with thread specific locales.  The old macros will still work, but new
  91   87   * code compiles to use functions.  This is specifically permitted by the
  92   88   * various standards.  Only _tolower and _toupper were required to be
  93   89   * delivered in macro form.
↓ open down ↓ 13 lines elided ↑ open up ↑
 107  103  extern int isblank(int);
 108  104  #endif
 109  105  
 110  106  extern int tolower(int);
 111  107  extern int toupper(int);
 112  108  
 113  109  #if __cplusplus >= 199711L
 114  110  } /* end of namespace std */
 115  111  #endif
 116  112  
 117      -#else   /* defined(__STDC__) */
 118      -
 119      -#if !defined(__lint)
 120      -
 121      -extern int isalpha();
 122      -extern int isupper();
 123      -extern int islower();
 124      -extern int isdigit();
 125      -extern int isxdigit();
 126      -extern int isalnum();
 127      -extern int isspace();
 128      -extern int ispunct();
 129      -extern int isprint();
 130      -extern int isgraph();
 131      -extern int iscntrl();
 132      -extern int isblank();
 133      -
 134      -#endif  /* !defined(__lint) */
 135      -
 136      -#endif  /* defined(__STDC__) */
 137      -
 138  113  #ifdef  __cplusplus
 139  114  }
 140  115  #endif
 141  116  
 142  117  #endif  /* _ISO_CTYPE_ISO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX