subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcor...@apache.org
Subject svn commit: r1140847 - /subversion/trunk/subversion/libsvn_diff/diff_file.c
Date Tue, 28 Jun 2011 21:08:23 GMT
Author: jcorvel
Date: Tue Jun 28 21:08:23 2011
New Revision: 1140847

URL: http://svn.apache.org/viewvc?rev=1140847&view=rev
Log:
* subversion/libsvn_diff/diff_file.c
  (find_identical_suffix): Declare variables in one-per-line style. Move the
   initialization of had_nl to right before it's needed, for clarity.

Suggested by: hwright
(the one-variable-per-line style)

Modified:
    subversion/trunk/subversion/libsvn_diff/diff_file.c

Modified: subversion/trunk/subversion/libsvn_diff/diff_file.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_diff/diff_file.c?rev=1140847&r1=1140846&r2=1140847&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_diff/diff_file.c (original)
+++ subversion/trunk/subversion/libsvn_diff/diff_file.c Tue Jun 28 21:08:23 2011
@@ -528,9 +528,11 @@ find_identical_suffix(apr_off_t *suffix_
   apr_off_t suffix_min_offset0;
   apr_off_t min_file_size;
   int suffix_lines_to_keep = SUFFIX_LINES_TO_KEEP;
-  svn_boolean_t is_match, reached_prefix;
+  svn_boolean_t is_match;
+  svn_boolean_t reached_prefix;
   apr_off_t lines = 0;
-  svn_boolean_t had_cr, had_nl = FALSE;
+  svn_boolean_t had_cr;
+  svn_boolean_t had_nl;
   apr_size_t i;
 
   /* Initialize file_for_suffix[].
@@ -586,6 +588,7 @@ find_identical_suffix(apr_off_t *suffix_
     /* Count an extra line for the last line not ending in an eol. */
     lines++;
 
+  had_nl = FALSE;
   while (is_match)
     {
       /* Initialize the minimum pointer positions. */



Mime
View raw message