From e707fdb7446a35ed698405717ebb326dccb0d8f9 Mon Sep 17 00:00:00 2001 From: jjgarcia Date: Sat, 11 Aug 2001 13:31:08 +0000 Subject: [PATCH] va_APPLY() and va_APPLY_closure() contained absurd, stupid and useless code. --- src/c/apply.d | 678 +------------------------------------------------- 1 file changed, 7 insertions(+), 671 deletions(-) diff --git a/src/c/apply.d b/src/c/apply.d index 4c16cbba2..6a6cbb349 100644 --- a/src/c/apply.d +++ b/src/c/apply.d @@ -18,13 +18,6 @@ cl_object APPLY(int n, cl_object (*fn)(), cl_object *x) -#ifdef ARGCALL -{ int i; ARGSTACK(n); - for (i = 0; i < n; i++) - CPUSH(*x++); - return ARGCALL(n, fn); -} -#else { switch (n) { case 0: return (*fn)(n); @@ -347,18 +340,9 @@ APPLY(int n, cl_object (*fn)(), cl_object *x) default: FEprogram_error("Exceeded call-arguments-limit.", 0); } } -#endif ARGCALL cl_object APPLY_closure(int n, cl_object (*fn)(), cl_object cl, cl_object *x) -#ifdef ARGCALL -{ int i; ARGSTACK(n+1); - CPUSH(cl); - for (i = 0; i < n; i++) - CPUSH(*x++); - return ARGCALL(n++, fn); -} -#else { switch (++n) { case 1: return (*fn)(n, cl); @@ -672,7 +656,6 @@ APPLY_closure(int n, cl_object (*fn)(), cl_object cl, cl_object *x) default: FEprogram_error("Exceeded call-arguments-limit.", 0); } } -#endif ARGCALL /* * Variants for systems where stack grows upwards. @@ -681,667 +664,20 @@ APPLY_closure(int n, cl_object (*fn)(), cl_object cl, cl_object *x) #ifdef NO_ARGS_ARRAY cl_object va_APPLY(int n, cl_object (*fn)(), va_list args) -#ifdef ARGCALL { + cl_object x[n]; int i; - cl_object *x = &cl_nextarg(args); - ARGSTACK(n); - for (i = 0; i < n; i++) - CPUSH(*x--); - return ARGCALL(n, fn); + for (i=0; i