mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-08 04:30:45 -08:00
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.
This commit is contained in:
parent
765e61e391
commit
d7ea76b4f3
15 changed files with 51 additions and 23 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2012-07-20 Dmitry Antipov <dmantipov@yandex.ru>
|
||||
|
||||
* coccinelle/unibyte_string.cocci: Semantic patch to convert from
|
||||
make_unibyte_string to build_unibyte_string where appropriate.
|
||||
|
||||
2012-07-17 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* CPP-DEFINES: Remove FILE_SYSTEM_CASE.
|
||||
|
|
@ -5,6 +10,7 @@
|
|||
2012-07-17 Chong Yidong <cyd@gnu.org>
|
||||
|
||||
* Version 24.1 released.
|
||||
|
||||
2012-07-11 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Assume mkdir, perror, rename, rmdir, strerror.
|
||||
|
|
|
|||
6
admin/coccinelle/unibyte_string.cocci
Normal file
6
admin/coccinelle/unibyte_string.cocci
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
// make_unibyte_string (str, strlen (str)) -> build_unibyte_string (str)
|
||||
@@
|
||||
identifier I;
|
||||
@@
|
||||
- make_unibyte_string (I, strlen (I))
|
||||
+ build_unibyte_string (I)
|
||||
Loading…
Add table
Add a link
Reference in a new issue