Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/ctype.h
          +++ new/usr/src/head/ctype.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  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   25  
  26   26  /*
       27 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       28 + *
  27   29   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  28   30   * Use is subject to license terms.
  29   31   */
  30      -/*
  31      - * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  32      - */
  33   32  
  34   33  #ifndef _CTYPE_H
  35   34  #define _CTYPE_H
  36   35  
  37   36  #include <iso/ctype_iso.h>
  38   37  
  39   38  /*
  40   39   * Allow global visibility for symbols defined in
  41   40   * C++ "std" namespace in <iso/ctype_iso.h>.
  42   41   */
↓ open down ↓ 13 lines elided ↑ open up ↑
  56   55  using std::toupper;
  57   56  #if _cplusplus >= 201103L
  58   57  using std::isblank;
  59   58  #endif
  60   59  #endif
  61   60  
  62   61  #ifdef  __cplusplus
  63   62  extern "C" {
  64   63  #endif
  65   64  
  66      -#if defined(__STDC__)
  67      -
  68   65  #if defined(__EXTENSIONS__) || \
  69   66          ((!defined(_STRICT_STDC) && !defined(_POSIX_C_SOURCE)) || \
  70   67          defined(_XOPEN_SOURCE))
  71   68  
  72   69  extern int isascii(int);
  73   70  extern int toascii(int);
  74   71  extern int _tolower(int);
  75   72  extern int _toupper(int);
  76   73  
  77   74  #endif /* defined(__EXTENSIONS__) || ((!defined(_STRICT_STDC) ... */
↓ open down ↓ 27 lines elided ↑ open up ↑
 105  102  extern int isgraph_l(int, locale_t);
 106  103  extern int islower_l(int, locale_t);
 107  104  extern int isprint_l(int, locale_t);
 108  105  extern int ispunct_l(int, locale_t);
 109  106  extern int isspace_l(int, locale_t);
 110  107  extern int isupper_l(int, locale_t);
 111  108  extern int isxdigit_l(int, locale_t);
 112  109  
 113  110  #endif /* defined(_XPG7) || !defined(_STRICT_SYMBOLS) */
 114  111  
 115      -#else   /* defined(__STDC__) */
 116      -
 117      -#if !defined(__lint)
 118      -
 119      -#define isascii(c)      (!(((int)(c)) & ~0177))
 120      -#define _toupper(c)     (isascii(c) ? __trans_upper[(int)(c)] : toupper(c))
 121      -#define _tolower(c)     (isascii(c) ? __trans_lower[(int)(c)] : tolower(c))
 122      -#define toascii(c)      (((int)(c)) & 0177)
 123      -
 124      -#endif  /* !defined(__lint) */
 125      -
 126      -#endif  /* defined(__STDC__) */
 127      -
 128  112  #ifdef  __cplusplus
 129  113  }
 130  114  #endif
 131  115  
 132  116  #endif  /* _CTYPE_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX