Print this page
Fixes for wcstok.

Split Close
Expand all
Collapse all
          --- old/usr/src/head/iso/wchar_iso.h
          +++ new/usr/src/head/iso/wchar_iso.h
↓ open down ↓ 271 lines elided ↑ open up ↑
 272  272          }
 273  273  }
 274  274  #else /* __cplusplus >= 199711L */
 275  275  extern wchar_t *wcschr(const wchar_t *, wchar_t);
 276  276  extern wchar_t *wcspbrk(const wchar_t *, const wchar_t *);
 277  277  extern wchar_t *wcsrchr(const wchar_t *, wchar_t);
 278  278  #endif /* __cplusplus >= 199711L */
 279  279  
 280  280  #if (!defined(_MSE_INT_H))
 281  281  #if defined(_XPG4) && !defined(_XPG5) /* XPG4 or XPG4v2 */
 282      -extern wchar_t *wcstok(wchar_t *, const wchar_t *);
      282 +extern wchar_t *wcstok(wchar_t *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD);
 283  283  extern size_t wcsftime(wchar_t *, size_t, const char *, const struct tm *);
 284  284  #else   /* XPG4 or XPG4v2 */
 285  285  #ifdef __PRAGMA_REDEFINE_EXTNAME
 286  286  #pragma redefine_extname wcstok __wcstok_xpg5
 287  287  #pragma redefine_extname wcsftime       __wcsftime_xpg5
 288  288  extern wchar_t *wcstok(wchar_t *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
 289  289          wchar_t **_RESTRICT_KYWD);
 290  290  extern size_t wcsftime(wchar_t *_RESTRICT_KYWD, size_t,
 291  291          const wchar_t *_RESTRICT_KYWD, const struct tm *_RESTRICT_KYWD);
 292  292  #else   /* __PRAGMA_REDEFINE_EXTNAME */
↓ open down ↓ 162 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX