diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2012-07-10 12:43:46 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2012-07-10 12:43:46 +0400 |
commit | 2a0213a6d0a9e36a388994445837e051d0bbe5f9 (patch) | |
tree | b7e4d5c2ef5d4061e083ef2123c1fc72ad46d93d /src/xfaces.c | |
parent | cb1caeaf2ba26df05e8f9bcd4aa63203cef781fb (diff) | |
download | emacs-2a0213a6d0a9e36a388994445837e051d0bbe5f9.tar.gz |
Optimize pure C strings initialization.
* lisp.h (make_pure_string): Fix prototype.
(build_pure_c_string): New function, defined as static inline. This
provides a better opportunity to optimize away calls to strlen when
the function is called with compile-time constant argument.
* alloc.c (make_pure_c_string): Fix comment. Change to add nchars
argument, adjust users accordingly. Use build_pure_c_string where
appropriate.
* buffer.c, coding.c, data.c, dbusbind.c, fileio.c, fontset.c, frame.c,
* keyboard.c, keymap.c, lread.c, search.c, syntax.c, w32fns.c, xdisp.c,
* xfaces.c, xfns.c, xterm.c: Use build_pure_c_string where appropriate.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r-- | src/xfaces.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index a6b260a2929..e9089017c4e 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -6643,7 +6643,7 @@ that number of fonts when searching for a matching font. */); This stipple pattern is used on monochrome displays instead of shades of gray for a face background color. See `set-face-stipple' for possible values for this variable. */); - Vface_default_stipple = make_pure_c_string ("gray3"); + Vface_default_stipple = build_pure_c_string ("gray3"); DEFVAR_LISP ("tty-defined-color-alist", Vtty_defined_color_alist, doc: /* An alist of defined terminal colors and their RGB values. |