aboutsummaryrefslogtreecommitdiff
path: root/src/interp/vmlisp.lisp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2007-12-03 22:54:12 +0000
committerdos-reis <gdr@axiomatics.org>2007-12-03 22:54:12 +0000
commit8b424a73bdf2d02563dbf166b9dd47e9d887d364 (patch)
tree2ed3bf722203bba0af0dc001bd859c90168a95f1 /src/interp/vmlisp.lisp
parent75508c6a271684806384718967765bb6c62e0d84 (diff)
downloadopen-axiom-8b424a73bdf2d02563dbf166b9dd47e9d887d364.tar.gz
* vmlisp.lisp (CGREATERP): Return canonical truthvalue.
Diffstat (limited to 'src/interp/vmlisp.lisp')
-rw-r--r--src/interp/vmlisp.lisp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/interp/vmlisp.lisp b/src/interp/vmlisp.lisp
index c2d66fd9..e422fa18 100644
--- a/src/interp/vmlisp.lisp
+++ b/src/interp/vmlisp.lisp
@@ -1039,7 +1039,13 @@
(defun CHAR2NUM (c) (char-code (character c)))
-(defun CGREATERP (s1 s2) (string> (string s1) (string s2)))
+;; Returns truthvalue (nil or t) if s1 compares lexicographically
+;; greater than s2. Note: It is essential that this function returns
+;; a canonical Boolean value because parts of the system use it in
+;; contexts where generalized Boolean values are confusing.
+(defun CGREATERP (s1 s2)
+ (cond ((string> (string s1) (string s2)) t)))
+
(define-function 'STRGREATERP #'CGREATERP)