runtime: only use CRLF on baremetal systems
We should only do this on baremetal systems, not on Linux, macOS, and Windows. In fact, Windows will convert LF into CRLF in its putchar function.
Этот коммит содержится в:
родитель
73ab44c178
коммит
41bcad9c19
1 изменённых файлов: 3 добавлений и 1 удалений
|
@ -273,7 +273,9 @@ func printspace() {
|
|||
}
|
||||
|
||||
func printnl() {
|
||||
putchar('\r')
|
||||
if baremetal {
|
||||
putchar('\r')
|
||||
}
|
||||
putchar('\n')
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче