You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2010/12/31 11:11:42 UTC

svn commit: r1054082 - /subversion/branches/diff-optimizations-bytes/subversion/libsvn_diff/diff_file.c

Author: danielsh
Date: Fri Dec 31 10:11:42 2010
New Revision: 1054082

URL: http://svn.apache.org/viewvc?rev=1054082&view=rev
Log:
On the 'diff-optimizations-bytes' branch:

* subversion/libsvn_diff/diff_file.c
  (INCREMENT_POINTERS, DECREMENT_POINTERS):
    Use unique variable names to avoid a compiler warning.

Modified:
    subversion/branches/diff-optimizations-bytes/subversion/libsvn_diff/diff_file.c

Modified: subversion/branches/diff-optimizations-bytes/subversion/libsvn_diff/diff_file.c
URL: http://svn.apache.org/viewvc/subversion/branches/diff-optimizations-bytes/subversion/libsvn_diff/diff_file.c?rev=1054082&r1=1054081&r2=1054082&view=diff
==============================================================================
--- subversion/branches/diff-optimizations-bytes/subversion/libsvn_diff/diff_file.c (original)
+++ subversion/branches/diff-optimizations-bytes/subversion/libsvn_diff/diff_file.c Fri Dec 31 10:11:42 2010
@@ -254,14 +254,14 @@ datasource_open(void *baton, svn_diff_da
  * curp equal to endp to indicate EOF. */
 #define INCREMENT_POINTERS(all_files, files_len, pool)                       \
   do {                                                                       \
-    apr_size_t i;                                                            \
+    apr_size_t svn_macro__i;                                                 \
                                                                              \
-    for (i = 0; i < files_len; i++)                                          \
+    for (svn_macro__i = 0; svn_macro__i < files_len; svn_macro__i++)         \
     {                                                                        \
-      if (all_files[i]->curp < all_files[i]->endp - 1)                       \
-        all_files[i]->curp++;                                                \
+      if (all_files[svn_macro__i]->curp < all_files[svn_macro__i]->endp - 1) \
+        all_files[svn_macro__i]->curp++;                                     \
       else                                                                   \
-        SVN_ERR(increment_chunk(all_files[i], pool));                        \
+        SVN_ERR(increment_chunk(all_files[svn_macro__i], pool));             \
     }                                                                        \
   } while (0)
 
@@ -272,14 +272,14 @@ datasource_open(void *baton, svn_diff_da
  * reached, set chunk to -1 to indicate BOF. */
 #define DECREMENT_POINTERS(all_files, files_len, pool)                       \
   do {                                                                       \
-    apr_size_t i;                                                            \
+    apr_size_t svn_macro__i;                                                 \
                                                                              \
-    for (i = 0; i < files_len; i++)                                          \
+    for (svn_macro__i = 0; svn_macro__i < files_len; svn_macro__i++)         \
     {                                                                        \
-      if (all_files[i]->curp > all_files[i]->buffer)                         \
-        all_files[i]->curp--;                                                \
+      if (all_files[svn_macro__i]->curp > all_files[svn_macro__i]->buffer)   \
+        all_files[svn_macro__i]->curp--;                                     \
       else                                                                   \
-        SVN_ERR(decrement_chunk(all_files[i], pool));                        \
+        SVN_ERR(decrement_chunk(all_files[svn_macro__i], pool));             \
     }                                                                        \
   } while (0)