mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-02 08:22:22 +00:00
1130ecfcac
* src/lisp.h: Define build_string as static inline. This provides a better opportunity to optimize away calls to strlen when the function is called with compile-time constant argument. * src/image.c (imagemagick_error): Convert to build_string. * src/w32proc.c (sys_spawnve): Likewise. * src/xterm.c (x_term_init): Likewise. * admin/coccinelle/build_string.cocci: Semantic patch to convert from make_string to build_string.
7 lines
110 B
Plaintext
7 lines
110 B
Plaintext
// Convert simple cases to build_string.
|
|
@@
|
|
identifier I;
|
|
@@
|
|
- make_string (I, strlen (I))
|
|
+ build_string (I)
|