changeset 81271:0aafd69cb508

(empty_unibyte_string): Rename from empty_string. (empty_multibyte_string): New canonical empty string. (syms_of_emacs): Don't initialize empty_string.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 08 Jun 2007 19:58:33 +0000
parents 0bf4e298d593
children 1842d7137ff2
files src/emacs.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Fri Jun 08 19:57:46 2007 +0000
+++ b/src/emacs.c	Fri Jun 08 19:58:33 2007 +0000
@@ -133,8 +133,8 @@
 /* Hook run by `kill-emacs' before it does really anything.  */
 Lisp_Object Vkill_emacs_hook;
 
-/* An empty lisp string.  To avoid having to build any other.  */
-Lisp_Object empty_string;
+/* Empty lisp strings.  To avoid having to build any others.  */
+Lisp_Object empty_unibyte_string, empty_multibyte_string;
 
 /* Search path separator.  */
 Lisp_Object Vpath_separator;
@@ -2474,9 +2474,6 @@
 The hook is not run in batch mode, i.e., if `noninteractive' is non-nil.  */);
   Vkill_emacs_hook = Qnil;
 
-  empty_string = build_string ("");
-  staticpro (&empty_string);
-
   DEFVAR_INT ("emacs-priority", &emacs_priority,
 	      doc: /* Priority for Emacs to run at.
 This value is effective only if set before Emacs is dumped,