subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1662573 - in /subversion/branches/fsx-1.10/subversion/libsvn_fs_x: temp_serializer.c temp_serializer.h
Date Thu, 26 Feb 2015 21:33:44 GMT
Author: stefan2
Date: Thu Feb 26 21:33:44 2015
New Revision: 1662573

URL: http://svn.apache.org/r1662573
Log:
On the fsx-1.10 branch:
Make a few function static that aren't used anywhere else.

* subversion/libsvn_fs_x/temp_serializer.h
  (svn_fs_x__noderev_serialize,
   svn_fs_x__noderev_deserialize): Remove declarations here.

* subversion/libsvn_fs_x/temp_serializer.c
  (svn_fs_x__noderev_serialize,
   svn_fs_x__noderev_deserialize): Rename ...
  (noderev_serialize,
   noderev_deserialize): ... these and mark as static.
  (svn_fs_x__serialize_node_revision,
   svn_fs_x__deserialize_node_revision): Update callers.

Modified:
    subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.c
    subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.h

Modified: subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.c?rev=1662573&r1=1662572&r2=1662573&view=diff
==============================================================================
--- subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.c (original)
+++ subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.c Thu Feb 26 21:33:44
2015
@@ -326,9 +326,12 @@ deserialize_dir(void *buffer, dir_data_t
   return result;
 }
 
-void
-svn_fs_x__noderev_serialize(svn_temp_serializer__context_t *context,
-                            svn_fs_x__noderev_t * const *noderev_p)
+/**
+ * Serialize a NODEREV_P within the serialization CONTEXT.
+ */
+static void
+noderev_serialize(svn_temp_serializer__context_t *context,
+                  svn_fs_x__noderev_t * const *noderev_p)
 {
   const svn_fs_x__noderev_t *noderev = *noderev_p;
   if (noderev == NULL)
@@ -351,11 +354,13 @@ svn_fs_x__noderev_serialize(svn_temp_ser
   svn_temp_serializer__pop(context);
 }
 
-
-void
-svn_fs_x__noderev_deserialize(void *buffer,
-                              svn_fs_x__noderev_t **noderev_p,
-                              apr_pool_t *pool)
+/**
+ * Deserialize a NODEREV_P within the BUFFER and associate it with.
+ */
+static void
+noderev_deserialize(void *buffer,
+                    svn_fs_x__noderev_t **noderev_p,
+                    apr_pool_t *pool)
 {
   svn_fs_x__noderev_t *noderev;
 
@@ -661,7 +666,7 @@ svn_fs_x__serialize_node_revision(void *
                                 pool);
 
   /* serialize the noderev */
-  svn_fs_x__noderev_serialize(context, &noderev);
+  noderev_serialize(context, &noderev);
 
   /* return serialized data */
   serialized = svn_temp_serializer__get(context);
@@ -681,7 +686,7 @@ svn_fs_x__deserialize_node_revision(void
   svn_fs_x__noderev_t *noderev = (svn_fs_x__noderev_t *)buffer;
 
   /* fixup of all pointers etc. */
-  svn_fs_x__noderev_deserialize(noderev, &noderev, pool);
+  noderev_deserialize(noderev, &noderev, pool);
 
   /* done */
   *item = noderev;

Modified: subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.h
URL: http://svn.apache.org/viewvc/subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.h?rev=1662573&r1=1662572&r2=1662573&view=diff
==============================================================================
--- subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.h (original)
+++ subversion/branches/fsx-1.10/subversion/libsvn_fs_x/temp_serializer.h Thu Feb 26 21:33:44
2015
@@ -37,22 +37,6 @@ svn_fs_x__combine_number_and_string(apr_
                                     apr_pool_t *result_pool);
 
 /**
- * Serialize a @a noderev_p within the serialization @a context.
- */
-void
-svn_fs_x__noderev_serialize(struct svn_temp_serializer__context_t *context,
-                            svn_fs_x__noderev_t * const *noderev_p);
-
-/**
- * Deserialize a @a noderev_p within the @a buffer and associate it with
- * @a pool.
- */
-void
-svn_fs_x__noderev_deserialize(void *buffer,
-                              svn_fs_x__noderev_t **noderev_p,
-                              apr_pool_t *pool);
-
-/**
  * Serialize APR array @a *a within the serialization @a context.
  * The elements within the array must not contain pointers.
  */



Mime
View raw message