You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2012/11/19 00:00:47 UTC

svn commit: r1411015 - /subversion/trunk/tools/server-side/fsfs-stats.c

Author: stefan2
Date: Sun Nov 18 23:00:46 2012
New Revision: 1411015

URL: http://svn.apache.org/viewvc?rev=1411015&view=rev
Log:
Follow-up to r1410995: VS did not like the bit packed sub-struct.

* tools/server-side/fsfs-stats.c
  (): remove unnecessary header include
  (representation_t): replace bit-packed with small byte and
   word-sized data fields

Modified:
    subversion/trunk/tools/server-side/fsfs-stats.c

Modified: subversion/trunk/tools/server-side/fsfs-stats.c
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/server-side/fsfs-stats.c?rev=1411015&r1=1411014&r2=1411015&view=diff
==============================================================================
--- subversion/trunk/tools/server-side/fsfs-stats.c (original)
+++ subversion/trunk/tools/server-side/fsfs-stats.c Sun Nov 18 23:00:46 2012
@@ -41,7 +41,6 @@
 #include "private/svn_string_private.h"
 #include "private/svn_subr_private.h"
 #include "private/svn_dep_compat.h"
-#include <../test/testutil.h>
 
 #ifndef _
 #define _(x) x
@@ -85,17 +84,14 @@ typedef struct representation_t
   apr_uint32_t revision;
   apr_uint32_t ref_count;
 
-  struct
-    {
-      /* length of the PLAIN / DELTA line in the source file in bytes */
-      apr_size_t header_size : 12;
-
-      rep_kind_t kind : 3;
+  /* length of the PLAIN / DELTA line in the source file in bytes */
+  apr_uint16_t header_size;
 
-      /* the source content has a PLAIN header, so we may simply copy the
-      * source content into the target */
-      svn_boolean_t is_plain : 1;
-    };
+  char kind;
+  
+  /* the source content has a PLAIN header, so we may simply copy the
+   * source content into the target */
+  char is_plain;
   
 } representation_t;