aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorStefan Monnier2010-07-20 17:26:53 +0200
committerStefan Monnier2010-07-20 17:26:53 +0200
commitd5273788df4b8e6f4a266bfac3fd63ac10265dc7 (patch)
tree8aa8e0aed73a0d937d4a244d85523a06b1fe4eba /src/eval.c
parenta628ad9d974d15b9fbab527e0151377d23b5aeae (diff)
downloademacs-d5273788df4b8e6f4a266bfac3fd63ac10265dc7.tar.gz
emacs-d5273788df4b8e6f4a266bfac3fd63ac10265dc7.zip
Fix up "missing braces" warning.
* src/eval.c (Feval, Ffuncall): Use the new names. * src/lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED. (DEFUN): Add braces around the union initialisation and use ## to specify the right union alternative and avoid a cast.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c
index 953a41e4b1e..06888ca0dd4 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -2299,7 +2299,7 @@ DEFUN ("eval", Feval, Seval, 1, 1, 0,
2299 if (XSUBR (fun)->max_args == UNEVALLED) 2299 if (XSUBR (fun)->max_args == UNEVALLED)
2300 { 2300 {
2301 backtrace.evalargs = 0; 2301 backtrace.evalargs = 0;
2302 val = (XSUBR (fun)->function.a1) (args_left); 2302 val = (XSUBR (fun)->function.aUNEVALLED) (args_left);
2303 goto done; 2303 goto done;
2304 } 2304 }
2305 2305
@@ -2325,7 +2325,7 @@ DEFUN ("eval", Feval, Seval, 1, 1, 0,
2325 backtrace.args = vals; 2325 backtrace.args = vals;
2326 backtrace.nargs = XINT (numargs); 2326 backtrace.nargs = XINT (numargs);
2327 2327
2328 val = (XSUBR (fun)->function.am) (XINT (numargs), vals); 2328 val = (XSUBR (fun)->function.aMANY) (XINT (numargs), vals);
2329 UNGCPRO; 2329 UNGCPRO;
2330 goto done; 2330 goto done;
2331 } 2331 }
@@ -2968,7 +2968,7 @@ usage: (funcall FUNCTION &rest ARGUMENTS) */)
2968 2968
2969 if (XSUBR (fun)->max_args == MANY) 2969 if (XSUBR (fun)->max_args == MANY)
2970 { 2970 {
2971 val = (XSUBR (fun)->function.am) (numargs, args + 1); 2971 val = (XSUBR (fun)->function.aMANY) (numargs, args + 1);
2972 goto done; 2972 goto done;
2973 } 2973 }
2974 2974