Skip to content

Commit

Permalink
try to fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
lrw04 committed Oct 4, 2024
1 parent ed75af0 commit d520690
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bwog.ss
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,18 @@
#f
(string=? t (substring s (- sl tl) sl))))))

;; chez scheme 9.5 doesn't have this
(if (not (top-level-bound? 'path-build))
(define-top-level-value 'path-build
(let ((sep (directory-separator)))
(lambda (a b)
(cond ((zero? (string-length a)) b)
((zero? (string-length b)) a)
((or (char=? (string-ref a (- (string-length a) 1)) sep)
(char=? (string-ref b 0) sep))
(string-append a b))
(else (string-append a (string sep) b)))))))

;;; dirty lil parser for the markup language
(define read-inline
(lambda (port end)
Expand Down

0 comments on commit d520690

Please sign in to comment.