emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109045: Use empty_unibyte_string whe


From: Dmitry Antipov
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109045: Use empty_unibyte_string where applicable.
Date: Thu, 12 Jul 2012 07:45:46 +0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109045
committer: Dmitry Antipov <address@hidden>
branch nick: trunk
timestamp: Thu 2012-07-12 07:45:46 +0400
message:
  Use empty_unibyte_string where applicable.
  * keyboard.c (parse_tool_bar_item): Use empty_unibyte_string.
  * lread.c (read1): Likewise.
  * xsettings.c (syms_of_xsettings): Likewise.
modified:
  src/ChangeLog
  src/keyboard.c
  src/lread.c
  src/xsettings.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-07-12 02:14:29 +0000
+++ b/src/ChangeLog     2012-07-12 03:45:46 +0000
@@ -1,3 +1,10 @@
+2012-07-12  Dmitry Antipov  <address@hidden>
+
+       Use empty_unibyte_string where applicable.
+       * keyboard.c (parse_tool_bar_item): Use empty_unibyte_string.
+       * lread.c (read1): Likewise.
+       * xsettings.c (syms_of_xsettings): Likewise.
+
 2012-07-12  Glenn Morris  <address@hidden>
 
        * s/cygwin.h (G_SLICE_ALWAYS_MALLOC):

=== modified file 'src/keyboard.c'
--- a/src/keyboard.c    2012-07-10 23:24:36 +0000
+++ b/src/keyboard.c    2012-07-12 03:45:46 +0000
@@ -8331,7 +8331,7 @@
       if (SCHARS (new_lbl) <= tool_bar_max_label_size)
         PROP (TOOL_BAR_ITEM_LABEL) = new_lbl;
       else
-        PROP (TOOL_BAR_ITEM_LABEL) = make_string ("", 0);
+        PROP (TOOL_BAR_ITEM_LABEL) = empty_unibyte_string;
       xfree (buf);
     }
 

=== modified file 'src/lread.c'
--- a/src/lread.c       2012-07-11 08:33:04 +0000
+++ b/src/lread.c       2012-07-12 03:45:46 +0000
@@ -2670,13 +2670,13 @@
              /* No symbol character follows, this is the empty
                 symbol.  */
              UNREAD (c);
-             return Fmake_symbol (build_string (""));
+             return Fmake_symbol (empty_unibyte_string);
            }
          goto read_symbol;
        }
       /* ## is the empty symbol.  */
       if (c == '#')
-       return Fintern (build_string (""), Qnil);
+       return Fintern (empty_unibyte_string, Qnil);
       /* Reader forms that can reuse previously read objects.  */
       if (c >= '0' && c <= '9')
        {

=== modified file 'src/xsettings.c'
--- a/src/xsettings.c   2012-07-09 12:02:27 +0000
+++ b/src/xsettings.c   2012-07-12 03:45:46 +0000
@@ -1035,7 +1035,7 @@
 
   DEFVAR_LISP ("xft-settings", Vxft_settings,
                doc: /* Font settings applied to Xft.  */);
-  Vxft_settings = make_string ("", 0);
+  Vxft_settings = empty_unibyte_string;
 
 #ifdef HAVE_XFT
   Fprovide (intern_c_string ("font-render-setting"), Qnil);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]