summaryrefslogtreecommitdiff
path: root/utils.lisp
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2007-06-30 23:01:34 +0200
committerMatthias Benkard <code@mail.matthias.benkard.de>2007-06-30 23:01:34 +0200
commit41ab19abcfda6dfa43005686952bfe33fa06ef54 (patch)
tree19f5528c7255c106e55be82b1008af2fa82b6c6d /utils.lisp
parent7dbfa52a559fc72e375c4f8007283ba25a13a57a (diff)
Move all macro definitions into a separate file.
darcs-hash:aa001fe6707d0ddb94ceb1a4e82515894218fdf2
Diffstat (limited to 'utils.lisp')
-rw-r--r--utils.lisp23
1 files changed, 0 insertions, 23 deletions
diff --git a/utils.lisp b/utils.lisp
index 9ce14b1..2bb2f1e 100644
--- a/utils.lisp
+++ b/utils.lisp
@@ -67,22 +67,6 @@
markup)
-(defmacro regex-case (string &body clauses)
- (once-only (string)
- `(cond ,@(loop for (keys . forms) in clauses
- collect
- `(,(if (and (symbolp keys)
- (or (eq t keys)
- (equal "OTHERWISE" (symbol-name keys))))
- 't
- `(or ,@(loop for key in (if (listp keys)
- keys
- (list keys))
- collect
- `(ppcre:scan-to-strings ,key ,string))))
- ,@forms)))))
-
-
(defun name-of-day (day-of-week)
(case day-of-week
(0 "Montag")
@@ -204,13 +188,6 @@ ELEMENT-TYPE as the stream's."
string)))))
-(defmacro with-result-cache ((cache-id &key (younger-than nil younger-than-p))
- &body body)
- `(call-with-result-cache ,cache-id
- #'(lambda () ,@body)
- ,@(and younger-than-p `(:younger-than ,younger-than))))
-
-
(defun format-date (destination date-control-string universal-time
&optional (time-zone nil time-zone-supplied-p))
(with-result-cache ((format nil "date-format-~D-~A-~A"