diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-01-22 18:56:06 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-01-22 18:56:06 -0800 |
commit | 51b59d794fe1d4a82fcd842b478657cc93f91595 (patch) | |
tree | 25e57573403a13f3fe70934b40bf38c0190fd5ed /src/doc.c | |
parent | 9e928ac989c824c376b1ab576a6da69cd86b12c6 (diff) | |
download | emacs-51b59d794fe1d4a82fcd842b478657cc93f91595.tar.gz |
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
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) } else { - name = (char *) SDATA (file); + name = SSDATA (file); } fd = emacs_open (name, O_RDONLY, 0); @@ -891,7 +891,7 @@ a new string, without any text properties, is returned. */) bufp += length_byte; nchars += length; /* Check STRING again in case gc relocated it. */ - strp = (unsigned char *) SDATA (string) + idx; + strp = SDATA (string) + idx; } } else if (! multibyte) /* just copy other chars */ @@ -938,4 +938,3 @@ syms_of_doc (void) defsubr (&Ssnarf_documentation); defsubr (&Ssubstitute_command_keys); } - |