Move ansidecl.h to common-defs.h
authorGary Benson <gbenson@redhat.com>
Mon, 28 Jul 2014 11:03:31 +0000 (12:03 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 7 Aug 2014 08:06:40 +0000 (09:06 +0100)
This commit moves the inclusion of ansidecl.h to common-defs.h and
removes all other inclusions.

gdb/
2014-08-07  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-08-07  Gary Benson  <gbenson@redhat.com>

* server.h: Do not include ansidecl.h.

gdb/ChangeLog
gdb/common/buffer.h
gdb/common/common-defs.h
gdb/common/common-utils.h
gdb/defs.h
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.h

index 1cd070c..422a5d8 100644 (file)
@@ -1,5 +1,12 @@
 2014-08-07  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.
+
+2014-08-07  Gary Benson  <gbenson@redhat.com>
+
        * common/common-defs.h: Include stddef.h.
        * defs.h: Do not include stddef.h.
        * common/common-utils.h: Likewise.
index d051bfb..98da0d2 100644 (file)
@@ -21,7 +21,6 @@
 #define BUFFER_H
 
 #include <string.h>
-#include "ansidecl.h"
 
 struct buffer
 {
index f1fd363..8106e68 100644 (file)
@@ -31,5 +31,6 @@
 #include <stdlib.h>
 #include <stdarg.h>
 #include <stddef.h>
+#include "ansidecl.h"
 
 #endif /* COMMON_DEFS_H */
index 4dc4329..9038bc2 100644 (file)
@@ -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
index 58098a9..b7b6de9 100644 (file)
 
 #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"
index 90d40ed..9d0c7b3 100644 (file)
@@ -1,5 +1,9 @@
 2014-08-07  Gary Benson  <gbenson@redhat.com>
 
+       * server.h: Do not include ansidecl.h.
+
+2014-08-07  Gary Benson  <gbenson@redhat.com>
+
        * linux-x86-low.c: Do not include stddef.h.
        * lynx-ppc-low.c: Likewise.
        * tracepoint.c: Likewise.
index 9d7fd99..061cdcd 100644 (file)
@@ -26,7 +26,6 @@
 #endif
 
 #include "libiberty.h"
-#include "ansidecl.h"
 #include "version.h"
 
 #ifdef HAVE_ERRNO_H