~vdupras/duskos

718f9b8674948bb8ba5fed5cb37a70baf8612741 — Virgil Dupras 4 months ago 5404842
sys/rdln: normalize all end of lines to LF
1 files changed, 1 insertions(+), 1 deletions(-)

M fs/sys/rdln.fs
M fs/sys/rdln.fs => fs/sys/rdln.fs +1 -1
@@ 16,7 16,7 @@ in) value in>
  then ;
: rdln
  in( LNSZ SPC fill S"  ok\n" stype
  in( begin key lntype until drop nl> ;
  in( begin key lntype until 1- LF swap c! nl> ;
: rdln<? ( -- c-or-0 )
  in> in) < if in> c@+ swap to in> else 0 then ;
: rdln< ( -- c ) rdln<? ?dup not if