You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2010/11/04 22:21:39 UTC

svn commit: r1031255 - /subversion/trunk/subversion/libsvn_subr/subst.c

Author: stsp
Date: Thu Nov  4 21:21:36 2010
New Revision: 1031255

URL: http://svn.apache.org/viewvc?rev=1031255&view=rev
Log:
* subversion/libsvn_subr/subst.c
  (translation_baton, translate_chunk): Typo, and minor formatting and
   wording tweaks.

Modified:
    subversion/trunk/subversion/libsvn_subr/subst.c

Modified: subversion/trunk/subversion/libsvn_subr/subst.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/subst.c?rev=1031255&r1=1031254&r2=1031255&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/subst.c (original)
+++ subversion/trunk/subversion/libsvn_subr/subst.c Thu Nov  4 21:21:36 2010
@@ -799,7 +799,7 @@ struct translation_baton
      or zero if none encountered yet */
   apr_size_t src_format_len;
 
-  /* if this is svn_tristate_false, translate_newline() will be called
+  /* If this is svn_tristate_false, translate_newline() will be called
      for every newline in the file */
   svn_tristate_t nl_translation_skippable;
 };
@@ -1005,7 +1005,7 @@ translate_chunk(svn_stream_t *dst,
                 b->nl_translation_skippable = svn_tristate_false;
             }
 
-          /* We're in the boring state; look for interest characters.
+          /* We're in the boring state; look for interesting characters.
              Offset len such that it will become 0 in the first iteration. 
            */
           len = 0 - b->eol_str_len;
@@ -1038,9 +1038,10 @@ translate_chunk(svn_stream_t *dst,
                while ((p + len) < end && !interesting[(unsigned char)p[len]])
                  ++len;
             }
-          while (b->nl_translation_skippable == svn_tristate_true &&   /* can skip EOLs at all */
-                 p + len + 2 < end &&             /* not too close to EOF */
-                 eol_unchanged (b, p + len));     /* EOL format already ok */
+          while (b->nl_translation_skippable ==
+                   svn_tristate_true &&       /* can potentially skip EOLs */
+                 p + len + 2 < end &&         /* not too close to EOF */
+                 eol_unchanged (b, p + len)); /* EOL format already ok */
 
           while ((p + len) < end && !interesting[(unsigned char)p[len]])
             len++;