Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
remove clojure.tools.reader.impl.utils/make-var dep
Browse files Browse the repository at this point in the history
  • Loading branch information
rksm committed Apr 20, 2015
1 parent 92ebdbd commit 7b50f03
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/rksm/cloxp_source_reader/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@
nil ; prev
0 ; prev-column
file-name ; file-name
(doto (with-local-vars [x nil] x)
(alter-var-root (constantly {:buffer (StringBuilder.)
:offset 0})))))
(let [anon-var (with-local-vars [x nil] x)]
(doto anon-var
(alter-var-root (constantly {:buffer (StringBuilder.)
:offset 0}))))))

(defn name-of-def
[form]
Expand Down Expand Up @@ -202,4 +203,4 @@

(comment
(read-ns-sym "foo\n(ns ^{:doc \"baz\"} bar)")
)
)

0 comments on commit 7b50f03

Please sign in to comment.