diff options
| author | Dmitry Antipov | 2013-01-17 10:29:40 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-01-17 10:29:40 +0400 |
| commit | 468afbaceaeb045f69b1a47aa1550a2556cd7dfd (patch) | |
| tree | ff5bd77d87a3f52802196d04ef4c6ca493c47fe7 /src/dired.c | |
| parent | 0e70695aa48cb34d8c3df6e4d4173b6adb474b23 (diff) | |
| download | emacs-468afbaceaeb045f69b1a47aa1550a2556cd7dfd.tar.gz emacs-468afbaceaeb045f69b1a47aa1550a2556cd7dfd.zip | |
* lisp.h (toplevel): Add comment about using Lisp_Save_Value
objects, related functions and macros.
(make_save_value): Adjust prototype.
(make_save_pointer): New prototype.
(SAFE_NALLOCA): Fix indentation. Use make_save_pointer.
(SAFE_ALLOCA_LISP): Adjust make_save_value usage.
* alloc.c (format_save_value): Rename to make_save_value.
(make_save_pointer): New function.
(record_xmalloc): Use make_save_pointer.
* dired.c, editfns.c, fileio.c, font.c, gtkutil.c, lread.c:
* nsmenu.m, nsterm.m, xfns.c, xmenu.c, xselect.c, keymap.c:
Change users of make_save_value to make_save_pointer.
Likewise for format_save_value and make_save_value.
Diffstat (limited to 'src/dired.c')
| -rw-r--r-- | src/dired.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dired.c b/src/dired.c index 3dca9d24f67..a4c8621e9c0 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -152,7 +152,7 @@ directory_files_internal (Lisp_Object directory, Lisp_Object full, | |||
| 152 | file-attributes on filenames, both of which can throw, so we must | 152 | file-attributes on filenames, both of which can throw, so we must |
| 153 | do a proper unwind-protect. */ | 153 | do a proper unwind-protect. */ |
| 154 | record_unwind_protect (directory_files_internal_unwind, | 154 | record_unwind_protect (directory_files_internal_unwind, |
| 155 | make_save_value (d, 0)); | 155 | make_save_pointer (d)); |
| 156 | 156 | ||
| 157 | #ifdef WINDOWSNT | 157 | #ifdef WINDOWSNT |
| 158 | if (attrs) | 158 | if (attrs) |
| @@ -465,7 +465,7 @@ file_name_completion (Lisp_Object file, Lisp_Object dirname, bool all_flag, | |||
| 465 | report_file_error ("Opening directory", Fcons (dirname, Qnil)); | 465 | report_file_error ("Opening directory", Fcons (dirname, Qnil)); |
| 466 | 466 | ||
| 467 | record_unwind_protect (directory_files_internal_unwind, | 467 | record_unwind_protect (directory_files_internal_unwind, |
| 468 | make_save_value (d, 0)); | 468 | make_save_pointer (d)); |
| 469 | 469 | ||
| 470 | /* Loop reading blocks */ | 470 | /* Loop reading blocks */ |
| 471 | /* (att3b compiler bug requires do a null comparison this way) */ | 471 | /* (att3b compiler bug requires do a null comparison this way) */ |