[Cogl] [PATCH 44/53] doc: Put the opening '{' at the end of combined typedefs

Damien Lespiau damien.lespiau at gmail.com
Tue Jan 1 06:31:20 PST 2013


From: Damien Lespiau <damien.lespiau at intel.com>

gtk-doc is not smart enough to parse things like:

  typedef struct
  {
    ...
  } CoglFoo;

but needs the '{' at the end of the first line.
---
 cogl/cogl-error.h  |    3 +--
 cogl/cogl-object.h |    6 ++----
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/cogl/cogl-error.h b/cogl/cogl-error.h
index d7e2998..d04d872 100644
--- a/cogl/cogl-error.h
+++ b/cogl/cogl-error.h
@@ -110,8 +110,7 @@
  * @code: A specific error code within a specified domain
  * @message: A human readable error message
  */
-typedef struct _CoglError
-{
+typedef struct _CoglError {
   uint32_t domain;
   int code;
   char *message;
diff --git a/cogl/cogl-object.h b/cogl/cogl-object.h
index 7797656..da80bf4 100644
--- a/cogl/cogl-object.h
+++ b/cogl/cogl-object.h
@@ -83,8 +83,7 @@ cogl_object_unref (void *object);
  *
  * Since: 1.4
  */
-typedef struct
-{
+typedef struct {
   int unused;
 } CoglUserDataKey;
 
@@ -114,8 +113,7 @@ typedef void (*CoglUserDataDestroyCallback) (void *user_data);
  * Since: 1.8
  * Stability: unstable
  */
-typedef struct
-{
+typedef struct {
   const char *name;
   unsigned int instance_count;
 } CoglDebugObjectTypeInfo;
-- 
1.7.7.5



More information about the Cogl mailing list