X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=class-support.lisp;h=7892abed792da14ea9dfcb75bcccce4e51593dbf;hb=28aeae6f894ac1e2b4ded59af9371b373e38a701;hp=5de221198d17be93ccdf74e51607b4ad5861ee66;hpb=01888d11a058ecc8c1dcde23291f9cfbb3a307c0;p=umlisp.git diff --git a/class-support.lisp b/class-support.lisp index 5de2211..7892abe 100644 --- a/class-support.lisp +++ b/class-support.lisp @@ -7,10 +7,8 @@ ;;;; Author: Kevin M. Rosenberg ;;;; Created: Apr 2000 ;;;; -;;;; $Id$ -;;;; ;;;; This file, part of UMLisp, is -;;;; Copyright (c) 2000-2006 by Kevin M. Rosenberg, M.D. +;;;; Copyright (c) 2000-2010 by Kevin M. Rosenberg, M.D. ;;;; ;;;; UMLisp users are granted the rights to distribute and use this software ;;;; as governed by the terms of the GNU General Public License. @@ -26,10 +24,14 @@ (when *has-fixnum-class* (defmethod fmt-cui ((c fixnum)) - (prefixed-fixnum-string c #\C 7))) + (if (>= c 10000000) + (prefixed-fixnum-string c #\C 8) + (prefixed-fixnum-string c #\C 7)))) (defmethod fmt-cui ((c integer)) - (prefixed-integer-string c #\C 7)) + (if (>= c 10000000) + (prefixed-fixnum-string c #\C 8) + (prefixed-fixnum-string c #\C 7))) (defmethod fmt-cui ((c string)) (if (eql (aref c 0) #\C) @@ -45,10 +47,14 @@ (when *has-fixnum-class* (defmethod fmt-lui ((l fixnum)) - (prefixed-fixnum-string l #\L 7))) + (if (>= l 10000000) + (prefixed-fixnum-string l #\L 8) + (prefixed-fixnum-string l #\L 7)))) (defmethod fmt-lui ((l integer)) - (prefixed-integer-string l #\L 7)) + (if (>= l 10000000) + (prefixed-fixnum-string l #\L 8) + (prefixed-fixnum-string l #\L 7))) (defmethod fmt-lui ((l string)) (if (eql (aref l 0) #\L) @@ -61,10 +67,14 @@ (when *has-fixnum-class* (defmethod fmt-sui ((s fixnum)) - (prefixed-fixnum-string s #\S 7))) - + (if (>= s 10000000) + (prefixed-fixnum-string s #\S 8) + (prefixed-fixnum-string s #\S 7)))) + (defmethod fmt-sui ((s integer)) - (prefixed-integer-string s #\S 7)) + (if (>= s 10000000) + (prefixed-fixnum-string s #\S 8) + (prefixed-fixnum-string s #\S 7))) (defmethod fmt-sui ((s string)) (if (eql (aref s 0) #\S)