summaryrefslogtreecommitdiff
path: root/Sacla
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-07 14:57:27 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-07 14:57:27 +0200
commit1b556d9e057c6e3bed4893036d12eed1f3bc238d (patch)
tree51193cf4a28ea955967b3e9440b6508a17cb0d1c /Sacla
parenta35098ffebf51958f22e0845b5b6803c0dff1dfb (diff)
Add various array operations.
Diffstat (limited to 'Sacla')
-rw-r--r--Sacla/array.lisp9
-rw-r--r--Sacla/data-and-control.lisp3
2 files changed, 12 insertions, 0 deletions
diff --git a/Sacla/array.lisp b/Sacla/array.lisp
index 4fd0147..23b6c39 100644
--- a/Sacla/array.lisp
+++ b/Sacla/array.lisp
@@ -27,6 +27,15 @@
;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+(in-package #:common-lisp)
+
+(export '(aref array-dimenion array-in-bounds-p array-rank
+ array-row-major-index array-total-size bit-andc1 bit-andc2
+ bit-eqv bit-nand bit-nor bit-orc1 bit-orc2 bit-vector-p
+ simple-bit-vector-p vector vector-pop vector-push
+ vector-push-extend vectorp ))
+
+
(defun aref (array &rest subscripts)
"Access an element of ARRAY specified by SUBSCRIPTS."
(row-major-aref array (apply #'array-row-major-index array subscripts)))
diff --git a/Sacla/data-and-control.lisp b/Sacla/data-and-control.lisp
index cea7493..236440b 100644
--- a/Sacla/data-and-control.lisp
+++ b/Sacla/data-and-control.lisp
@@ -26,6 +26,9 @@
;; (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+(in-package #:common-lisp)
+
+
(defun expand-case (keyform clauses &key (test #'eql))
(let ((key (gensym))
(last (car (last clauses))))