diff options
| author | Dmitry Antipov | 2012-06-26 09:00:30 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-06-26 09:00:30 +0400 |
| commit | 1130ecfcacce9743078221b956cd07b352776442 (patch) | |
| tree | 4e2e38f1d5ea6cabc022cdca485d0d3ee92c91ef /src/alloc.c | |
| parent | 99027bdd81f63ea690394a153ef49a08f55e498d (diff) | |
| download | emacs-1130ecfcacce9743078221b956cd07b352776442.tar.gz emacs-1130ecfcacce9743078221b956cd07b352776442.zip | |
* src/alloc.c: Remove build_string.
* 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.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/alloc.c b/src/alloc.c index 490632f282f..6f7cc968b81 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -2496,16 +2496,6 @@ make_specified_string (const char *contents, | |||
| 2496 | } | 2496 | } |
| 2497 | 2497 | ||
| 2498 | 2498 | ||
| 2499 | /* Make a string from the data at STR, treating it as multibyte if the | ||
| 2500 | data warrants. */ | ||
| 2501 | |||
| 2502 | Lisp_Object | ||
| 2503 | build_string (const char *str) | ||
| 2504 | { | ||
| 2505 | return make_string (str, strlen (str)); | ||
| 2506 | } | ||
| 2507 | |||
| 2508 | |||
| 2509 | /* Return an unibyte Lisp_String set up to hold LENGTH characters | 2499 | /* Return an unibyte Lisp_String set up to hold LENGTH characters |
| 2510 | occupying LENGTH bytes. */ | 2500 | occupying LENGTH bytes. */ |
| 2511 | 2501 | ||