[glib] GMatchInfo: improve struct packing



commit f8b154f53a30930b6e3213c8b85bbb3dea4f68d7
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Apr 12 09:55:59 2011 -0400

    GMatchInfo: improve struct packing

 glib/gregex.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gregex.c b/glib/gregex.c
index a1d2315..6bb6558 100644
--- a/glib/gregex.c
+++ b/glib/gregex.c
@@ -139,8 +139,8 @@ struct _GMatchInfo
   GRegexMatchFlags match_opts;  /* options used at match time on the regex */
   gint matches;                 /* number of matching sub patterns */
   gint pos;                     /* position in the string where last match left off */
+  gint  n_offsets;              /* number of offsets */
   gint *offsets;                /* array of offsets paired 0,1 ; 2,3 ; 3,4 etc */
-  gint n_offsets;               /* number of offsets */
   gint *workspace;              /* workspace for pcre_dfa_exec() */
   gint n_workspace;             /* number of workspace elements */
   const gchar *string;          /* string passed to the match function */



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