diff options
| author | Paul Eggert | 2011-01-30 14:17:44 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-01-30 14:17:44 -0800 |
| commit | 42a5b22fc0201fe98ad8a093c3ab91122ab3a72b (patch) | |
| tree | e9e37d432417ac382a36b9e6f26db38e59ca0585 /src/buffer.c | |
| parent | 3de84ad9c45382c181e3383d433442f4e19ba722 (diff) | |
| download | emacs-42a5b22fc0201fe98ad8a093c3ab91122ab3a72b.tar.gz emacs-42a5b22fc0201fe98ad8a093c3ab91122ab3a72b.zip | |
Use SSDATA when the context wants char *.
* alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
* dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
* fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
* lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
* xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
Use SSDATA (not SDATA) when the context of the expression wants
char * (not unsigned char *).
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index 9b036a1a6db..2c6eb7b84e3 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1638,7 +1638,7 @@ the current buffer's major mode. */) | |||
| 1638 | CHECK_BUFFER (buffer); | 1638 | CHECK_BUFFER (buffer); |
| 1639 | 1639 | ||
| 1640 | if (STRINGP (XBUFFER (buffer)->name) | 1640 | if (STRINGP (XBUFFER (buffer)->name) |
| 1641 | && strcmp (SDATA (XBUFFER (buffer)->name), "*scratch*") == 0) | 1641 | && strcmp (SSDATA (XBUFFER (buffer)->name), "*scratch*") == 0) |
| 1642 | function = find_symbol_value (intern ("initial-major-mode")); | 1642 | function = find_symbol_value (intern ("initial-major-mode")); |
| 1643 | else | 1643 | else |
| 1644 | { | 1644 | { |
| @@ -5229,7 +5229,7 @@ init_buffer (void) | |||
| 5229 | because of the ange-ftp completion handler. | 5229 | because of the ange-ftp completion handler. |
| 5230 | However, it is not necessary to turn / into /:/. | 5230 | However, it is not necessary to turn / into /:/. |
| 5231 | So avoid doing that. */ | 5231 | So avoid doing that. */ |
| 5232 | && strcmp ("/", SDATA (current_buffer->directory))) | 5232 | && strcmp ("/", SSDATA (current_buffer->directory))) |
| 5233 | current_buffer->directory | 5233 | current_buffer->directory |
| 5234 | = concat2 (build_string ("/:"), current_buffer->directory); | 5234 | = concat2 (build_string ("/:"), current_buffer->directory); |
| 5235 | 5235 | ||
| @@ -6208,4 +6208,3 @@ keys_of_buffer (void) | |||
| 6208 | initialized when that function gets called. */ | 6208 | initialized when that function gets called. */ |
| 6209 | Fput (intern_c_string ("erase-buffer"), Qdisabled, Qt); | 6209 | Fput (intern_c_string ("erase-buffer"), Qdisabled, Qt); |
| 6210 | } | 6210 | } |
| 6211 | |||