summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'stream.h')
-rw-r--r--stream.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/stream.h b/stream.h
index 388f9cc4..7a5911e6 100644
--- a/stream.h
+++ b/stream.h
@@ -47,12 +47,12 @@ struct strm_ops {
val (*set_prop)(val, val ind, val);
};
-#define std_input (*lookup_var_l(nil, stdin_s))
-#define std_output (*lookup_var_l(nil, stdout_s))
-#define std_debug (*lookup_var_l(nil, stddebug_s))
-#define std_error (*lookup_var_l(nil, stderr_s))
-#define std_null (*lookup_var_l(nil, stdnull_s))
-val *lookup_var_l(val env, val sym);
+#define std_input (deref(lookup_var_l(nil, stdin_s)))
+#define std_output (deref(lookup_var_l(nil, stdout_s)))
+#define std_debug (deref(lookup_var_l(nil, stddebug_s)))
+#define std_error (deref(lookup_var_l(nil, stderr_s)))
+#define std_null (deref(lookup_var_l(nil, stdnull_s)))
+loc lookup_var_l(val env, val sym);
extern val output_produced;