This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 01/14] Move definition of __bounded, etc.
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Cc: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Date: Wed, 17 Apr 2013 15:16:19 +0200
- Subject: [PATCH 01/14] Move definition of __bounded, etc.
These defines are only part of the glibc <sys/cdefs.h>. Move it to the
front to separate it from the FreeBSD specific parts. This makes it
easier to compare the file with the upstream version.
newlib/ChangeLog
2013-04-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libc/include/sys/cdefs.h (__bounded): Move definition.
(__unbounded): Likewise.
(__ptrvalue): Likewise.
---
newlib/libc/include/sys/cdefs.h | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdefs.h
index 253258a..395f122 100644
--- a/newlib/libc/include/sys/cdefs.h
+++ b/newlib/libc/include/sys/cdefs.h
@@ -91,6 +91,12 @@
#define __attribute_format_strfmon__(a,b)
#define __flexarr [0]
+#ifndef __BOUNDED_POINTERS__
+# define __bounded /* nothing */
+# define __unbounded /* nothing */
+# define __ptrvalue /* nothing */
+#endif
+
#ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS }
@@ -99,12 +105,6 @@
# define __END_DECLS
#endif
-#ifndef __BOUNDED_POINTERS__
-# define __bounded /* nothing */
-# define __unbounded /* nothing */
-# define __ptrvalue /* nothing */
-#endif
-
/*
* Given the pointer x to the member m of the struct s, return
* a pointer to the containing structure. When using GCC, we first
--
1.7.7
- Follow-Ups:
- [PATCH 06/14] FreeBSD update of __strong_reference, etc.
- [PATCH 03/14] FreeBSD update of __BEGIN_DECLS and __END_DECLS
- [PATCH 05/14] FreeBSD update of __P, etc.
- [PATCH 07/14] FreeBSD update of __dead2, etc.
- [PATCH 04/14] FreeBSD update of __GNUCLIKE_ASM, etc.
- [PATCH 12/14] FreeBSD update of __DECONST, etc.
- [PATCH 11/14] FreeBSD update of __FBSDID, etc.
- [PATCH 02/14] FreeBSD update of header guard
- [PATCH 14/14] FreeBSD update of file header
- [PATCH 13/14] FreeBSD update of __POSIX_VISIBLE, etc.
- [PATCH 08/14] FreeBSD update of _Alignas, etc.
- [PATCH 09/14] FreeBSD update of __always_inline, etc.
- [PATCH 10/14] FreeBSD update of __printflike, etc.
- <sys/cdefs.h> patch set overview