aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2013-10-25 12:42:41 +0300
committerEli Zaretskii2013-10-25 12:42:41 +0300
commit6702c559da3fa6b5a94c42039c9f93d7b2b1fe83 (patch)
tree5207ba38b906ce1b101cd04f5bb997a66ddcfb31 /src
parent86bd985ec0060b83fe272e3fcc1d35f19a966ad1 (diff)
downloademacs-6702c559da3fa6b5a94c42039c9f93d7b2b1fe83.tar.gz
emacs-6702c559da3fa6b5a94c42039c9f93d7b2b1fe83.zip
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.
Diffstat (limited to 'src')
-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 @@
12013-10-25 Eli Zaretskii <eliz@gnu.org>
2
3 * w32font.h (w32font_close): Adjust the prototype to the change in
4 function definition.
5
6 * w32font.c (w32font_close): Reintroduce deleted declaration of i.
7
8 * w32uniscribe.c (uniscribe_close): Adapt the call to
9 w32font_close to its new prototype.
10
12013-10-25 Dmitry Antipov <dmantipov@yandex.ru> 112013-10-25 Dmitry Antipov <dmantipov@yandex.ru>
2 12
3 Omit unused frame argument of font API's close function. 13 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)
391 /* Free all the cached metrics. */ 391 /* Free all the cached metrics. */
392 if (w32_font->cached_metrics) 392 if (w32_font->cached_metrics)
393 { 393 {
394 int i;
395
394 for (i = 0; i < w32_font->n_cache_blocks; i++) 396 for (i = 0; i < w32_font->n_cache_blocks; i++)
395 xfree (w32_font->cached_metrics[i]); 397 xfree (w32_font->cached_metrics[i]);
396 xfree (w32_font->cached_metrics); 398 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,
72 int opentype_only); 72 int opentype_only);
73int w32font_open_internal (struct frame *f, Lisp_Object font_entity, 73int w32font_open_internal (struct frame *f, Lisp_Object font_entity,
74 int pixel_size, Lisp_Object font_object); 74 int pixel_size, Lisp_Object font_object);
75void w32font_close (struct frame *f, struct font *font); 75void w32font_close (struct font *font);
76int w32font_has_char (Lisp_Object entity, int c); 76int w32font_has_char (Lisp_Object entity, int c);
77int w32font_text_extents (struct font *font, unsigned *code, int nglyphs, 77int w32font_text_extents (struct font *font, unsigned *code, int nglyphs,
78 struct font_metrics *metrics); 78 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)
143 if (uniscribe_font->cache) 143 if (uniscribe_font->cache)
144 ScriptFreeCache (&(uniscribe_font->cache)); 144 ScriptFreeCache (&(uniscribe_font->cache));
145 145
146 w32font_close (f, font); 146 w32font_close (font);
147} 147}
148 148
149/* Return a list describing which scripts/languages FONT supports by 149/* Return a list describing which scripts/languages FONT supports by