diff options
| author | Andrea Corallo | 2019-08-11 14:54:13 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:33:59 +0100 |
| commit | b6e7df0926b1a569a582b0d3ff0da0c27ad368bd (patch) | |
| tree | 87cf7f0f890842ce10c4cabca243070c0637d7d0 /src/comp.c | |
| parent | bb8f8f5cfa0f66729c6c6a333bee5bd4ba16c24c (diff) | |
| download | emacs-b6e7df0926b1a569a582b0d3ff0da0c27ad368bd.tar.gz emacs-b6e7df0926b1a569a582b0d3ff0da0c27ad368bd.zip | |
rework args structures
Diffstat (limited to 'src/comp.c')
| -rw-r--r-- | src/comp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/comp.c b/src/comp.c index a4793a36ada..881a78b3d75 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -2247,8 +2247,7 @@ DEFUN ("comp-add-func-to-ctxt", Fcomp_add_func_to_ctxt, Scomp_add_func_to_ctxt, | |||
| 2247 | char *c_name = (char *) SDATA (FUNCALL1 (comp-func-c-func-name, func)); | 2247 | char *c_name = (char *) SDATA (FUNCALL1 (comp-func-c-func-name, func)); |
| 2248 | Lisp_Object args = FUNCALL1 (comp-func-args, func); | 2248 | Lisp_Object args = FUNCALL1 (comp-func-args, func); |
| 2249 | EMACS_INT frame_size = XFIXNUM (FUNCALL1 (comp-func-frame-size, func)); | 2249 | EMACS_INT frame_size = XFIXNUM (FUNCALL1 (comp-func-frame-size, func)); |
| 2250 | /* EMACS_INT min_args = XFIXNUM (FUNCALL1 (comp-args-min, args)); */ | 2250 | bool ncall = (FUNCALL1 (comp-nargs-p, args)); |
| 2251 | bool ncall = !NILP (FUNCALL1 (comp-args-ncall-conv, args)); | ||
| 2252 | 2251 | ||
| 2253 | if (!ncall) | 2252 | if (!ncall) |
| 2254 | { | 2253 | { |
| @@ -2373,8 +2372,8 @@ DEFUN ("comp-compile-and-load-ctxt", Fcomp_compile_and_load_ctxt, | |||
| 2373 | x->s.header.size = PVEC_SUBR << PSEUDOVECTOR_AREA_BITS; | 2372 | x->s.header.size = PVEC_SUBR << PSEUDOVECTOR_AREA_BITS; |
| 2374 | x->s.function.a0 = gcc_jit_result_get_code(gcc_res, c_name); | 2373 | x->s.function.a0 = gcc_jit_result_get_code(gcc_res, c_name); |
| 2375 | eassert (x->s.function.a0); | 2374 | eassert (x->s.function.a0); |
| 2376 | x->s.min_args = XFIXNUM (FUNCALL1 (comp-args-min, args)); | 2375 | x->s.min_args = XFIXNUM (FUNCALL1 (comp-args-gen-min, args)); |
| 2377 | if (NILP (FUNCALL1 (comp-args-ncall-conv, args))) | 2376 | if (FUNCALL1 (comp-args-p, args)) |
| 2378 | x->s.max_args = XFIXNUM (FUNCALL1 (comp-args-max, args)); | 2377 | x->s.max_args = XFIXNUM (FUNCALL1 (comp-args-max, args)); |
| 2379 | else | 2378 | else |
| 2380 | x->s.max_args = MANY; | 2379 | x->s.max_args = MANY; |