Compiler macro for REST, removing C-inline forms.

This commit is contained in:
Juan Jose Garcia Ripoll 2011-12-03 23:38:26 +01:00
parent 7a2678acb2
commit 08caf83740
2 changed files with 2 additions and 4 deletions

View file

@ -129,6 +129,8 @@
for i from 0
collect `(define-compiler-macro ,n (x) (list 'nth ,i x))))
(define-compiler-macro rest (x) `(cdr ,x))
;;;
;;; POP
;;;

View file

@ -360,10 +360,6 @@
(def-inline nth :unsafe (t t) t "ecl_nth(fix(#0),#1)")
(def-inline nth :unsafe (fixnum t) t "ecl_nth(#0,#1)")
(def-inline rest :always (t) t "ecl_cdr(#0)")
(def-inline rest :unsafe (cons) t "ECL_CONS_CDR(#0)")
(def-inline rest :unsafe (t) t "_ecl_cdr(#0)")
(def-inline nthcdr :always (t t) t "ecl_nthcdr(fixint(#0),#1)")
(def-inline nthcdr :always (fixnum t) t "ecl_nthcdr(#0,#1)")
(def-inline nthcdr :unsafe (t t) t "ecl_nthcdr(fix(#0),#1)")