summaryrefslogtreecommitdiff
path: root/atk-adaptor/accessible-cache.h
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2022-12-06 20:44:48 -0600
committerFederico Mena Quintero <federico@gnome.org>2022-12-06 20:50:13 -0600
commitb10fcf21b1ef49dd3d6297ac657434ece3b23578 (patch)
treed560f8449f3ae75fea343887dcb6d5f4df7b434c /atk-adaptor/accessible-cache.h
parentbf4d71a38b970699f63ce7b701e9bf4c9d31f717 (diff)
downloadat-spi2-core-b10fcf21b1ef49dd3d6297ac657434ece3b23578.tar.gz
Reformat all the *.[ch] files with clang-format
I ran this on each directory with C files: clang-format -i *.[ch] "-i" is the in-place option. I also adjusted the order of #includes for some files which failed to build after that: Clang-format reorders blocks of #include directives alphabetically, but they can be grouped and separated by blank lines. If there is a blank line between blocks, like #include "zork.h" #include "bar.h" #include "foo.h" then it will not put zork.h after the other two. The last two header files will be sorted alphabetically. We can adjust the formatting of chunks of code by hand with comments like these: /* clang-format off */ this code { is, formatted, by, hand; } /* clang-format on */ See https://clang.llvm.org/docs/ClangFormat.html for the general manual and https://clang.llvm.org/docs/ClangFormatStyleOptions.html for the style options and the comments described above.
Diffstat (limited to 'atk-adaptor/accessible-cache.h')
-rw-r--r--atk-adaptor/accessible-cache.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/atk-adaptor/accessible-cache.h b/atk-adaptor/accessible-cache.h
index dfd9d68f..af29dbd8 100644
--- a/atk-adaptor/accessible-cache.h
+++ b/atk-adaptor/accessible-cache.h
@@ -23,25 +23,25 @@
#ifndef ACCESSIBLE_CACHE_H
#define ACCESSIBLE_CACHE_H
-#include <glib.h>
#include <glib-object.h>
+#include <glib.h>
typedef struct _SpiCache SpiCache;
typedef struct _SpiCacheClass SpiCacheClass;
G_BEGIN_DECLS
-#define SPI_CACHE_TYPE (spi_cache_get_type ())
-#define SPI_CACHE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SPI_CACHE_TYPE, SpiCache))
-#define SPI_CACHE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), SPI_CACHE_TYPE, SpiCacheClass))
-#define SPI_IS_CACHE(o) (G_TYPE_CHECK__INSTANCE_TYPE ((o), SPI_CACHE_TYPE))
+#define SPI_CACHE_TYPE (spi_cache_get_type ())
+#define SPI_CACHE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SPI_CACHE_TYPE, SpiCache))
+#define SPI_CACHE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), SPI_CACHE_TYPE, SpiCacheClass))
+#define SPI_IS_CACHE(o) (G_TYPE_CHECK__INSTANCE_TYPE ((o), SPI_CACHE_TYPE))
#define SPI_IS_CACHE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), SPI_CACHE_TYPE))
struct _SpiCache
{
GObject parent;
- GHashTable * objects;
+ GHashTable *objects;
GQueue *add_traversal;
gint add_pending_idle;
@@ -58,10 +58,10 @@ GType spi_cache_get_type (void);
extern SpiCache *spi_global_cache;
void
-spi_cache_foreach (SpiCache * cache, GHFunc func, gpointer data);
+spi_cache_foreach (SpiCache *cache, GHFunc func, gpointer data);
gboolean
-spi_cache_in (SpiCache * cache, GObject * object);
+spi_cache_in (SpiCache *cache, GObject *object);
G_END_DECLS
#endif /* ACCESSIBLE_CACHE_H */