/* * ISO C Runtime Library * * Copyright (C) 2011-2020 Green Hills Software, Inc. * * This program is the property of Green Hills Software, Inc, * its contents are proprietary information and no part of it * is to be disclosed to anyone except employees of Green Hills * Software, Inc., or as agreed in writing signed by the President * of Green Hills Software, Inc. */ #ifndef _GHS_UCHAR_H #ifdef __ghs__ #pragma ghs startnomisra #endif #define _GHS_UCHAR_H /* Define size_t but not NULL */ #define __GHS_WANT_SIZE_T #include "ghs_null.h" #ifdef __GHS_UNICODE__ # ifndef __STDC_UTF_16__ # define __STDC_UTF_16__ 1 # endif /* __STDC_UTF_16__ */ # ifndef __STDC_UTF_32__ # define __STDC_UTF_32__ 1 # endif /* __STDC_UTF_32__ */ #endif /* __GHS_UNICODE__ */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #if !defined(_MBSTATET) && !defined(_MBSTATE_T) # define _MBSTATET # define _MBSTATE_T typedef int mbstate_t; #endif /* !defined(_MBSTATET) && !defined(_MBSTATE_T) */ #if !defined(__CHAR16_T_AND_CHAR32_T) # define __CHAR16_T_AND_CHAR32_T typedef unsigned short char16_t; typedef unsigned int char32_t; #endif /* !defined(__CHAR16_T_AND_CHAR32_T) */ #if defined(__STDC_VERSION__) && (__STDC_VERSION__>=199901L) #define __Restrict restrict #else #define __Restrict #endif /* defined(__STDC_VERSION__) && (__STDC_VERSION__>=199901L) */ #if defined(__GHS_GENERATE_FEE) && defined(__ghs__) #pragma ghs entry_exit_history push on #endif #ifdef __GHS_UNICODE__ size_t c16rtomb(char *__Restrict __s, char16_t __c16, mbstate_t *__Restrict __ps); size_t c32rtomb(char *__Restrict __s, char32_t __c32, mbstate_t *__Restrict __ps); size_t mbrtoc16(char16_t * __Restrict __pc16, const char *__Restrict __s, size_t __n, mbstate_t *__Restrict __ps); size_t mbrtoc32(char32_t * __Restrict __pc32, const char *__Restrict __s, size_t __n, mbstate_t *__Restrict __ps); #endif /* __GHS_UNICODE__ */ #if defined(__GHS_GENERATE_FEE) && defined(__ghs__) #pragma ghs entry_exit_history pop #endif #undef __Restrict #ifdef __cplusplus } #endif /* __cplusplus */ #ifdef __ghs__ #pragma ghs endnomisra #endif #endif /* _GHS_UCHAR_H */