Skip to content

Commit

Permalink
Update for Gerbil 0.17.0-302-g113e85bf
Browse files Browse the repository at this point in the history
  • Loading branch information
fare committed Sep 27, 2023
1 parent 7621a09 commit b7aa322
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion logger.ss
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
;; Call a function on each entry in a log file
;; : <- Port (<- (Pair Integer String))
(def (for-each-port-log-entry! port fun)
(def reader (PeekableStringReader (raw-port port)))
(def reader (PeekableStringReader (open-string-reader port)))
(until (string-reader-eof? reader)
(fun (parse-log-entry reader))))

Expand Down
14 changes: 0 additions & 14 deletions source.ss
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,3 @@

;; TODO: experiment with:
;; (parameterize ((current-expander-phi (1+ (current-expander-phi))) (eval-syntax ...))

(import (for-syntax :std/stxutil
:std/misc/path
:std/misc/ports)
:std/sugar)

;; TODO: fix it in std/source
(defsyntax-call (this-source-path ctx relpath)
(alet (dir (stx-source-directory ctx)) (subpath dir relpath)))

(defsyntax-call (this-source-content ctx relpath)
(alet (dir (stx-source-directory ctx))
(alet (path (subpath dir ctx relpath))
(read-file-u8vector path))))
3 changes: 1 addition & 2 deletions t/filesystem-test.ss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

(import
:std/test
(only-in :std/source this-source-file)
(only-in ../source this-source-path)
(only-in :std/source this-source-file this-source-path)
../filesystem)

(def filesystem-test
Expand Down

0 comments on commit b7aa322

Please sign in to comment.