emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r111933: * font.c (Ffont_get_glyphs):


From: Dmitry Antipov
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r111933: * font.c (Ffont_get_glyphs): Use convenient LGLYPH_NEW.
Date: Mon, 04 Mar 2013 11:41:01 +0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 111933
committer: Dmitry Antipov <address@hidden>
branch nick: trunk
timestamp: Mon 2013-03-04 11:41:01 +0400
message:
  * font.c (Ffont_get_glyphs): Use convenient LGLYPH_NEW.
  * ftfont.c (ftfont_shape_by_flt): Likewise.
  * w32uniscribe.c (uniscribe_shape): Likewise.
modified:
  src/ChangeLog
  src/font.c
  src/ftfont.c
  src/w32uniscribe.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2013-03-02 21:05:52 +0000
+++ b/src/ChangeLog     2013-03-04 07:41:01 +0000
@@ -1,3 +1,9 @@
+2013-03-04  Dmitry Antipov  <address@hidden>
+
+       * font.c (Ffont_get_glyphs): Use convenient LGLYPH_NEW.
+       * ftfont.c (ftfont_shape_by_flt): Likewise.
+       * w32uniscribe.c (uniscribe_shape): Likewise.
+
 2013-03-02  Paul Eggert  <address@hidden>
 
        The lock for FILE is now .#FILE or .#-FILE (Bug#13807).
@@ -208,6 +214,7 @@
        of dumping Emacs.  Explain why.
 
 2013-02-20  Dmitry Antipov  <address@hidden>
+
        * search.c (find_newline): Return byte position in bytepos.
        Adjust comment.
        (find_next_newline_no_quit, find_before_next_newline):

=== modified file 'src/font.c'
--- a/src/font.c        2013-02-13 07:14:38 +0000
+++ b/src/font.c        2013-03-04 07:41:01 +0000
@@ -4716,7 +4716,7 @@
       code = font->driver->encode_char (font, c);
       if (code == FONT_INVALID_CODE)
        continue;
-      g = Fmake_vector (make_number (LGLYPH_SIZE), Qnil);
+      g = LGLYPH_NEW ();
       LGLYPH_SET_FROM (g, i);
       LGLYPH_SET_TO (g, i);
       LGLYPH_SET_CHAR (g, c);

=== modified file 'src/ftfont.c'
--- a/src/ftfont.c      2013-02-08 05:28:52 +0000
+++ b/src/ftfont.c      2013-03-04 07:41:01 +0000
@@ -2541,7 +2541,7 @@
 
       if (NILP (lglyph))
        {
-         lglyph = Fmake_vector (make_number (LGLYPH_SIZE), Qnil);
+         lglyph = LGLYPH_NEW ();
          LGSTRING_SET_GLYPH (lgstring, i, lglyph);
        }
       LGLYPH_SET_FROM (lglyph, g->from);

=== modified file 'src/w32uniscribe.c'
--- a/src/w32uniscribe.c        2013-02-08 05:28:52 +0000
+++ b/src/w32uniscribe.c        2013-03-04 07:41:01 +0000
@@ -333,7 +333,7 @@
 
                  if (NILP (lglyph))
                    {
-                     lglyph = Fmake_vector (make_number (LGLYPH_SIZE), Qnil);
+                     lglyph = LGLYPH_NEW ();
                      LGSTRING_SET_GLYPH (lgstring, lglyph_index, lglyph);
                    }
                  /* Copy to a 32-bit data type to shut up the


reply via email to

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