Some basic utility definitions for all areas of CLASH.

This commit is contained in:
2000-01-28 07:20:36 +00:00
parent 5745612e87
commit f78391efdb

23
src/utility.cl Normal file
View File

@ -0,0 +1,23 @@
;;;; CLASH --- The Common Lisp Adaptable Simple HTTP server
;;;; This is copyrighted software. See documentation for terms.
;;;;
;;;; utility.cl --- Basic substrate utilities
;;;;
;;;; Checkout Tag: $Name$
;;;; $Id$
(in-package :CLASH)
;;;; %File Description:
;;;;
;;;;
;;;;
(deftype string-index ()
"Type of string indices."
`(integer 0 (,array-dimension-limit)))
(deftype string-inner-index (length)
"Type of inner string indices, i.e. those that occur at least length
characters inside the string."
`(integer 0 (,(- array-dimension-limit (- length 1)))))