* read.scm (-cgen): Add trailing "/" to arch-path.
* utils.scm (dirname): Removed. dirname is a primitive function.
+2006-05-10 Dave Brolley <brolley@redhat.com>
+
+ * read.scm (-cgen): Add trailing "/" to arch-path.
+ * utils.scm (dirname): Removed. dirname is a primitive function.
+
2006-05-09 Dave Brolley <brolley@redhat.com>
* utils-sim.scm (-gen-decode-insn-entry): Generated code should shift
(else
(cond ((str=? "-a" (car opt))
(set! arch-file arg)
- (set! arch-path (dirname arg))
+ (set! arch-path (string-append (dirname arg) "/"))
)
((str=? "-b" (car opt))
(set! debugging #t)
(->string str))
)
-; Return the directory name of the given file name
-
-(define (dirname s)
- (let loop ((i (string-length s)))
- (cond ((= i 0) "")
- ((char=? #\/ (string-ref s (- i 1))) (substring s 0 i))
- (else (loop (- i 1)))))
-)
-
; Turn STR into lowercase.
(define (string-downcase str)