acquire_release.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (c) 1999
  3. * Silicon Graphics Computer Systems, Inc.
  4. *
  5. * Copyright (c) 1999
  6. * Boris Fomitchev
  7. *
  8. * This material is provided "as is", with absolutely no warranty expressed
  9. * or implied. Any use is at your own risk.
  10. *
  11. * Permission to use or copy this software for any purpose is hereby granted
  12. * without fee, provided the above notices are retained on all copies.
  13. * Permission to modify the code and to distribute modified code is granted,
  14. * provided the above notices are retained, and a notice that the code was
  15. * modified is included with the above copyright notice.
  16. *
  17. */
  18. #ifndef ACQUIRE_RELEASE_H
  19. #define ACQUIRE_RELEASE_H
  20. #include "c_locale.h"
  21. _STLP_BEGIN_NAMESPACE
  22. _STLP_MOVE_TO_PRIV_NAMESPACE
  23. _Locale_ctype* _STLP_CALL __acquire_ctype(const char* &name, char *buf, _Locale_name_hint* hint, int *__err_code);
  24. _Locale_codecvt* _STLP_CALL __acquire_codecvt(const char* &name, char *buf, _Locale_name_hint* hint, int *__err_code);
  25. _Locale_numeric* _STLP_CALL __acquire_numeric(const char* &name, char *buf, _Locale_name_hint* hint, int *__err_code);
  26. _Locale_collate* _STLP_CALL __acquire_collate(const char* &name, char *buf, _Locale_name_hint* hint, int *__err_code);
  27. _Locale_monetary* _STLP_CALL __acquire_monetary(const char* &name, char *buf, _Locale_name_hint* hint, int *__err_code);
  28. _Locale_time* _STLP_CALL __acquire_time(const char* &name, char *buf, _Locale_name_hint*, int *__err_code);
  29. _Locale_messages* _STLP_CALL __acquire_messages(const char* &name, char *buf, _Locale_name_hint* hint, int *__err_code);
  30. void _STLP_CALL __release_ctype(_Locale_ctype* cat);
  31. void _STLP_CALL __release_codecvt(_Locale_codecvt* cat);
  32. void _STLP_CALL __release_numeric(_Locale_numeric* cat);
  33. void _STLP_CALL __release_collate(_Locale_collate* cat);
  34. void _STLP_CALL __release_monetary(_Locale_monetary* cat);
  35. void _STLP_CALL __release_time(_Locale_time* __time);
  36. void _STLP_CALL __release_messages(_Locale_messages* cat);
  37. _STLP_MOVE_TO_STD_NAMESPACE
  38. _STLP_END_NAMESPACE
  39. #endif /* ACQUIRE_RELEASE_H */