]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the MS-Windows build broken 2013-10-25T04:35:56Z!dgutov@yandex.ru.
authorEli Zaretskii <eliz@gnu.org>
Fri, 25 Oct 2013 09:42:41 +0000 (12:42 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 25 Oct 2013 09:42:41 +0000 (12:42 +0300)
 src/w32font.h (w32font_close): Adjust the prototype to the change in
 function definition.
 src/w32font.c (w32font_close): Reintroduce deleted declaration of i.
 src/w32uniscribe.c (uniscribe_close): Adapt the call to
 w32font_close to its new prototype.

src/ChangeLog
src/w32font.c
src/w32font.h
src/w32uniscribe.c

index 6111e83e801f3c043e6c02e033a377faa0a5e3e7..3245eaa6d1e7fa440ce9d357685c4fdaa66fb387 100644 (file)
@@ -1,3 +1,13 @@
+2013-10-25  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32font.h (w32font_close): Adjust the prototype to the change in
+       function definition.
+
+       * w32font.c (w32font_close): Reintroduce deleted declaration of i.
+
+       * w32uniscribe.c (uniscribe_close): Adapt the call to
+       w32font_close to its new prototype.
+
 2013-10-25  Dmitry Antipov  <dmantipov@yandex.ru>
 
        Omit unused frame argument of font API's close function.
index dd21aca2fa101fa2e56ec25b87e19575ca451c87..effedfc04e12b774e1b18725406b2bbc9bb5059c 100644 (file)
@@ -391,6 +391,8 @@ w32font_close (struct font *font)
       /* Free all the cached metrics.  */
       if (w32_font->cached_metrics)
        {
+         int i;
+
          for (i = 0; i < w32_font->n_cache_blocks; i++)
              xfree (w32_font->cached_metrics[i]);
          xfree (w32_font->cached_metrics);
index 5622086086395056dfc58e4ff03540ac0236da96..1991492628c0475bf043a7e31b4f5028ea5761b0 100644 (file)
@@ -72,7 +72,7 @@ Lisp_Object w32font_match_internal (struct frame *f,
                                     int opentype_only);
 int w32font_open_internal (struct frame *f, Lisp_Object font_entity,
                            int pixel_size, Lisp_Object font_object);
-void w32font_close (struct frame *f, struct font *font);
+void w32font_close (struct font *font);
 int w32font_has_char (Lisp_Object entity, int c);
 int w32font_text_extents (struct font *font, unsigned *code, int nglyphs,
                           struct font_metrics *metrics);
index b31baa0e65cf0e8370bd66af7c3cbe151a8727ab..d8873dac383d8435fa661f805b9589c7f8b7e81b 100644 (file)
@@ -143,7 +143,7 @@ uniscribe_close (struct frame *f, struct font *font)
   if (uniscribe_font->cache)
     ScriptFreeCache (&(uniscribe_font->cache));
 
-  w32font_close (f, font);
+  w32font_close (font);
 }
 
 /* Return a list describing which scripts/languages FONT supports by