;;;; Author: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
-;;;; $Id: class-support.lisp,v 1.6 2003/05/14 21:33:02 kevin Exp $
+;;;; $Id: class-support.lisp,v 1.8 2003/05/15 05:16:44 kevin Exp $
;;;;
;;;; This file, part of UMLisp, is
;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
(fmt-cui (cui c)))
(defmethod fmt-cui ((c fixnum))
- (prefixed-fixnum-string c #\C 8))
+ (prefixed-fixnum-string c #\C 7))
(defmethod fmt-cui ((c string))
(if (eql (aref c 0) #\C)
(fmt-lui (lui l)))
(defmethod fmt-lui ((l fixnum))
- (prefixed-fixnum-string l #\L 8))
+ (prefixed-fixnum-string l #\L 7))
(defmethod fmt-lui ((l string))
(if (eql (aref l 0) #\L)
(fmt-sui (sui s)))
(defmethod fmt-sui ((s fixnum))
- (prefixed-fixnum-string s #\S 8))
+ (prefixed-fixnum-string s #\S 7))
(defmethod fmt-sui ((s string))
(if (eql (aref s 0) #\S)
s
(fmt-sui (parse-integer s))))
-(defgeneric fmt-tui (t))
-(defmethod fmt-tui ((t fixnum))
- (prefixed-fixnum-string t #\T 4))
+(defgeneric fmt-tui (tui))
+(defmethod fmt-tui ((tui fixnum))
+ (prefixed-fixnum-string tui #\T 3))
-(defmethod fmt-tui ((s string))
- (if (eql (aref s 0) #\T)
- s
- (fmt-tui (parse-integer s))))
+(defmethod fmt-tui ((tui string))
+ (if (eql (aref tui 0) #\T)
+ tui
+ (fmt-tui (parse-integer tui))))
(defgeneric fmt-eui (e))
(defmethod fmt-eui ((e fixnum))
- (prefixed-fixnum-string e #\E 8))
+ (prefixed-fixnum-string e #\E 7))
(defmethod fmt-eui ((e string))
(if (eql (aref e 0) #\E)