diff options
| author | Dmitry Antipov | 2012-07-20 11:29:04 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-07-20 11:29:04 +0400 |
| commit | d7ea76b4f34c4e2c43bf0b1deeedde354ca540f7 (patch) | |
| tree | ac3cb2ab6d00e89542afc9a5290191e549ce1d81 /src/font.h | |
| parent | 765e61e391ee0937ff6b30510b6c4651064fe38e (diff) | |
| download | emacs-d7ea76b4f34c4e2c43bf0b1deeedde354ca540f7.tar.gz emacs-d7ea76b4f34c4e2c43bf0b1deeedde354ca540f7.zip | |
Simple wrapper for make_unibyte_string, adjust font_open_by_name.
* src/lisp.h (build_unibyte_string): New function.
* src/dosfns.c, src/fileio.c, src/fns.c, src/ftfont.c, src/process.c:
* src/sysdep.c, src/w32fns.c, src/xfns.c: Use it.
* src/font.c (font_open_by_name): Change 2nd and 3rd args to the only arg
of type Lisp_Object to avoid redundant calls to make_unibyte_string.
Adjust users accordingly.
* src/font.h (font_open_by_name): Adjust prototype.
* admin/coccinelle/unibyte_string.cocci: Semantic patch to convert from
make_unibyte_string to build_unibyte_string where appropriate.
Diffstat (limited to 'src/font.h')
| -rw-r--r-- | src/font.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/font.h b/src/font.h index b4e994397de..2e374571c67 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -771,7 +771,7 @@ extern void font_prepare_for_face (FRAME_PTR f, struct face *face); | |||
| 771 | extern void font_done_for_face (FRAME_PTR f, struct face *face); | 771 | extern void font_done_for_face (FRAME_PTR f, struct face *face); |
| 772 | 772 | ||
| 773 | extern Lisp_Object font_open_by_spec (FRAME_PTR f, Lisp_Object spec); | 773 | extern Lisp_Object font_open_by_spec (FRAME_PTR f, Lisp_Object spec); |
| 774 | extern Lisp_Object font_open_by_name (FRAME_PTR f, const char *name, ptrdiff_t len); | 774 | extern Lisp_Object font_open_by_name (FRAME_PTR f, Lisp_Object name); |
| 775 | 775 | ||
| 776 | extern Lisp_Object font_intern_prop (const char *str, ptrdiff_t len, | 776 | extern Lisp_Object font_intern_prop (const char *str, ptrdiff_t len, |
| 777 | int force_symbol); | 777 | int force_symbol); |