aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2007-06-08 19:56:24 +0000
committerJuanma Barranquero2007-06-08 19:56:24 +0000
commit2c668b9a664b677f97e12b2725b88eceb30d94d9 (patch)
tree4c84606c37345eaeb06ade27d73db73c407d29a7 /src
parentaa0c00e0fc0e381cfe9ddd9be8ef1d607356d857 (diff)
downloademacs-2c668b9a664b677f97e12b2725b88eceb30d94d9.tar.gz
emacs-2c668b9a664b677f97e12b2725b88eceb30d94d9.zip
(STRING_SET_UNIBYTE): Return the canonical empty unibyte string, if appropriate.
(empty_unibyte_string, empty_multibyte_string): New externs. (empty_string): Remove extern.
Diffstat (limited to 'src')
-rw-r--r--src/lisp.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lisp.h b/src/lisp.h
index a7072d02174..d380ba0d049 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -701,7 +701,10 @@ extern int string_bytes P_ ((struct Lisp_String *));
701#endif /* not GC_CHECK_STRING_BYTES */ 701#endif /* not GC_CHECK_STRING_BYTES */
702 702
703/* Mark STR as a unibyte string. */ 703/* Mark STR as a unibyte string. */
704#define STRING_SET_UNIBYTE(STR) (XSTRING (STR)->size_byte = -1) 704#define STRING_SET_UNIBYTE(STR) \
705 do { if (EQ (STR, empty_multibyte_string)) \
706 (STR) = empty_unibyte_string; \
707 else XSTRING (STR)->size_byte = -1; } while (0)
705 708
706/* Get text properties. */ 709/* Get text properties. */
707#define STRING_INTERVALS(STR) (XSTRING (STR)->intervals + 0) 710#define STRING_INTERVALS(STR) (XSTRING (STR)->intervals + 0)
@@ -3060,7 +3063,8 @@ extern void syms_of_frame P_ ((void));
3060/* defined in emacs.c */ 3063/* defined in emacs.c */
3061extern Lisp_Object decode_env_path P_ ((char *, char *)); 3064extern Lisp_Object decode_env_path P_ ((char *, char *));
3062extern Lisp_Object Vinvocation_name, Vinvocation_directory; 3065extern Lisp_Object Vinvocation_name, Vinvocation_directory;
3063extern Lisp_Object Vinstallation_directory, empty_string; 3066extern Lisp_Object Vinstallation_directory;
3067extern Lisp_Object empty_unibyte_string, empty_multibyte_string;
3064EXFUN (Fkill_emacs, 1); 3068EXFUN (Fkill_emacs, 1);
3065#if HAVE_SETLOCALE 3069#if HAVE_SETLOCALE
3066void fixup_locale P_ ((void)); 3070void fixup_locale P_ ((void));