diff options
| author | Paul Eggert | 2014-09-30 20:28:16 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-09-30 20:28:16 -0700 |
| commit | 27900ac72a8959291062eda9ef5eda9fc3f8595f (patch) | |
| tree | 780e22aa62de9c01e3faf00e5c123b1dfb87ddd3 /src/lread.c | |
| parent | cebe0e68947ec46b44f5c3c9868814f8a5464173 (diff) | |
| download | emacs-27900ac72a8959291062eda9ef5eda9fc3f8595f.tar.gz emacs-27900ac72a8959291062eda9ef5eda9fc3f8595f.zip | |
Use AUTO_CONS instead of SCOPED_CONS, etc.
* doc/lispref/internals.texi (Stack-allocated Objects):
Adjust to match the revised, less error-prone macros.
* src/frame.h (AUTO_FRAME_ARG): Rename from FRAME_PARAMETER.
* src/lisp.h (AUTO_CONS): Rename from scoped_cons.
(AUTO_LIST1): Rename from scoped_list1.
(AUTO_LIST2): Rename from scoped_list2.
(AUTO_LIST3): Rename from scoped_list3.
(AUTO_LIST4): Rename from scoped_list4.
(AUTO_STRING): Rename from SCOPED_STRING.
* src/frame.h (AUTO_FRAME_ARG):
* src/lisp.h (AUTO_CONS, AUTO_LIST1, AUTO_LIST2, AUTO_LIST3)
(AUTO_LIST4, AUTO_STRING):
Prepend a new argument 'name'.
Declare a variable instead of yielding a value.
All uses changed.
* src/lisp.h (STACK_CONS, AUTO_CONS_EXPR): New internal macros.
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lread.c b/src/lread.c index 799635e3c83..0e71b13c5c8 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -969,9 +969,10 @@ static void | |||
| 969 | load_warn_old_style_backquotes (Lisp_Object file) | 969 | load_warn_old_style_backquotes (Lisp_Object file) |
| 970 | { | 970 | { |
| 971 | if (!NILP (Vold_style_backquotes)) | 971 | if (!NILP (Vold_style_backquotes)) |
| 972 | Fmessage (2, ((Lisp_Object []) | 972 | { |
| 973 | { SCOPED_STRING ("Loading `%s': old-style backquotes detected!"), | 973 | AUTO_STRING (format, "Loading `%s': old-style backquotes detected!"); |
| 974 | file })); | 974 | Fmessage (2, (Lisp_Object []) {format, file}); |
| 975 | } | ||
| 975 | } | 976 | } |
| 976 | 977 | ||
| 977 | DEFUN ("get-load-suffixes", Fget_load_suffixes, Sget_load_suffixes, 0, 0, 0, | 978 | DEFUN ("get-load-suffixes", Fget_load_suffixes, Sget_load_suffixes, 0, 0, 0, |
| @@ -2888,11 +2889,8 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 2888 | if (c == '=') | 2889 | if (c == '=') |
| 2889 | { | 2890 | { |
| 2890 | /* Make a placeholder for #n# to use temporarily. */ | 2891 | /* Make a placeholder for #n# to use temporarily. */ |
| 2891 | Lisp_Object placeholder; | 2892 | AUTO_CONS (placeholder, Qnil, Qnil); |
| 2892 | Lisp_Object cell; | 2893 | Lisp_Object cell = Fcons (make_number (n), placeholder); |
| 2893 | |||
| 2894 | placeholder = scoped_cons (Qnil, Qnil); | ||
| 2895 | cell = Fcons (make_number (n), placeholder); | ||
| 2896 | read_objects = Fcons (cell, read_objects); | 2894 | read_objects = Fcons (cell, read_objects); |
| 2897 | 2895 | ||
| 2898 | /* Read the object itself. */ | 2896 | /* Read the object itself. */ |
| @@ -3371,7 +3369,7 @@ substitute_object_recurse (Lisp_Object object, Lisp_Object placeholder, Lisp_Obj | |||
| 3371 | substitute_in_interval contains part of the logic. */ | 3369 | substitute_in_interval contains part of the logic. */ |
| 3372 | 3370 | ||
| 3373 | INTERVAL root_interval = string_intervals (subtree); | 3371 | INTERVAL root_interval = string_intervals (subtree); |
| 3374 | Lisp_Object arg = scoped_cons (object, placeholder); | 3372 | AUTO_CONS (arg, object, placeholder); |
| 3375 | 3373 | ||
| 3376 | traverse_intervals_noorder (root_interval, | 3374 | traverse_intervals_noorder (root_interval, |
| 3377 | &substitute_in_interval, arg); | 3375 | &substitute_in_interval, arg); |
| @@ -3678,8 +3676,10 @@ read_list (bool flag, Lisp_Object readcharfun) | |||
| 3678 | in the installed Lisp directory. | 3676 | in the installed Lisp directory. |
| 3679 | We don't use Fexpand_file_name because that would make | 3677 | We don't use Fexpand_file_name because that would make |
| 3680 | the directory absolute now. */ | 3678 | the directory absolute now. */ |
| 3681 | elt = concat2 (SCOPED_STRING ("../lisp/"), | 3679 | { |
| 3682 | Ffile_name_nondirectory (elt)); | 3680 | AUTO_STRING (dotdotlisp, "../lisp/"); |
| 3681 | elt = concat2 (dotdotlisp, Ffile_name_nondirectory (elt)); | ||
| 3682 | } | ||
| 3683 | } | 3683 | } |
| 3684 | else if (EQ (elt, Vload_file_name) | 3684 | else if (EQ (elt, Vload_file_name) |
| 3685 | && ! NILP (elt) | 3685 | && ! NILP (elt) |