summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2013-12-06 08:36:12 -0800
committerKaz Kylheku <kaz@kylheku.com>2013-12-06 08:36:12 -0800
commitb26f98511a911537fef73a1925df6d91a7829b6e (patch)
tree9bc8b1f5288e8116ef1b06f43af1830a3d7ce4f9 /stream.c
parent43fa874fd295b2c765cddd14939a60a47e190148 (diff)
downloadtxr-b26f98511a911537fef73a1925df6d91a7829b6e.tar.gz
txr-b26f98511a911537fef73a1925df6d91a7829b6e.tar.bz2
txr-b26f98511a911537fef73a1925df6d91a7829b6e.zip
Fixing some old-style coding that became obsolete
around November 2009. * lib.c (lazy_str): Use the efficient lit("...") that doesn't allocate memory instead of string(L"..."). (lazy_str_get_trailing_list): Likewise. * stream.c (open_process): Likewise. * txr.c (remove_hash_bang_line): Likewise.
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stream.c b/stream.c
index 78c2598e..e4d4fc91 100644
--- a/stream.c
+++ b/stream.c
@@ -1981,10 +1981,10 @@ val open_process(val name, val mode_str, val args)
void stream_init(void)
{
protect(&std_input, &std_output, &std_debug, &std_error, &std_null, (val *) 0);
- std_input = make_stdio_stream(stdin, string(L"stdin"));
- std_output = make_stdio_stream(stdout, string(L"stdout"));
- std_debug = make_stdio_stream(stdout, string(L"debug"));
- std_error = make_stdio_stream(stderr, string(L"stderr"));
+ std_input = make_stdio_stream(stdin, lit("stdin"));
+ std_output = make_stdio_stream(stdout, lit("stdout"));
+ std_debug = make_stdio_stream(stdout, lit("debug"));
+ std_error = make_stdio_stream(stderr, lit("stderr"));
std_null = make_null_stream();
detect_format_string();