[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] renaming the function as per convention

From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: 2006-08-28 10:27:32 CEST

Hi,
Find the attached patch.

With regards
Kamesh Jayachandran

[[[
Patch by: Kamesh Jayachandran <kamesh@collab.net>

static function is not supposed to have 'svn_' prefix.
We use '__' in function names that is used by other 'C' files
within the same library.

* subversion/libsvn_diff/diff4.c
  (svn_diff__adjust): Renamed to _diff_adjust.
  (svn_diff_diff4): Calls _diff_adjust.
]]]

Index: subversion/libsvn_diff/diff4.c
===================================================================
--- subversion/libsvn_diff/diff4.c (revision 21287)
+++ subversion/libsvn_diff/diff4.c (working copy)
@@ -103,7 +103,7 @@
 
 
 static APR_INLINE void
-svn_diff__adjust(svn_diff_t *diff, svn_diff_t *adjust)
+_diff_adjust(svn_diff_t *diff, svn_diff_t *adjust)
 {
   svn_diff_t *hunk;
   apr_off_t range_start;
@@ -240,7 +240,7 @@
    */
   lcs_adjust = svn_diff__lcs(position_list[3], position_list[2], subpool3);
   diff_adjust = svn_diff__diff(lcs_adjust, 1, 1, FALSE, subpool3);
- svn_diff__adjust(diff_ol, diff_adjust);
+ _diff_adjust(diff_ol, diff_adjust);
 
   svn_pool_clear(subpool3);
 
@@ -249,7 +249,7 @@
    */
   lcs_adjust = svn_diff__lcs(position_list[1], position_list[3], subpool3);
   diff_adjust = svn_diff__diff(lcs_adjust, 1, 1, FALSE, subpool3);
- svn_diff__adjust(diff_ol, diff_adjust);
+ _diff_adjust(diff_ol, diff_adjust);
 
   /* Get rid of the position lists for original and ancestor, and delete
    * our scratchpool.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 28 10:27:45 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.