disable StringStream for JS (needs copyMem)
This commit is contained in:
parent
9604444d09
commit
0d45c17388
2 changed files with 60 additions and 60 deletions
|
|
@ -336,7 +336,7 @@ proc readLine(f: File, line: var StaticStr): bool =
|
|||
if c == 10'i32: break # LF
|
||||
if c == 13'i32: # CR
|
||||
c = c_fgetc(f) # is the next char LF?
|
||||
if c != 10'i32: ungetc(c, f) # no, put the character back
|
||||
if c != 10'i32: discard c_ungetc(c, f) # no, put the character back
|
||||
break
|
||||
add line, chr(int(c))
|
||||
result = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue