subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bl...@apache.org
Subject svn commit: r1067964 - in /subversion/trunk/subversion: include/svn_diff.h libsvn_diff/diff_file.c libsvn_diff/diff_memory.c
Date Mon, 07 Feb 2011 15:22:49 GMT
Author: blair
Date: Mon Feb  7 15:22:48 2011
New Revision: 1067964

URL: http://svn.apache.org/viewvc?rev=1067964&view=rev
Log:
Constify one of svn_diff_fns2_t::datasources_open's arguments.

* subversion/include/svn_diff.h
  (svn_diff_fns2_t::datasources_open):
    Make the datasources argument a const svn_diff_datasource_e *.
  
* subversion/libsvn_diff/diff_file.c,
* subversion/libsvn_diff/diff_memory.c
  (datasources_open):
    Make the datasources argument a const svn_diff_datasource_e *.

Modified:
    subversion/trunk/subversion/include/svn_diff.h
    subversion/trunk/subversion/libsvn_diff/diff_file.c
    subversion/trunk/subversion/libsvn_diff/diff_memory.c

Modified: subversion/trunk/subversion/include/svn_diff.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_diff.h?rev=1067964&r1=1067963&r2=1067964&view=diff
==============================================================================
--- subversion/trunk/subversion/include/svn_diff.h (original)
+++ subversion/trunk/subversion/include/svn_diff.h Mon Feb  7 15:22:48 2011
@@ -110,7 +110,7 @@ typedef struct svn_diff_fns2_t
 {
   /** Open the datasources of type @a datasources. */
   svn_error_t *(*datasources_open)(void *diff_baton, apr_off_t *prefix_lines,
-                                   svn_diff_datasource_e *datasources,
+                                   const svn_diff_datasource_e *datasources,
                                    apr_size_t datasources_len);
 
   /** Close the datasource of type @a datasource. */

Modified: subversion/trunk/subversion/libsvn_diff/diff_file.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_diff/diff_file.c?rev=1067964&r1=1067963&r2=1067964&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_diff/diff_file.c (original)
+++ subversion/trunk/subversion/libsvn_diff/diff_file.c Mon Feb  7 15:22:48 2011
@@ -686,7 +686,7 @@ find_identical_suffix(struct file_info f
  * Implements svn_diff_fns2_t::datasources_open. */
 static svn_error_t *
 datasources_open(void *baton, apr_off_t *prefix_lines,
-                 svn_diff_datasource_e *datasources,
+                 const svn_diff_datasource_e *datasources,
                  apr_size_t datasources_len)
 {
   svn_diff__file_baton_t *file_baton = baton;

Modified: subversion/trunk/subversion/libsvn_diff/diff_memory.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_diff/diff_memory.c?rev=1067964&r1=1067963&r2=1067964&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_diff/diff_memory.c (original)
+++ subversion/trunk/subversion/libsvn_diff/diff_memory.c Mon Feb  7 15:22:48 2011
@@ -91,7 +91,7 @@ datasource_to_index(svn_diff_datasource_
 /* Implements svn_diff_fns2_t::datasources_open */
 static svn_error_t *
 datasources_open(void *baton, apr_off_t *prefix_lines,
-                 svn_diff_datasource_e *datasources,
+                 const svn_diff_datasource_e *datasources,
                  apr_size_t datasources_len)
 {
   /* Do nothing: everything is already there and initialized to 0 */



Mime
View raw message