Changed source-location->string and ->prefix to use

path->relative-string/library to produce collection and planet-relative source
names.
This commit is contained in:
Carl Eastlund 2011-07-08 01:22:26 -04:00
parent b3136095ea
commit 00a6442712

View File

@ -37,6 +37,9 @@
)
(require
setup/path-to-relative)
(define (source-location? x)
(process-source-location x good? bad? 'source-location?))
@ -163,7 +166,9 @@
(define ((good-string default) x src line col pos span)
(format "~a~a"
(or src default)
(cond
[(path-string? src) (path->relative-string/library src)]
[else (or src default)])
(if line
(if col
(format ":~a.~a" line col)