diff options
| author | Juanma Barranquero | 2007-06-08 19:56:24 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2007-06-08 19:56:24 +0000 |
| commit | 2c668b9a664b677f97e12b2725b88eceb30d94d9 (patch) | |
| tree | 4c84606c37345eaeb06ade27d73db73c407d29a7 /src | |
| parent | aa0c00e0fc0e381cfe9ddd9be8ef1d607356d857 (diff) | |
| download | emacs-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.h | 8 |
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 */ |
| 3061 | extern Lisp_Object decode_env_path P_ ((char *, char *)); | 3064 | extern Lisp_Object decode_env_path P_ ((char *, char *)); |
| 3062 | extern Lisp_Object Vinvocation_name, Vinvocation_directory; | 3065 | extern Lisp_Object Vinvocation_name, Vinvocation_directory; |
| 3063 | extern Lisp_Object Vinstallation_directory, empty_string; | 3066 | extern Lisp_Object Vinstallation_directory; |
| 3067 | extern Lisp_Object empty_unibyte_string, empty_multibyte_string; | ||
| 3064 | EXFUN (Fkill_emacs, 1); | 3068 | EXFUN (Fkill_emacs, 1); |
| 3065 | #if HAVE_SETLOCALE | 3069 | #if HAVE_SETLOCALE |
| 3066 | void fixup_locale P_ ((void)); | 3070 | void fixup_locale P_ ((void)); |