chiark / gitweb /
src/module-impl.lisp (output-c-excursion): Remove redundant `~&'.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 5 Jan 2016 16:29:45 +0000 (16:29 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 29 May 2016 13:40:40 +0000 (14:40 +0100)
There's no need to have both an explicit call to `fresh-line' and `~&'
on the front of the following `format' string.  The `fresh-line' call is
the right one to leave: otherwise the new line (if any) is started after
we've called `position-aware-stream-line', which will therefore give us
the wrong answer.

src/module-impl.lisp

index 206b5e65a688241ffe77275c4e5eb4e960926057..873e091b62ccf046df741871a936a32e62ea1159 100644 (file)
@@ -171,7 +171,7 @@ (defun output-c-excursion (stream location thunk)
           (funcall thunk)
           (when (typep stream 'position-aware-stream)
             (fresh-line stream)
-            (format stream "~&#line ~D ~S~%"
+            (format stream "#line ~D ~S~%"
                     (1+ (position-aware-stream-line stream))
                     (let ((path (stream-pathname stream)))
                       (if path (namestring path) "<sod-output>")))))