diff options
author | Teddy <ted.sybil@gmail.com> | 2013-08-18 12:30:04 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2013-08-18 12:30:04 +0800 |
commit | 4e2fd00791c2909ca37e89b2ed3b7a4b6f691082 (patch) | |
tree | 1daec899fde653d7eb4aab76d91324175375f213 | |
parent | df4a3a97a6ab7041c4605520eea3fcec83231260 (diff) |
fflush in display
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | builtin.cpp | 1 | ||||
-rw-r--r-- | types.h | 1 |
3 files changed, 3 insertions, 1 deletions
@@ -25,7 +25,7 @@ $(BUILD_DIR): mkdir -p $(BUILD_DIR) $(BUILD_DIR)/%.o : %.cpp - $(CXX) -o $@ -c $< -Wall + $(CXX) -o $@ -c $< -Wall clean: rm -rf $(BUILD_DIR) diff --git a/builtin.cpp b/builtin.cpp index 1061478..5e7bc4a 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -1600,5 +1600,6 @@ BUILTIN_PROC_DEF(set_gc_resolve_threshold) { BUILTIN_PROC_DEF(display) { ARGS_EXACTLY_ONE; printf("%s", args->car->ext_repr().c_str()); + fflush(stdout); return unspec_obj; } @@ -74,6 +74,7 @@ class ReprCons {/*{{{*/ string repr; /** The constructor */ ReprCons(bool prim, EvalObj *ori = NULL); + ~ReprCons() {} /** This function is called to get the next component in a complex * EvalObj * @param prev Feed the string form of the previous component */ |