register Lisp_Object *args;
register int i;
struct gcpro gcpro1;
- int nbytes;
Lisp_Object ret;
USE_SAFE_ALLOCA;
nargs = leni + leni - 1;
if (nargs < 0) return build_string ("");
- nbytes = nargs * sizeof (Lisp_Object);
- SAFE_ALLOCA_LISP (args, nbytes);
+ SAFE_ALLOCA_LISP (args, nargs);
GCPRO1 (separator);
mapcar1 (leni, args, function, sequence);
args[i] = separator;
ret = Fconcat (nargs, args);
- SAFE_FREE (nbytes);
+ SAFE_FREE_LISP (nargs);
return ret;
}
register Lisp_Object len;
register int leni;
register Lisp_Object *args;
- int nbytes;
Lisp_Object ret;
USE_SAFE_ALLOCA;
len = Flength (sequence);
leni = XFASTINT (len);
- nbytes = leni * sizeof (Lisp_Object);
- SAFE_ALLOCA_LISP (args, nbytes);
+ SAFE_ALLOCA_LISP (args, leni);
mapcar1 (leni, args, function, sequence);
ret = Flist (leni, args);
- SAFE_FREE(nbytes);
+ SAFE_FREE_LISP (leni);
return ret;
}