[gnome-builder] debugger: use array style field padding



commit 7609a72909d1b6f648551a360246ff1b5ce7a883
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jan 15 07:51:35 2019 -0800

    debugger: use array style field padding

 src/libide/debugger/ide-debugger-breakpoint.h  | 9 +--------
 src/libide/debugger/ide-debugger-frame.h       | 5 +----
 src/libide/debugger/ide-debugger-instruction.h | 5 +----
 src/libide/debugger/ide-debugger-library.h     | 9 +--------
 src/libide/debugger/ide-debugger-thread.h      | 5 +----
 src/libide/debugger/ide-debugger-variable.h    | 9 +--------
 6 files changed, 6 insertions(+), 36 deletions(-)
---
diff --git a/src/libide/debugger/ide-debugger-breakpoint.h b/src/libide/debugger/ide-debugger-breakpoint.h
index fca3a1b78..086a8cb17 100644
--- a/src/libide/debugger/ide-debugger-breakpoint.h
+++ b/src/libide/debugger/ide-debugger-breakpoint.h
@@ -39,14 +39,7 @@ struct _IdeDebuggerBreakpointClass
   void (*reset) (IdeDebuggerBreakpoint *self);
 
   /*< private >*/
-  gpointer _reserved1;
-  gpointer _reserved2;
-  gpointer _reserved3;
-  gpointer _reserved4;
-  gpointer _reserved5;
-  gpointer _reserved6;
-  gpointer _reserved7;
-  gpointer _reserved8;
+  gpointer _reserved[8];
 };
 
 IDE_AVAILABLE_IN_3_32
diff --git a/src/libide/debugger/ide-debugger-frame.h b/src/libide/debugger/ide-debugger-frame.h
index 67cca9f86..67ae5e3fb 100644
--- a/src/libide/debugger/ide-debugger-frame.h
+++ b/src/libide/debugger/ide-debugger-frame.h
@@ -36,10 +36,7 @@ struct _IdeDebuggerFrameClass
   GObjectClass parent;
 
   /*< private >*/
-  gpointer _reserved1;
-  gpointer _reserved2;
-  gpointer _reserved3;
-  gpointer _reserved4;
+  gpointer _reserved[4];
 };
 
 IDE_AVAILABLE_IN_3_32
diff --git a/src/libide/debugger/ide-debugger-instruction.h b/src/libide/debugger/ide-debugger-instruction.h
index 50b2ecd17..5096eba3e 100644
--- a/src/libide/debugger/ide-debugger-instruction.h
+++ b/src/libide/debugger/ide-debugger-instruction.h
@@ -36,10 +36,7 @@ struct _IdeDebuggerInstructionClass
   GObjectClass parent_class;
 
   /*< private >*/
-  gpointer _reserved1;
-  gpointer _reserved2;
-  gpointer _reserved3;
-  gpointer _reserved4;
+  gpointer _reserved[4];
 };
 
 IDE_AVAILABLE_IN_3_32
diff --git a/src/libide/debugger/ide-debugger-library.h b/src/libide/debugger/ide-debugger-library.h
index 0f558faaf..477ad85ef 100644
--- a/src/libide/debugger/ide-debugger-library.h
+++ b/src/libide/debugger/ide-debugger-library.h
@@ -36,14 +36,7 @@ struct _IdeDebuggerLibraryClass
   GObjectClass parent_class;
 
   /*< private >*/
-  gpointer _reserved1;
-  gpointer _reserved2;
-  gpointer _reserved3;
-  gpointer _reserved4;
-  gpointer _reserved5;
-  gpointer _reserved6;
-  gpointer _reserved7;
-  gpointer _reserved8;
+  gpointer _reserved[8];
 };
 
 IDE_AVAILABLE_IN_3_32
diff --git a/src/libide/debugger/ide-debugger-thread.h b/src/libide/debugger/ide-debugger-thread.h
index dca800c65..703c78f4c 100644
--- a/src/libide/debugger/ide-debugger-thread.h
+++ b/src/libide/debugger/ide-debugger-thread.h
@@ -34,10 +34,7 @@ struct _IdeDebuggerThreadClass
   GObjectClass parent_class;
 
   /*< private >*/
-  gpointer _reserved1;
-  gpointer _reserved2;
-  gpointer _reserved3;
-  gpointer _reserved4;
+  gpointer _reserved[4];
 };
 
 IDE_AVAILABLE_IN_3_32
diff --git a/src/libide/debugger/ide-debugger-variable.h b/src/libide/debugger/ide-debugger-variable.h
index 8344dc4e3..d6fc93963 100644
--- a/src/libide/debugger/ide-debugger-variable.h
+++ b/src/libide/debugger/ide-debugger-variable.h
@@ -34,14 +34,7 @@ struct _IdeDebuggerVariableClass
   GObjectClass parent_class;
 
   /*< private >*/
-  gpointer _reserved1;
-  gpointer _reserved2;
-  gpointer _reserved3;
-  gpointer _reserved4;
-  gpointer _reserved5;
-  gpointer _reserved6;
-  gpointer _reserved7;
-  gpointer _reserved8;
+  gpointer _reserved[8];
 };
 
 IDE_AVAILABLE_IN_3_32


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]