Move include guards out to enable GCC optimisation
authorDaniel Boles <dboles@src.gnome.org>
Fri, 26 May 2017 15:25:16 +0000 (16:25 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Fri, 26 May 2017 15:35:01 +0000 (16:35 +0100)
by ensuring the #ifndef GUARD_NAME and its #endif are the outermost
pieces of non-comment and non-whitespace content in the header file.

https://bugzilla.gnome.org/show_bug.cgi?id=689810

31 files changed:
atk/atkaction.h
atk/atkcomponent.h
atk/atkdocument.h
atk/atkeditabletext.h
atk/atkgobjectaccessible.h
atk/atkhyperlink.h
atk/atkhyperlinkimpl.h
atk/atkhypertext.h
atk/atkimage.h
atk/atkmisc.h
atk/atknoopobjectfactory.h
atk/atkobject.h
atk/atkobjectfactory.h
atk/atkplug.h
atk/atkprivate.h
atk/atkrange.h
atk/atkregistry.h
atk/atkrelation.h
atk/atkrelationset.h
atk/atkrelationtype.h
atk/atkselection.h
atk/atksocket.h
atk/atkstate.h
atk/atkstateset.h
atk/atkstreamablecontent.h
atk/atktable.h
atk/atktablecell.h
atk/atktext.h
atk/atkutil.h
atk/atkvalue.h
atk/atkwindow.h

index 3712806..1314071 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_ACTION_H__
+#define __ATK_ACTION_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_ACTION_H__
-#define __ATK_ACTION_H__
-
 #include <atk/atkobject.h>
 
 G_BEGIN_DECLS
index 9cc85ee..d20fdc2 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_COMPONENT_H__
+#define __ATK_COMPONENT_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_COMPONENT_H__
-#define __ATK_COMPONENT_H__
-
 #include <atk/atkobject.h>
 #include <atk/atkutil.h>
 
index aa38d3e..0aed668 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_DOCUMENT_H__
+#define __ATK_DOCUMENT_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_DOCUMENT_H__
-#define __ATK_DOCUMENT_H__
-
 #include <atk/atkobject.h>
 #include <atk/atkutil.h>
 
index f78f267..3eebab2 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_EDITABLE_TEXT_H__
+#define __ATK_EDITABLE_TEXT_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_EDITABLE_TEXT_H__
-#define __ATK_EDITABLE_TEXT_H__
-
 #include <atk/atkobject.h>
 #include <atk/atktext.h>
 
index f843370..38066e5 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_GOBJECT_ACCESSIBLE_H__
+#define __ATK_GOBJECT_ACCESSIBLE_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_GOBJECT_ACCESSIBLE_H__
-#define __ATK_GOBJECT_ACCESSIBLE_H__
-
 #include <atk/atkobject.h>
 
 G_BEGIN_DECLS
index 6e8dc74..915118c 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_HYPERLINK_H__
+#define __ATK_HYPERLINK_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_HYPERLINK_H__
-#define __ATK_HYPERLINK_H__
-
 #include <atk/atkaction.h>
 
 G_BEGIN_DECLS
index 65568b5..3b78fcc 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_HYPERLINK_IMPL_H__
+#define __ATK_HYPERLINK_IMPL_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_HYPERLINK_IMPL_H__
-#define __ATK_HYPERLINK_IMPL_H__
-
 #include <atk/atkobject.h>
 #include <atk/atkhyperlink.h>
 
index 6a97215..6a1ef9a 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_HYPERTEXT_H__
+#define __ATK_HYPERTEXT_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_HYPERTEXT_H__
-#define __ATK_HYPERTEXT_H__
-
 #include <atk/atkobject.h>
 #include <atk/atkhyperlink.h>
 
index 4905cd1..f4b430c 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_IMAGE_H__
+#define __ATK_IMAGE_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_IMAGE_H__
-#define __ATK_IMAGE_H__
-
 #include <atk/atkobject.h>
 #include <atk/atkutil.h>
 
index e898e35..0707b04 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_MISC_H__
+#define __ATK_MISC_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_MISC_H__
-#define __ATK_MISC_H__
-
 #include <glib-object.h>
 #include <atk/atkversion.h>
 
index 953e8fe..2cd69f4 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_NO_OP_OBJECT_FACTORY_H__
+#define __ATK_NO_OP_OBJECT_FACTORY_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_NO_OP_OBJECT_FACTORY_H__
-#define __ATK_NO_OP_OBJECT_FACTORY_H__
-
 #include <atk/atkobjectfactory.h>
 
 G_BEGIN_DECLS
index 552f1c5..8a8aafc 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_OBJECT_H__
+#define __ATK_OBJECT_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_OBJECT_H__
-#define __ATK_OBJECT_H__
-
 #include <glib-object.h>
 
 #include <atk/atkversion.h>
index 4c9cb10..75594f9 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_OBJECT_FACTORY_H__
+#define __ATK_OBJECT_FACTORY_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_OBJECT_FACTORY_H__
-#define __ATK_OBJECT_FACTORY_H__
-
 #include <glib-object.h>
 #include <atk/atkobject.h>
 
index 1e6813f..b1d83ff 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_PLUG_H__
+#define __ATK_PLUG_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_PLUG_H__
-#define __ATK_PLUG_H__
-
 #include <atk/atkversion.h>
 
 G_BEGIN_DECLS
index 3d33c90..0c6f484 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_PRIVATE_H__
+#define __ATK_PRIVATE_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_PRIVATE_H__
-#define __ATK_PRIVATE_H__
-
 G_BEGIN_DECLS
 
 void      _gettext_initialization (void);
index 0dd585c..6a5eeef 100644 (file)
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 02111-1307, USA.
  */
+#ifndef __ATK_RANGE_H__
+#define __ATK_RANGE_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_RANGE_H__
-#define __ATK_RANGE_H__
-
 #include <glib-object.h>
 #include <atk/atkversion.h>
 
index 2490940..dff508a 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_REGISTRY_H__
+#define __ATK_REGISTRY_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_REGISTRY_H__
-#define __ATK_REGISTRY_H__
-
 #include <glib-object.h>
 #include "atkobjectfactory.h"
 
index 0c958fa..a3f93a1 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_RELATION_H__
+#define __ATK_RELATION_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_RELATION_H__
-#define __ATK_RELATION_H__
-
 G_BEGIN_DECLS
 
 #include <glib-object.h>
index ed286b4..c84980a 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_RELATION_SET_H__
+#define __ATK_RELATION_SET_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_RELATION_SET_H__
-#define __ATK_RELATION_SET_H__
-
 G_BEGIN_DECLS
 
 #include <glib-object.h>
index d1c7410..da785a7 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_RELATION_TYPE_H__
+#define __ATK_RELATION_TYPE_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_RELATION_TYPE_H__
-#define __ATK_RELATION_TYPE_H__
-
 #include <glib.h>
 
 G_BEGIN_DECLS
index 0d51cf2..df508bf 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_SELECTION_H__
+#define __ATK_SELECTION_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_SELECTION_H__
-#define __ATK_SELECTION_H__
-
 #include <atk/atkobject.h>
 
 G_BEGIN_DECLS
index 600559b..54a98af 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_SOCKET_H__
+#define __ATK_SOCKET_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_SOCKET_H__
-#define __ATK_SOCKET_H__
-
 #include <atk/atkversion.h>
 
 G_BEGIN_DECLS
index 06b67c8..6a88567 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_STATE_H__
+#define __ATK_STATE_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_STATE_H__
-#define __ATK_STATE_H__
-
 #include <glib-object.h>
 #include <atk/atkversion.h>
 
index e67679e..bcb8946 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_STATE_SET_H__
+#define __ATK_STATE_SET_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_STATE_SET_H__
-#define __ATK_STATE_SET_H__
-
 #include <glib-object.h>
 #include <atk/atkobject.h>
 #include <atk/atkstate.h>
index 91d09c1..a43d1b9 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_STREAMABLE_CONTENT_H__
+#define __ATK_STREAMABLE_CONTENT_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_STREAMABLE_CONTENT_H__
-#define __ATK_STREAMABLE_CONTENT_H__
-
 #include <atk/atkobject.h>
 
 G_BEGIN_DECLS
index 388f1b8..19b48ab 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_TABLE_H__
+#define __ATK_TABLE_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_TABLE_H__
-#define __ATK_TABLE_H__
-
 #include <atk/atkobject.h>
 
 G_BEGIN_DECLS
index 0e70d69..53d0dd7 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_TABLE_CELL_H__
+#define __ATK_TABLE_CELL_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_TABLE_CELL_H__
-#define __ATK_TABLE_CELL_H__
-
 #include <atk/atkobject.h>
 
 G_BEGIN_DECLS
index d6b4085..d8852e4 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_TEXT_H__
+#define __ATK_TEXT_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_TEXT_H__
-#define __ATK_TEXT_H__
-
 #include <glib-object.h>
 #include <atk/atkobject.h>
 #include <atk/atkutil.h>
index 79180e2..d69df88 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_UTIL_H__
+#define __ATK_UTIL_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_UTIL_H__
-#define __ATK_UTIL_H__
-
 #include <atk/atkobject.h>
 
 G_BEGIN_DECLS
index bafbed4..d3e3ad5 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_VALUE_H__
+#define __ATK_VALUE_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_VALUE_H__
-#define __ATK_VALUE_H__
-
 #include <atk/atkobject.h>
 #include <atk/atkrange.h>
 
index a9a5b4b..36d7fbb 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#ifndef __ATK_WINDOW_H__
+#define __ATK_WINDOW_H__
+
 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
 #error "Only <atk/atk.h> can be included directly."
 #endif
 
-#ifndef __ATK_WINDOW_H__
-#define __ATK_WINDOW_H__
-
 #include <atk/atkobject.h>
 
 G_BEGIN_DECLS