(if (eof-object? obj)
'()
(cons obj (loop))))))))
- (directory-read
- (merge-pathnames (->simple-pathname "../../src/runtime/")
- "*.scm")))))
+ (scm-files "../../src/runtime/*.scm"))))
+
+(define (scm-files dirpatt)
+ (remove (lambda (path) (string-prefix? "." (pathname-name path)))
+ (directory-read (->simple-pathname dirpatt))))
(define (make-write-exprs with-output-port)
(named-lambda (write-exprs data)
(if (eof-object? obj)
'()
(cons obj (loop))))))))
- (directory-read "../../src/runtime/*.scm"))))
+ (scm-files "../../src/runtime/*.scm"))))
(define (make-write-lines with-output-port)
(named-lambda (write-lines lines)
(close-input-port port)
value))
-(define-integrable (->file-uri-string pathname)
+(define (->file-uri-string pathname)
(string-append "file://" (->simple-namestring pathname)))
-(define-integrable (->simple-namestring pathname)
+(define (->simple-namestring pathname)
(->namestring (->simple-pathname pathname)))
(define (->simple-pathname pathname)