diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-05-18 21:22:32 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-05-18 21:22:32 -0700 |
commit | c3700b0be6c78154e811a3225128efec098efcaf (patch) | |
tree | f16781e33cf92a3a9672ab3035afadd752cd0c17 /stream.c | |
parent | 246887dce1d8d09ec2a5af5f019613ac064e779c (diff) | |
download | txr-c3700b0be6c78154e811a3225128efec098efcaf.tar.gz txr-c3700b0be6c78154e811a3225128efec098efcaf.tar.bz2 txr-c3700b0be6c78154e811a3225128efec098efcaf.zip |
* eval.c (eval_init): Registered open-command and open-process
intrinsics. open-pipe is now deprecated but stays for backward
compatibility as a synonym for open-command.
* stream.c (open_pipe): Renamed to open_command.
(open_pipevp): Renamed to open_process.
* stream.h (open_pipe, open_pipevp): Declarations updated.
* txr.1: Documentation headings updated.
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1515,7 +1515,7 @@ val open_file(val path, val mode_str) return make_stdio_stream(f, path, input, output); } -val open_pipe(val path, val mode_str) +val open_command(val path, val mode_str) { FILE *f = w_popen(c_str(path), c_str(mode_str)); val input = nil, output = nil; @@ -1537,7 +1537,7 @@ val open_pipe(val path, val mode_str) } #if HAVE_FORK_STUFF -val open_pipevp(val name, val mode_str, val args) +val open_process(val name, val mode_str, val args) { int input = equal(mode_str, lit("r")) || equal(mode_str, lit("rb")); int fd[2]; @@ -1658,10 +1658,10 @@ static val win_make_cmdline(val args) return out; } -val open_pipevp(val name, val mode_str, val args) +val open_process(val name, val mode_str, val args) { val win_cmdline = win_make_cmdline(cons(name, args)); - return open_pipe(win_cmdline, mode_str); + return open_command(win_cmdline, mode_str); } #endif |