mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
* src/fns.c (syms_of_fns): * src/image.c (slurp_image): Prefer build_unibyte_string (str) to make_unibyte_string (str, strlen (str)). * admin/coccinelle/unibyte_string.cocci: Support string literals.
12 lines
242 B
Text
12 lines
242 B
Text
// make_unibyte_string (str, strlen (str)) -> build_unibyte_string (str)
|
|
@@
|
|
identifier I;
|
|
@@
|
|
- make_unibyte_string (I, strlen (I))
|
|
+ build_unibyte_string (I)
|
|
|
|
@@
|
|
constant C;
|
|
@@
|
|
- make_unibyte_string (C, strlen (C))
|
|
+ build_unibyte_string (C)
|