Some basic utility definitions for all areas of CLASH.
This commit is contained in:
23
src/utility.cl
Normal file
23
src/utility.cl
Normal 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)))))
|
||||||
Reference in New Issue
Block a user