/* ISO C Runtime Library Copyright (c) 1983-2022 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. */ #if 0 /* use #if 0 so this does not look like commented out code */ Note. This header is purposely not protected. Its contents are all protected individually. This only matters if a program (illegally) does #include #undef NULL #include Since most implementations work for the above program, we ought to also. #endif #ifdef __ghs__ #pragma ghs startnomisra #if !defined(__GHS_INST_PRO_EPI_IN_C_HEADERS) #pragma ghs instrument_prologue_epilogue push off #endif #endif # if !defined(_ALLOCA_H) && !defined(_GHS_LOCALE_H) && !defined(_GHS_MALLOC_H) && \ !defined(_STDDEF_H) && !defined(_STDIO_H) && !defined(_STDATOMIC_H) && \ !defined(__GHS_STDIO_H) && !defined(__GHS_STDLIB_H) && !defined(_STDLIB_H) && \ !defined(_STRING_H) && !defined(_GHS_TIME_H) && !defined(_TIME_H) && \ !defined(_GHS_WCHAR_H) && !defined(_GHS_WMEMCHR_H) && !defined(_GHS_UCHAR_H) && \ !defined(__ARM_IS) && !defined(_PPC_GHS_H) && !defined(__86_IS) && \ !defined(__INTEGRITY) && !defined(INT_178B) # error Please include instead of ghs_null.h #endif #if !defined(__GHS_WANT_NULL) && !defined(__GHS_WANT_SIZE_T) && \ !defined(__GHS_WANT_SIZE_C) # define __GHS_WANT_NULL # define __GHS_WANT_SIZE_T # define __GHS_WANT_SIZE_C #endif # if !defined(__GHS_WANT_NULL) # elif defined(NULL) # elif !defined(__cplusplus) && !defined(__MISRA_45) && !defined(__MISRA_11_3) # define NULL ((void *)0) /* cannot be assigned to a function pointer */ # elif defined(__LLONG_BIT) && __PTR_BIT > __LONG_BIT # define NULL (0LL) /* long is smaller than pointer on this target */ # elif __PTR_BIT > __INT_BIT # define NULL (0L) /* int is smaller than pointer on this target */ # else # define NULL (0) /* C++ requires this to be integral, not a pointer */ # endif /* NULL */ # undef __GHS_WANT_NULL # if !defined(__GHS_WANT_SIZE_T) # elif !defined(_SIZE_T) && !defined(_SIZE_T_DEFINED) # define _SIZE_T # define _SIZE_T_DEFINED # if defined(__LLONG_BIT) && __PTR_BIT > __LONG_BIT typedef unsigned long long size_t; # elif __PTR_BIT > __INT_BIT typedef unsigned long size_t; # else typedef unsigned int size_t; # endif # endif /* _SIZE_T */ # undef __GHS_WANT_SIZE_T # if !defined(__GHS_WANT_SIZE_C) # elif !defined(__SIZE_C) # if defined(__LLONG_BIT) && __PTR_BIT > __LONG_BIT # define __SIZE_C(__n) ((__n)+0ULL) # elif __PTR_BIT > __INT_BIT # define __SIZE_C(__n) ((__n)+0UL) # else # define __SIZE_C(__n) ((__n)+0U) # endif # endif /* __SIZE_C */ # undef __GHS_WANT_SIZE_C #ifdef __ghs__ #if !defined(__GHS_INST_PRO_EPI_IN_C_HEADERS) #pragma ghs instrument_prologue_epilogue pop #endif #pragma ghs endnomisra #endif