Print this page
5604 widec.h should expose ws* under __EXTENSIONS__

Split Close
Expand all
Collapse all
          --- old/usr/src/head/widec.h
          +++ new/usr/src/head/widec.h
↓ open down ↓ 68 lines elided ↑ open up ↑
  69   69  extern char     *wstostr(char *, wchar_t *);
  70   70  
  71   71  extern int      wscmp(const wchar_t *, const wchar_t *);
  72   72  extern int      wsncmp(const wchar_t *, const wchar_t *, size_t);
  73   73  extern size_t   wslen(const wchar_t *);
  74   74  extern size_t   wsspn(const wchar_t *, const wchar_t *);
  75   75  extern size_t   wscspn(const wchar_t *, const wchar_t *);
  76   76  extern int      wscoll(const wchar_t *, const wchar_t *);
  77   77  extern size_t   wsxfrm(wchar_t *, const wchar_t *, size_t);
  78   78  
  79      -#if !defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)
       79 +#if !defined(_STRICT_SYMBOLS)
  80   80  
  81   81  extern wchar_t  *wsdup(const wchar_t *);
  82   82  extern int      wscol(const wchar_t *);
  83   83  extern double   wstod(const wchar_t *, wchar_t **);
  84   84  extern long     wstol(const wchar_t *, wchar_t **, int);
  85   85  extern int      wscasecmp(const wchar_t *, const wchar_t *);
  86   86  extern int      wsncasecmp(const wchar_t *, const wchar_t *, size_t);
  87   87  extern int      wsprintf(wchar_t *, const char *, ...);
  88   88  #if defined(_LONGLONG_TYPE)
  89   89  extern long long        wstoll(const wchar_t *, wchar_t **, int);
  90   90  #endif  /* defined(_LONGLONG_TYPE) */
  91   91  
  92      -#endif /* !defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX) */
       92 +#endif /* !defined(_STRICT_SYMBOLS) */
  93   93  
  94   94  /* Returns the code set number for the process code c. */
  95   95  #define WCHAR_SHIFT     7
  96   96  #define WCHAR_S_MASK    0x7f
  97   97  #define wcsetno(c) \
  98   98          (((c)&0x20000000)?(((c)&0x10000000)?1:3):(((c)&0x10000000)?2:0))
  99   99  
 100  100  /* Aliases... */
 101  101  #define windex          wschr
 102  102  #define wrindex         wsrchr
↓ open down ↓ 24 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX