This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 05/13] Move ansidecl.h to common-defs.h


This commit moves the inclusion of ansidecl.h to common-defs.h and
removes all other inclusions.

gdb/
2014-07-28  Gary Benson  <gbenson@redhat.com>

	* common/common-defs.h: Include ansidecl.h.
	* defs.h: Do not include ansidecl.h.
	* common/buffer.h: Likewise.
	* common/common-utils.h: Likewise.

gdb/gdbserver/
2014-07-28  Gary Benson  <gbenson@redhat.com>

	* server.h: Do not include ansidecl.h.
---
 gdb/ChangeLog             |    7 +++++++
 gdb/common/buffer.h       |    1 -
 gdb/common/common-defs.h  |    1 +
 gdb/common/common-utils.h |    2 --
 gdb/defs.h                |    5 -----
 gdb/gdbserver/ChangeLog   |    4 ++++
 gdb/gdbserver/server.h    |    1 -
 7 files changed, 12 insertions(+), 9 deletions(-)

diff --git a/gdb/common/buffer.h b/gdb/common/buffer.h
index d051bfb..98da0d2 100644
--- a/gdb/common/buffer.h
+++ b/gdb/common/buffer.h
@@ -21,7 +21,6 @@
 #define BUFFER_H
 
 #include <string.h>
-#include "ansidecl.h"
 
 struct buffer
 {
diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h
index f1fd363..8106e68 100644
--- a/gdb/common/common-defs.h
+++ b/gdb/common/common-defs.h
@@ -31,5 +31,6 @@
 #include <stdlib.h>
 #include <stdarg.h>
 #include <stddef.h>
+#include "ansidecl.h"
 
 #endif /* COMMON_DEFS_H */
diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h
index 4dc4329..9038bc2 100644
--- a/gdb/common/common-utils.h
+++ b/gdb/common/common-utils.h
@@ -20,8 +20,6 @@
 #ifndef COMMON_UTILS_H
 #define COMMON_UTILS_H
 
-#include "ansidecl.h"
-
 /* If possible, define FUNCTION_NAME, a macro containing the name of
    the function being defined.  Since this macro may not always be
    defined, all uses must be protected by appropriate macro definition
diff --git a/gdb/defs.h b/gdb/defs.h
index 58098a9..b7b6de9 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -53,11 +53,6 @@
 
 #include <fcntl.h>
 
-/* First include ansidecl.h so we can use the various macro definitions
-   here and in all subsequent file inclusions.  */
-
-#include "ansidecl.h"
-
 #include "gdb_locale.h"
 
 #include "gdb_wchar.h"
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h
index 9d7fd99..061cdcd 100644
--- a/gdb/gdbserver/server.h
+++ b/gdb/gdbserver/server.h
@@ -26,7 +26,6 @@
 #endif
 
 #include "libiberty.h"
-#include "ansidecl.h"
 #include "version.h"
 
 #ifdef HAVE_ERRNO_H
-- 
1.7.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]