xlocale.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* Definition of locale datatype.
  2. Copyright (C) 1997,2000,02 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
  5. The GNU C Library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public
  7. License as published by the Free Software Foundation; either
  8. version 2.1 of the License, or (at your option) any later version.
  9. The GNU C Library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with the GNU C Library; if not, write to the Free
  15. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  16. 02111-1307 USA. */
  17. #ifndef _XLOCALE_H
  18. #define _XLOCALE_H 1
  19. #include <features.h>
  20. #ifndef __UCLIBC_HAS_XLOCALE__
  21. #error Attempted to include xlocale.h when uClibc built without extended locale support.
  22. #endif
  23. #include <bits/uClibc_locale.h>
  24. /* #include <bits/uClibc_touplow.h> */
  25. #if 0
  26. /* Structure for reentrant locale using functions. This is an
  27. (almost) opaque type for the user level programs. The file and
  28. this data structure is not standardized. Don't rely on it. It can
  29. go away without warning. */
  30. typedef struct __locale_struct
  31. {
  32. #if 0
  33. /* Note: LC_ALL is not a valid index into this array. */
  34. struct locale_data *__locales[13]; /* 13 = __LC_LAST. */
  35. #endif
  36. /* To increase the speed of this solution we add some special members. */
  37. /* const unsigned short int *__ctype_b; */
  38. /* const int *__ctype_tolower; */
  39. /* const int *__ctype_toupper; */
  40. const __uint16_t *__ctype_b;
  41. const __ctype_touplow_t *__ctype_tolower;
  42. const __ctype_touplow_t *__ctype_toupper;
  43. __uclibc_locale_t *__locale_ptr;
  44. #if 0
  45. /* Note: LC_ALL is not a valid index into this array. */
  46. const char *__names[13];
  47. #endif
  48. } *__locale_t;
  49. #endif
  50. #endif /* xlocale.h */