Skip to content

Commit

Permalink
FIX: forcing DELINE to convert CRLF to LF in header file emitter scri…
Browse files Browse the repository at this point in the history
…pts to be compatible with previous changes where READ does not do that now.
  • Loading branch information
Oldes committed Jan 16, 2019
1 parent d08f835 commit 7700920
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/tools/make-os-ext.r
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func-header: [
process: func [file] [
if verbose [?? file]
data: read the-file: file
data: to-string data ; R3
data: deline to-string data ; R3
parse/all data [
any func-header
]
Expand Down
4 changes: 2 additions & 2 deletions src/tools/make-reb-lib.r
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ func-header: [
]

write-if: func [file data] [
if data <> attempt [to string! read file][ ;R3
if data <> attempt [deline to string! read file][ ;R3
print ["UPDATE:" file]
write file data
]
]

process: func [file] [
if verbose [?? file]
data: to string! read the-file: file ;R3
data: deline to string! read the-file: file ;R3
parse/all data [
any func-header
]
Expand Down

0 comments on commit 7700920

Please sign in to comment.