Replace the existing Apache 2.0 boilerplate header with an SPDX tag throughout the zephyr code tree. This patch was generated via a script run over the master branch. Also updated doc/porting/application.rst that had a dependency on line numbers in a literal include. Manually updated subsys/logging/sys_log.c that had a malformed header in the original file. Also cleanup several cases that already had a SPDX tag and we either got a duplicate or missed updating. Jira: ZEP-1457 Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c Signed-off-by: David B. Kinder <david.b.kinder@intel.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
56 lines
1.0 KiB
C
56 lines
1.0 KiB
C
/* limits.h */
|
|
|
|
/*
|
|
* Copyright (c) 2014 Wind River Systems, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef __INC_limits_h__
|
|
#define __INC_limits_h__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define UCHAR_MAX 0xFF
|
|
#define SCHAR_MAX 0x7F
|
|
#define SCHAR_MIN (-SCHAR_MAX - 1)
|
|
|
|
#ifdef __CHAR_UNSIGNED__
|
|
/* 'char' is an unsigned type */
|
|
#define CHAR_MAX UCHAR_MAX
|
|
#define CHAR_MIN 0
|
|
#else
|
|
/* 'char' is a signed type */
|
|
#define CHAR_MAX SCHAR_MAX
|
|
#define CHAR_MIN SCHAR_MIN
|
|
#endif
|
|
|
|
#define CHAR_BIT 8
|
|
#define LONG_BIT 32
|
|
#define WORD_BIT 32
|
|
|
|
#define INT_MAX 0x7FFFFFFF
|
|
#define SHRT_MAX 0x7FFF
|
|
#define LONG_MAX 0x7FFFFFFFl
|
|
#define LLONG_MAX 0x7FFFFFFFFFFFFFFFll
|
|
|
|
#define INT_MIN (-INT_MAX - 1)
|
|
#define SHRT_MIN (-SHRT_MAX - 1)
|
|
#define LONG_MIN (-LONG_MAX - 1l)
|
|
#define LLONG_MIN (-LLONG_MAX - 1ll)
|
|
|
|
#define SSIZE_MAX INT_MAX
|
|
|
|
#define USHRT_MAX 0xFFFF
|
|
#define UINT_MAX 0xFFFFFFFFu
|
|
#define ULONG_MAX 0xFFFFFFFFul
|
|
#define ULLONG_MAX 0xFFFFFFFFFFFFFFFFull
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __INC_limits_h__ */
|