aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.c
diff options
context:
space:
mode:
authorPaul Eggert2011-01-22 18:56:06 -0800
committerPaul Eggert2011-01-22 18:56:06 -0800
commit51b59d794fe1d4a82fcd842b478657cc93f91595 (patch)
tree25e57573403a13f3fe70934b40bf38c0190fd5ed /src/doc.c
parent9e928ac989c824c376b1ab576a6da69cd86b12c6 (diff)
downloademacs-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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/doc.c b/src/doc.c
index 900deded25c..cc054938c44 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -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