~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to system/include/libcxx/__locale

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-09-20 22:44:35 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130920224435-apuwj4fsl3fqv1a6
Tags: 1.5.6~20130920~6010666-1
* New snapshot release
* Update the list of supported architectures to the same as libv8
  (Closes: #723129)
* emlibtool has been removed from upstream.
* Fix warning syntax-error-in-dep5-copyright
* Refresh of the patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include <cstdint>
20
20
#include <cctype>
21
21
#include <locale.h>
22
 
#ifdef _WIN32
 
22
#ifdef _LIBCPP_MSVCRT
23
23
# include <support/win32/locale_win32.h>
24
 
#elif (defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun__)) || defined(EMSCRIPTEN)
 
24
#elif (defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun__)) || defined(__EMSCRIPTEN__)
25
25
# include <xlocale.h>
26
 
#endif  // _WIN32 || __GLIBC__ || __APPLE__ || __FreeBSD__ || __sun__ || EMSCRIPTEN
 
26
#endif  // _WIN32 || __GLIBC__ || __APPLE__ || __FreeBSD__ || __sun__ || __EMSCRIPTEN__
27
27
 
28
28
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
29
29
#pragma GCC system_header
339
339
    static const mask punct  = _PUNCT;
340
340
    static const mask xdigit = _HEX;
341
341
    static const mask blank  = _BLANK;
342
 
#elif (defined(__APPLE__) || defined(__FreeBSD__)) || defined(EMSCRIPTEN)
 
342
#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__EMSCRIPTEN__) || defined(__NetBSD__)
343
343
#ifdef __APPLE__
344
344
    typedef __uint32_t mask;
345
345
#elif defined(__FreeBSD__)
346
346
    typedef unsigned long mask;
347
 
#elif defined(EMSCRIPTEN)
 
347
#elif defined(__EMSCRIPTEN__) ||  defined(__NetBSD__)
348
348
    typedef unsigned short mask;
349
349
#endif
350
350
    static const mask space  = _CTYPE_S;
356
356
    static const mask digit  = _CTYPE_D;
357
357
    static const mask punct  = _CTYPE_P;
358
358
    static const mask xdigit = _CTYPE_X;
 
359
# if defined(__NetBSD__)
 
360
    static const mask blank  = _CTYPE_BL;
 
361
# else
359
362
    static const mask blank  = _CTYPE_B;
 
363
# endif
360
364
#elif defined(__sun__)
361
365
    typedef unsigned int mask;
362
366
    static const mask space  = _ISSPACE;
369
373
    static const mask punct  = _ISPUNCT;
370
374
    static const mask xdigit = _ISXDIGIT;
371
375
    static const mask blank  = _ISBLANK;
372
 
#else  // __GLIBC__ || _WIN32 || __APPLE__ || __FreeBSD__ || EMSCRIPTEN || __sun__
 
376
#else  // __GLIBC__ || _WIN32 || __APPLE__ || __FreeBSD__ || __EMSCRIPTEN__ || __sun__
373
377
    typedef unsigned long mask;
374
378
    static const mask space  = 1<<0;
375
379
    static const mask print  = 1<<1;
592
596
#endif
593
597
    _LIBCPP_ALWAYS_INLINE const mask* table() const  _NOEXCEPT {return __tab_;}
594
598
    static const mask* classic_table()  _NOEXCEPT;
595
 
#if defined(__GLIBC__) || defined(EMSCRIPTEN)
 
599
#if defined(__GLIBC__) || defined(__EMSCRIPTEN__)
596
600
    static const int* __classic_upper_table() _NOEXCEPT;
597
601
    static const int* __classic_lower_table() _NOEXCEPT;
598
602
#endif
 
603
#if defined(__NetBSD__)
 
604
    static const short* __classic_upper_table() _NOEXCEPT;
 
605
    static const short* __classic_lower_table() _NOEXCEPT;
 
606
#endif
599
607
 
600
608
protected:
601
609
    ~ctype();