implemented write access to s[i] for macros

This commit is contained in:
Araq 2011-06-21 00:47:58 +02:00
commit cfb107f346
4 changed files with 51 additions and 25 deletions

View file

@ -475,9 +475,9 @@ elif not defined(useNimRtl):
result.exitCode = -3 # for ``waitForExit``
if pipe(p_stdin) != 0'i32 or pipe(p_stdout) != 0'i32 or
pipe(p_stderr) != 0'i32:
OSError("failed to create a pipe")
OSError()
var Pid = fork()
if Pid < 0: OSError("failed to fork process")
if Pid < 0: OSError()
if pid == 0:
## child process: