1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 08:20:27 +00:00

minor readability change

As suggested by @sogaiu

@zevv forget to push this change in a recent PR (https://github.com/janet-lang/janet/pull/1175#issuecomment-1576128152).

Incidentally, the affected lines were already reformatted in the current PR, via fmt/format-file.
This commit is contained in:
primo-ppcg 2023-06-08 23:00:05 +07:00
parent a238391b36
commit 5317edc65d

View File

@ -4189,12 +4189,11 @@
(defn do-one-file (defn do-one-file
[fname] [fname]
(if-not (has-value? boot/args "image-only") (unless (has-value? boot/args "image-only")
(do (print "\n/* " fname " */")
(print "\n/* " fname " */") (print "#line 0 \"" fname "\"\n")
(print "#line 0 \"" fname "\"\n") (def source (slurp fname))
(def source (slurp fname)) (print (string/replace-all "\r" "" source))))
(print (string/replace-all "\r" "" source)))))
(do-one-file feature-header) (do-one-file feature-header)