diff options
| author | Dmitry Antipov | 2013-08-01 14:33:25 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-08-01 14:33:25 +0400 |
| commit | fdb396e222923dc98d46c170381c6b33dc1e8d99 (patch) | |
| tree | 9cf9c6074b8386eec0f9e7d0e610b98447894d4a /src/ftxfont.c | |
| parent | 2f935d86fd7aa551e2c61d71c14a1c1a8b3ba707 (diff) | |
| download | emacs-fdb396e222923dc98d46c170381c6b33dc1e8d99.tar.gz emacs-fdb396e222923dc98d46c170381c6b33dc1e8d99.zip | |
Avoid redundant Lisp_Object <-> struct frame conversions in font API.
* font.h (struct font_driver): Change list, match, and list_family
functions to accept struct frame * as first arg.
* font.c (font_score, font_compare, font_sort_entities): Remove
prototypes.
(font_sort_entities, font_list_entities, font_select_entity):
(font_find_for_lface, Flist_fonts, Ffont_family_list): Adjust to
match font API change.
* xfont.c (xfont_list, xfont_match, xfont_list_family):
* ftfont.c (ftfont_list, ftfont_match, ftfont_list_family):
* ftxfont.c (ftxfont_list, ftxfont_match):
* xftfont.c (xftfont_list, xftfont_match):
* nsfont.m (nsfont_list, nsfont_match, nsfont_list_family):
* w32font.c (w32font_list, w32font_match, w32font_list):
(w32font_list_internal, w32_font_match_internal): Likewise.
* xfaces.c (Fx_family_fonts): Adjust user.
Diffstat (limited to 'src/ftxfont.c')
| -rw-r--r-- | src/ftxfont.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ftxfont.c b/src/ftxfont.c index 8c56ee05adc..9f9433e7183 100644 --- a/src/ftxfont.c +++ b/src/ftxfont.c | |||
| @@ -226,9 +226,9 @@ ftxfont_draw_background (FRAME_PTR f, struct font *font, GC gc, int x, int y, | |||
| 226 | } | 226 | } |
| 227 | 227 | ||
| 228 | static Lisp_Object | 228 | static Lisp_Object |
| 229 | ftxfont_list (Lisp_Object frame, Lisp_Object spec) | 229 | ftxfont_list (struct frame *f, Lisp_Object spec) |
| 230 | { | 230 | { |
| 231 | Lisp_Object list = ftfont_driver.list (frame, spec), tail; | 231 | Lisp_Object list = ftfont_driver.list (f, spec), tail; |
| 232 | 232 | ||
| 233 | for (tail = list; CONSP (tail); tail = XCDR (tail)) | 233 | for (tail = list; CONSP (tail); tail = XCDR (tail)) |
| 234 | ASET (XCAR (tail), FONT_TYPE_INDEX, Qftx); | 234 | ASET (XCAR (tail), FONT_TYPE_INDEX, Qftx); |
| @@ -236,9 +236,9 @@ ftxfont_list (Lisp_Object frame, Lisp_Object spec) | |||
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | static Lisp_Object | 238 | static Lisp_Object |
| 239 | ftxfont_match (Lisp_Object frame, Lisp_Object spec) | 239 | ftxfont_match (struct frame *f, Lisp_Object spec) |
| 240 | { | 240 | { |
| 241 | Lisp_Object entity = ftfont_driver.match (frame, spec); | 241 | Lisp_Object entity = ftfont_driver.match (f, spec); |
| 242 | 242 | ||
| 243 | if (VECTORP (entity)) | 243 | if (VECTORP (entity)) |
| 244 | ASET (entity, FONT_TYPE_INDEX, Qftx); | 244 | ASET (entity, FONT_TYPE_INDEX, Qftx); |