Changeset f9d0a86 in mainline for abi/include/_bits/NULL.h
- Timestamp:
- 2017-11-14T12:24:42Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6cad776
- Parents:
- 887c9de (diff), d2d142a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Aearsis <Hlavaty.Ondrej@…> (2017-11-14 01:04:19)
- git-committer:
- Aearsis <Hlavaty.Ondrej@…> (2017-11-14 12:24:42)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
abi/include/_bits/NULL.h
r887c9de rf9d0a86 1 1 /* 2 * Copyright (c) 20 06 Ondrej Palkovsky2 * Copyright (c) 2017 CZ.NIC, z.s.p.o. 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup libcabs32 29 /* Authors: 30 * Jiří Zárevúcky (jzr) <zarevucky.jiri@gmail.com> 31 */ 32 33 /** @addtogroup bits 30 34 * @{ 31 35 */ 32 36 /** @file 37 * Definition of constant NULL. 38 * 39 * This definition is designed to work in both C and C++, and use 40 * the special constant `nullptr` in C++11 and above. 41 * Including this file is preferrable to defining the constant separately. 33 42 */ 34 43 35 #ifndef LIBC_abs32_STDINT_H_36 #define LIBC_abs32_STDINT_H_44 #ifndef _BITS_NULL_H_ 45 #define _BITS_NULL_H_ 37 46 38 #i nclude <libarch/common.h>47 #ifndef NULL 39 48 40 #define SIZE_MAX UINT32_MAX 49 #if __cplusplus >= 201103L 50 #define NULL nullptr 51 #elif defined(__cplusplus) 52 #define NULL 0L 53 #else 54 #define NULL ((void *) 0) 55 #endif 41 56 42 #define UINTPTR_MAX UINT32_MAX 43 typedef uint32_t uintptr_t; 44 45 #define INTPTR_MIN INT32_MIN 46 #define INTPTR_MAX INT32_MAX 47 typedef int32_t intptr_t; 48 49 #define UINTMAX_MAX UINT64_MAX 50 typedef uint64_t uintmax_t; 51 52 #define INTMAX_MAX INT64_MAX 53 typedef int64_t intmax_t; 57 #endif 54 58 55 59 #endif
Note:
See TracChangeset
for help on using the changeset viewer.