emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r100281: Rename bidi_get_next_char_vi


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r100281: Rename bidi_get_next_char_visually to bidi_move_to_visually_next.
Date: Fri, 14 May 2010 17:30:45 +0300
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 100281
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Fri 2010-05-14 17:30:45 +0300
message:
  Rename bidi_get_next_char_visually to bidi_move_to_visually_next.
  
   bidi.c (bidi_move_to_visually_next): Renamed from
   bidi_get_next_char_visually.  All callers changed.
modified:
  src/ChangeLog
  src/bidi.c
  src/dispextern.h
  src/xdisp.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-05-14 09:02:50 +0000
+++ b/src/ChangeLog     2010-05-14 14:30:45 +0000
@@ -1,3 +1,8 @@
+2010-05-14  Eli Zaretskii  <address@hidden>
+
+       * bidi.c (bidi_move_to_visually_next): Renamed from
+       bidi_get_next_char_visually.  All callers changed.
+
 2010-05-14  Kenichi Handa  <address@hidden>
 
        * dispextern.h (struct composition_it): New member reversed_p.

=== modified file 'src/bidi.c'
--- a/src/bidi.c        2010-04-21 17:59:39 +0000
+++ b/src/bidi.c        2010-05-14 14:30:45 +0000
@@ -26,13 +26,13 @@
    designed to be called once for every character in the buffer or
    string.
 
-   The main entry point is bidi_get_next_char_visually.  Each time it
+   The main entry point is bidi_move_to_visually_next.  Each time it
    is called, it finds the next character in the visual order, and
    returns its information in a special structure.  The caller is then
    expected to process this character for display or any other
-   purposes, and call bidi_get_next_char_visually for the next
-   character.  See the comments in bidi_get_next_char_visually for
-   more details about its algorithm that finds the next visual-order
+   purposes, and call bidi_move_to_visually_next for the next
+   character.  See the comments in bidi_move_to_visually_next for more
+   details about its algorithm that finds the next visual-order
    character by resolving their levels on the fly.
 
    The two other entry points are bidi_paragraph_init and
@@ -1876,7 +1876,7 @@
 }
 
 void
-bidi_get_next_char_visually (struct bidi_it *bidi_it)
+bidi_move_to_visually_next (struct bidi_it *bidi_it)
 {
   int old_level, new_level, next_level;
   struct bidi_it sentinel;

=== modified file 'src/dispextern.h'
--- a/src/dispextern.h  2010-05-14 04:14:23 +0000
+++ b/src/dispextern.h  2010-05-14 14:30:45 +0000
@@ -2868,7 +2868,7 @@
 /* Defined in bidi.c */
 
 extern void bidi_init_it P_ ((EMACS_INT, EMACS_INT, struct bidi_it *));
-extern void bidi_get_next_char_visually P_ ((struct bidi_it *));
+extern void bidi_move_to_visually_next P_ ((struct bidi_it *));
 extern void bidi_paragraph_init P_ ((bidi_dir_t, struct bidi_it *));
 extern int  bidi_mirror_char P_ ((int));
 

=== modified file 'src/xdisp.c'
--- a/src/xdisp.c       2010-05-14 13:44:12 +0000
+++ b/src/xdisp.c       2010-05-14 14:30:45 +0000
@@ -184,7 +184,7 @@
    reordering engine which is called by set_iterator_to_next and
    returns the next character to display in the visual order.  See
    commentary on bidi.c for more details.  As far as redisplay is
-   concerned, the effect of calling bidi_get_next_char_visually, the
+   concerned, the effect of calling bidi_move_to_visually_next, the
    main interface of the reordering engine, is that the iterator gets
    magically placed on the buffer or string position that is to be
    displayed next.  In other words, a linear iteration through the
@@ -3918,7 +3918,7 @@
                }
              do
                {
-                 bidi_get_next_char_visually (&it->bidi_it);
+                 bidi_move_to_visually_next (&it->bidi_it);
                }
              while (it->stop_charpos <= it->bidi_it.charpos
                     && it->bidi_it.charpos < newpos);
@@ -5276,7 +5276,7 @@
   while (it->bidi_it.charpos >= BEGV
         && it->prev_stop <= it->bidi_it.charpos
         && it->bidi_it.charpos < CHARPOS (it->position))
-    bidi_get_next_char_visually (&it->bidi_it);
+    bidi_move_to_visually_next (&it->bidi_it);
   /* Record the stop_pos we just crossed, for when we cross it
      back, maybe.  */
   if (it->bidi_it.charpos > CHARPOS (it->position))
@@ -6311,7 +6311,7 @@
                 character of the next grapheme cluster, or to the
                 character visually after the current composition.  */
              for (i = 0; i < it->cmp_it.nchars; i++)
-               bidi_get_next_char_visually (&it->bidi_it);
+               bidi_move_to_visually_next (&it->bidi_it);
              IT_BYTEPOS (*it) = it->bidi_it.bytepos;
              IT_CHARPOS (*it) = it->bidi_it.charpos;
 
@@ -6339,7 +6339,7 @@
              /* Update IT's char/byte positions to point to the last
                 character of the previous grapheme cluster, or the
                 character visually after the current composition.  */
-             bidi_get_next_char_visually (&it->bidi_it);
+             bidi_move_to_visually_next (&it->bidi_it);
              IT_BYTEPOS (*it) = it->bidi_it.bytepos;
              IT_CHARPOS (*it) = it->bidi_it.charpos;
 
@@ -6378,7 +6378,7 @@
                 direction (a.k.a. its base embedding level).  */
              if (it->bidi_it.new_paragraph)
                bidi_paragraph_init (it->paragraph_embedding, &it->bidi_it);
-             bidi_get_next_char_visually (&it->bidi_it);
+             bidi_move_to_visually_next (&it->bidi_it);
              IT_BYTEPOS (*it) = it->bidi_it.bytepos;
              IT_CHARPOS (*it) = it->bidi_it.charpos;
              if (prev_scan_dir != it->bidi_it.scan_dir)
@@ -6858,7 +6858,7 @@
          /* If we are at the beginning of a line, we can produce the
             next element right away.  */
          bidi_paragraph_init (it->paragraph_embedding, &it->bidi_it);
-         bidi_get_next_char_visually (&it->bidi_it);
+         bidi_move_to_visually_next (&it->bidi_it);
        }
       else
        {
@@ -6876,7 +6876,7 @@
            {
              /* Now return to buffer position where we were asked to
                 get the next display element, and produce that.  */
-             bidi_get_next_char_visually (&it->bidi_it);
+             bidi_move_to_visually_next (&it->bidi_it);
            }
          while (it->bidi_it.bytepos != orig_bytepos
                 && it->bidi_it.bytepos < ZV_BYTE);
@@ -7100,7 +7100,7 @@
              /* Resync the bidi iterator with IT's new position.
                 FIXME: this doesn't support bidirectional text.  */
              while (it->bidi_it.charpos < IT_CHARPOS (*it))
-               bidi_get_next_char_visually (&it->bidi_it);
+               bidi_move_to_visually_next (&it->bidi_it);
            }
          return 0;
        }
@@ -7116,7 +7116,7 @@
             correct (struct glyph)->charpos.  */
          int i;
          for (i = 0; i < it->cmp_it.nchars - 1; i++)
-           bidi_get_next_char_visually (&it->bidi_it);
+           bidi_move_to_visually_next (&it->bidi_it);
          IT_CHARPOS (*it) = it->bidi_it.charpos;
          IT_BYTEPOS (*it) = it->bidi_it.bytepos;
          it->position = it->current.pos;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]