aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-18 12:30:04 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-18 12:30:04 +0800
commit4e2fd00791c2909ca37e89b2ed3b7a4b6f691082 (patch)
tree1daec899fde653d7eb4aab76d91324175375f213
parentdf4a3a97a6ab7041c4605520eea3fcec83231260 (diff)
fflush in display
-rw-r--r--Makefile2
-rw-r--r--builtin.cpp1
-rw-r--r--types.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2558d7b..1d2a677 100644
--- a/Makefile
+++ b/Makefile
@@ -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;
}
diff --git a/types.h b/types.h
index ba593ac..327288d 100644
--- a/types.h
+++ b/types.h
@@ -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 */