summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-10-25 12:42:41 +0300
committerEli Zaretskii <eliz@gnu.org>2013-10-25 12:42:41 +0300
commit6702c559da3fa6b5a94c42039c9f93d7b2b1fe83 (patch)
tree5207ba38b906ce1b101cd04f5bb997a66ddcfb31
parent86bd985ec0060b83fe272e3fcc1d35f19a966ad1 (diff)
downloademacs-6702c559da3fa6b5a94c42039c9f93d7b2b1fe83.tar.gz
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.
-rw-r--r--src/ChangeLog10
-rw-r--r--src/w32font.c2
-rw-r--r--src/w32font.h2
-rw-r--r--src/w32uniscribe.c2
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 <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.
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