diff options
| author | Paul Eggert | 2011-01-22 18:56:06 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-01-22 18:56:06 -0800 |
| commit | 51b59d794fe1d4a82fcd842b478657cc93f91595 (patch) | |
| tree | 25e57573403a13f3fe70934b40bf38c0190fd5ed /src/doc.c | |
| parent | 9e928ac989c824c376b1ab576a6da69cd86b12c6 (diff) | |
| download | emacs-51b59d794fe1d4a82fcd842b478657cc93f91595.tar.gz emacs-51b59d794fe1d4a82fcd842b478657cc93f91595.zip | |
Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -126,7 +126,7 @@ get_doc_string (Lisp_Object filepos, int unibyte, int definition) | |||
| 126 | } | 126 | } |
| 127 | else | 127 | else |
| 128 | { | 128 | { |
| 129 | name = (char *) SDATA (file); | 129 | name = SSDATA (file); |
| 130 | } | 130 | } |
| 131 | 131 | ||
| 132 | fd = emacs_open (name, O_RDONLY, 0); | 132 | fd = emacs_open (name, O_RDONLY, 0); |
| @@ -891,7 +891,7 @@ a new string, without any text properties, is returned. */) | |||
| 891 | bufp += length_byte; | 891 | bufp += length_byte; |
| 892 | nchars += length; | 892 | nchars += length; |
| 893 | /* Check STRING again in case gc relocated it. */ | 893 | /* Check STRING again in case gc relocated it. */ |
| 894 | strp = (unsigned char *) SDATA (string) + idx; | 894 | strp = SDATA (string) + idx; |
| 895 | } | 895 | } |
| 896 | } | 896 | } |
| 897 | else if (! multibyte) /* just copy other chars */ | 897 | else if (! multibyte) /* just copy other chars */ |
| @@ -938,4 +938,3 @@ syms_of_doc (void) | |||
| 938 | defsubr (&Ssnarf_documentation); | 938 | defsubr (&Ssnarf_documentation); |
| 939 | defsubr (&Ssubstitute_command_keys); | 939 | defsubr (&Ssubstitute_command_keys); |
| 940 | } | 940 | } |
| 941 | |||