From 6702c559da3fa6b5a94c42039c9f93d7b2b1fe83 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 25 Oct 2013 12:42:41 +0300 Subject: [PATCH] Fix the MS-Windows build broken 2013-10-25T04:35:56Z!dgutov@yandex.ru. 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 | 10 ++++++++++ src/w32font.c | 2 ++ src/w32font.h | 2 +- src/w32uniscribe.c | 2 +- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 6111e83e801..3245eaa6d1e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,13 @@ +2013-10-25 Eli Zaretskii + + * 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 Omit unused frame argument of font API's close function. diff --git a/src/w32font.c b/src/w32font.c index dd21aca2fa1..effedfc04e1 100644 --- a/src/w32font.c +++ b/src/w32font.c @@ -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); diff --git a/src/w32font.h b/src/w32font.h index 56220860863..1991492628c 100644 --- a/src/w32font.h +++ b/src/w32font.h @@ -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); diff --git a/src/w32uniscribe.c b/src/w32uniscribe.c index b31baa0e65c..d8873dac383 100644 --- a/src/w32uniscribe.c +++ b/src/w32uniscribe.c @@ -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 -- 2.39.2