X-Git-Url: http://git.kpe.io/?p=umlisp.git;a=blobdiff_plain;f=class-support.lisp;h=7892abed792da14ea9dfcb75bcccce4e51593dbf;hp=5de221198d17be93ccdf74e51607b4ad5861ee66;hb=8dc001f5e7cf851c06006e489473a85611d348be;hpb=bfdadbcc62f9b2f4e6d5bdb96683b5aa1187e0a1 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)