Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/wchar.h
          +++ new/usr/src/head/wchar.h
↓ open down ↓ 112 lines elided ↑ open up ↑
 113  113  
 114  114  /*
 115  115   * XPG6 requires that va_list be defined as defined in <stdarg.h>,
 116  116   * however, inclusion of <stdarg.h> breaks Standard C namespace.
 117  117   */
 118  118  #if defined(_XPG6) && !defined(_VA_LIST)
 119  119  #define _VA_LIST
 120  120  typedef __va_list va_list;
 121  121  #endif  /* defined(_XPG6) && !defined(_VA_LIST) */
 122  122  
 123      -#ifdef __STDC__
 124      -
 125  123  #if !defined(_STRICT_STDC) || defined(_XOPEN_SOURCE) || defined(__EXTENSIONS__)
 126  124  #if __cplusplus >= 199711L
 127  125  namespace std {
 128  126  #endif
 129  127  extern int iswalpha(wint_t);
 130  128  extern int iswupper(wint_t);
 131  129  extern int iswlower(wint_t);
 132  130  extern int iswdigit(wint_t);
 133  131  extern int iswxdigit(wint_t);
 134  132  extern int iswalnum(wint_t);
↓ open down ↓ 50 lines elided ↑ open up ↑
 185  183  extern wchar_t *wcsdup(const wchar_t *);
 186  184  extern int wcscasecmp(const wchar_t *, const wchar_t *);
 187  185  extern int wcscasecmp_l(const wchar_t *, const wchar_t *, locale_t);
 188  186  extern int wcsncasecmp(const wchar_t *, const wchar_t *, size_t);
 189  187  extern int wcsncasecmp_l(const wchar_t *, const wchar_t *, size_t, locale_t);
 190  188  extern size_t mbsnrtowcs(wchar_t *_RESTRICT_KYWD, const char **_RESTRICT_KYWD,
 191  189      size_t, size_t, mbstate_t *_RESTRICT_KYWD);
 192  190  
 193  191  #endif  /* defined(_XPG7) || !defined(_STRICT_SYMBOLS) */
 194  192  
 195      -#else /* __STDC__ */
 196      -
 197      -#if !defined(_STRICT_STDC) || defined(_XOPEN_SOURCE) || defined(__EXTENSIONS__)
 198      -extern  int iswalpha();
 199      -extern  int iswupper();
 200      -extern  int iswlower();
 201      -extern  int iswdigit();
 202      -extern  int iswxdigit();
 203      -extern  int iswalnum();
 204      -extern  int iswspace();
 205      -extern  int iswpunct();
 206      -extern  int iswprint();
 207      -extern  int iswgraph();
 208      -extern  int iswcntrl();
 209      -extern  int iswctype();
 210      -extern  wint_t towlower();
 211      -extern  wint_t towupper();
 212      -extern wchar_t *wcswcs();
 213      -extern int wcswidth();
 214      -extern int wcwidth();
 215      -extern wctype_t wctype();
 216      -#endif /* !defined(_STRICT_STDC) || defined(_XOPEN_SOURCE)... */
 217      -
 218      -#if defined(_XGP7) || !defined(_STRICT_SYMBOLS)
 219      -extern size_t wcsnlen();
 220      -extern wchar_t *wcpcpy();
 221      -extern wchar_t *wcpncpy();
 222      -extern size_t wcsxfrm_l();
 223      -extern int wcscoll_l();
 224      -extern wchar_t *wcsdup();
 225      -extern int wcscasecmp();
 226      -extern int wcscasecmp_l();
 227      -extern int wcsncasecmp();
 228      -extern int wcsncasecmp_l();
 229      -extern size_t mbsnrtowcs();
 230      -#endif
 231      -
 232      -#endif /* __STDC__ */
 233      -
 234  193  #ifdef  __cplusplus
 235  194  }
 236  195  #endif
 237  196  
 238  197  #endif  /* _WCHAR_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX