chiark
/
gitweb
/
~mdw
/
sod
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3ee33e0
)
src/parser/streams-impl.lisp: Use slot accessor rather than `with-slots'.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 7 Aug 2019 16:21:40 +0000
(17:21 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 7 Aug 2019 16:31:23 +0000
(17:31 +0100)
The code is a bit longer, but I think it's more comfortable to read.
src/parser/streams-impl.lisp
patch
|
blob
|
blame
|
history
diff --git
a/src/parser/streams-impl.lisp
b/src/parser/streams-impl.lisp
index f14bf3191785193b6483a2ef3fd4cef065a4853e..b3bb424ff54ec7cbec3b09973b2a8090d94045d9 100644
(file)
--- a/
src/parser/streams-impl.lisp
+++ b/
src/parser/streams-impl.lisp
@@
-224,8
+224,8
@@
(defmethod stream-pathname ((stream position-aware-stream))
present back to a user. Secondly, a name can be attached to a stream
which doesn't actually have a file backing it."
- (
with-slots (file) stream
-
(or file (call-next-method)
)))
+ (
or (position-aware-stream-file stream)
+
(call-next-method
)))
(defmethod file-location ((stream position-aware-stream))
(multiple-value-bind (line column) (stream-line-and-column stream)