Implement `bytesIndexOf` foreign function supporting optional start offset for searching byte sequences. Add `serverAcceptBatch` and `serverPendingCount` to net module for batch accepting connections and querying pending queue size. Refactor `stdinFileTimerCallback` to pass read bytes to Wren callback instead of null, with separate handling for EOF. Introduce `coverage_64bit` build config with gcov flags, plus `coverage`, `valgrind`, `clean-coverage`, and `publish` phony targets in Makefile. Fix memory leak in regex by nullifying freed pointers on allocation failure.
14 lines
246 B
JavaScript
Vendored
14 lines
246 B
JavaScript
Vendored
// retoor <retoor@molodetz.nl>
|
|
|
|
import "io" for Stdin
|
|
|
|
System.write("> ")
|
|
System.print("1 %(Stdin.readLine())")
|
|
System.write("> ")
|
|
System.print("2 %(Stdin.readLine())")
|
|
|
|
// stdin: first
|
|
// stdin: second
|
|
// expect: > 1 first
|
|
// expect: > 2 second
|