Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/iso/wctype_iso.h
          +++ new/usr/src/head/iso/wctype_iso.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*      wctype.h        1.13 89/11/02 SMI; JLE  */
  23   23  /*      from AT&T JAE 2.1                       */
  24   24  /*      definitions for international functions */
  25   25  
  26   26  /*
       27 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       28 + *
  27   29   * Copyright 2006 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  /*
  35   34   * An application should not include this header directly.  Instead it
  36   35   * should be included only through the inclusion of other Sun headers.
  37   36   *
  38   37   * The contents of this header is limited to identifiers specified in the
  39   38   * C Standard.  Any new identifiers specified in future amendments to the
  40   39   * C Standard must be placed in this header.  If these new identifiers
  41   40   * are required to also be in the C++ Standard "std" namespace, then for
  42   41   * anything other than macro definitions, corresponding "using" directives
↓ open down ↓ 33 lines elided ↑ open up ↑
  76   75  #if !defined(_XPG4) || defined(_XPG5)
  77   76  #ifndef WEOF
  78   77  #if __cplusplus >= 199711L
  79   78  #define WEOF    ((std::wint_t)(-1))
  80   79  #else
  81   80  #define WEOF    ((wint_t)(-1))
  82   81  #endif
  83   82  #endif /* WEOF */
  84   83  #endif /* not XPG4 and not XPG4v2 */
  85   84  
  86      -#ifdef __STDC__
  87   85  extern  int iswalnum(wint_t);
  88   86  extern  int iswalpha(wint_t);
  89   87  extern  int iswcntrl(wint_t);
  90   88  extern  int iswdigit(wint_t);
  91   89  extern  int iswgraph(wint_t);
  92   90  extern  int iswlower(wint_t);
  93   91  extern  int iswprint(wint_t);
  94   92  extern  int iswpunct(wint_t);
  95   93  extern  int iswspace(wint_t);
  96   94  extern  int iswupper(wint_t);
↓ open down ↓ 4 lines elided ↑ open up ↑
 101   99  extern  int iswblank(wint_t);
 102  100  #endif
 103  101  
 104  102  /* tow* also become functions */
 105  103  extern  wint_t towlower(wint_t);
 106  104  extern  wint_t towupper(wint_t);
 107  105  extern  wctrans_t wctrans(const char *);
 108  106  extern  wint_t towctrans(wint_t, wctrans_t);
 109  107  extern  int iswctype(wint_t, wctype_t);
 110  108  extern  wctype_t wctype(const char *);
 111      -#else   /* __STDC__ */
 112      -extern  int iswalnum();
 113      -extern  int iswalpha();
 114      -extern  int iswcntrl();
 115      -extern  int iswdigit();
 116      -extern  int iswgraph();
 117      -extern  int iswlower();
 118      -extern  int iswprint();
 119      -extern  int iswpunct();
 120      -extern  int iswspace();
 121      -extern  int iswupper();
 122      -extern  int iswxdigit();
 123      -/* tow* also become functions */
 124      -extern  wint_t towlower();
 125      -extern  wint_t towupper();
 126      -extern  wctrans_t wctrans();
 127      -extern  wint_t towctrans();
 128      -extern  int iswctype();
 129      -extern  wctype_t wctype();
 130      -#if defined(_XPG6) || !defined(_STRICT_SYMBOLS)
 131      -extern  int iswblank();
 132      -#endif
 133      -#endif  /* __STDC__ */
 134  109  
 135  110  /* bit definition for character class */
 136  111  
 137  112  #define _E1     0x00000100      /* phonogram (international use) */
 138  113  #define _E2     0x00000200      /* ideogram (international use) */
 139  114  #define _E3     0x00000400      /* English (international use) */
 140  115  #define _E4     0x00000800      /* number (international use) */
 141  116  #define _E5     0x00001000      /* special (international use) */
 142  117  #define _E6     0x00002000      /* other characters (international use) */
 143  118  #define _E7     0x00004000      /* reserved (international use) */
↓ open down ↓ 28 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX