Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/wctype.h
          +++ new/usr/src/head/wctype.h
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  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   27   * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       28 + *
  28   29   * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
  29   30   * Use is subject to license terms.
  30   31   */
  31   32  
  32   33  #ifndef _WCTYPE_H
  33   34  #define _WCTYPE_H
  34   35  
  35   36  #include <sys/feature_tests.h>
  36   37  #include <iso/wctype_iso.h>
  37   38  #ifndef _STRICT_SYMBOLS
↓ open down ↓ 59 lines elided ↑ open up ↑
  97   98  #define iswrune(c)              __iswrune(c)
  98   99  #define nextwctype(c, t)        __nextwctype(c, t)
  99  100  #endif
 100  101  
 101  102  /* character classification functions */
 102  103  
 103  104  /* iswascii is still a macro */
 104  105  #define iswascii(c)     isascii(c)
 105  106  
 106  107  /* isw*, except iswascii(), are not macros any more.  They become functions */
 107      -#ifdef __STDC__
 108  108  
 109  109  /* is* also become functions */
 110  110  extern  int isphonogram(wint_t);
 111  111  extern  int isideogram(wint_t);
 112  112  extern  int isenglish(wint_t);
 113  113  extern  int isnumber(wint_t);
 114  114  extern  int isspecial(wint_t);
 115  115  /* From BSD/MacOS */
 116  116  extern  int iswideogram(wint_t);
 117  117  extern  int iswphonogram(wint_t);
 118  118  extern  int iswnumber(wint_t);
 119  119  extern  int iswhexnumber(wint_t);
 120  120  extern  int iswspecial(wint_t);
 121  121  
 122      -#else   /* __STDC__ */
 123      -
 124      -/* is* also become functions */
 125      -extern  int isphonogram();
 126      -extern  int isideogram();
 127      -extern  int isenglish();
 128      -extern  int isnumber();
 129      -extern  int isspecial();
 130      -/* From BSD/MacOS */
 131      -extern  int iswideogram();
 132      -extern  int iswphonogram();
 133      -extern  int iswnumber();
 134      -extern  int iswspecial();
 135      -#endif
 136      -
 137  122  #define iscodeset0(c)   isascii(c)
 138  123  #define iscodeset1(c)   (((c) & WCHAR_CSMASK) == WCHAR_CS1)
 139  124  #define iscodeset2(c)   (((c) & WCHAR_CSMASK) == WCHAR_CS2)
 140  125  #define iscodeset3(c)   (((c) & WCHAR_CSMASK) == WCHAR_CS3)
 141  126  
 142  127  #endif /* !defined(_STRICT_SYMBOLS)... */
 143  128  
 144  129  
 145  130  /* XPG7 extended locale support */
 146  131  #if defined(_XPG7) || !defined(_STRICT_SYMBOLS)
 147  132  
 148  133  #ifndef _LOCALE_T
 149  134  #define _LOCALE_T
 150  135  typedef struct _locale *locale_t;
 151  136  #endif
 152  137  
 153      -#if     defined(__STDC__)
 154  138  extern wint_t towlower_l(wint_t, locale_t);
 155  139  extern wint_t towupper_l(wint_t, locale_t);
 156  140  extern wint_t towctrans_l(wint_t, wctrans_t, locale_t);
 157  141  extern int iswctype_l(wint_t, wctype_t, locale_t);
 158  142  extern int iswalnum_l(wint_t, locale_t);
 159  143  extern int iswalpha_l(wint_t, locale_t);
 160  144  extern int iswcntrl_l(wint_t, locale_t);
 161  145  extern int iswdigit_l(wint_t, locale_t);
 162  146  extern int iswgraph_l(wint_t, locale_t);
 163  147  extern int iswlower_l(wint_t, locale_t);
 164  148  extern int iswprint_l(wint_t, locale_t);
 165  149  extern int iswpunct_l(wint_t, locale_t);
 166  150  extern int iswspace_l(wint_t, locale_t);
 167  151  extern int iswupper_l(wint_t, locale_t);
 168  152  extern int iswxdigit_l(wint_t, locale_t);
 169  153  extern wctrans_t wctrans_l(const char *, locale_t);
 170  154  extern wctype_t wctype_l(const char *, locale_t);
 171      -#else   /* __STDC__ */
 172      -extern wint_t towlower_l();
 173      -extern wint_t towupper_l();
 174      -extern wint_t towctrans_l();
 175      -extern int iswctype_l();
 176      -extern int iswalnum_l();
 177      -extern int iswalpha_l();
 178      -extern int iswcntrl_l();
 179      -extern int iswdigit_l();
 180      -extern int iswgraph_l();
 181      -extern int iswlower_l();
 182      -extern int iswprint_l();
 183      -extern int iswpunct_l();
 184      -extern int iswspace_l();
 185      -extern int iswupper_l();
 186      -extern int iswxdigit_l();
 187      -extern wctrans_t wctrans_l();
 188      -extern wctype_t wctype_l();
 189      -#endif  /* __STDC__ */
 190  155  #endif /* defined(_XPG7) || !defined(_STRICT_SYMBOLS) */
 191  156  
 192  157  #ifdef  __cplusplus
 193  158  }
 194  159  #endif
 195  160  
 196  161  #endif  /* _WCTYPE_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX