From: levill_r <levill_r@4aad255d-cdde-0310-9447-f3009e2ae8c0>
* src/function_loader.cc (dyn::function_loader_t::load): Here.
git-svn-id:
https://svn.lrde.epita.fr/svn/oln/trunk@4650
4aad255d-cdde-0310-9447-f3009e2ae8c0
---
dynamic-use-of-static-c++/ChangeLog | 6 ++++++
dynamic-use-of-static-c++/src/function_loader.cc | 8 ++++++++
2 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/dynamic-use-of-static-c++/ChangeLog b/dynamic-use-of-static-c++/ChangeLog
index 0d50eca..532056e 100644
--- a/dynamic-use-of-static-c++/ChangeLog
+++ b/dynamic-use-of-static-c++/ChangeLog
@@ -1,5 +1,11 @@
2009-10-14 Roland Levillain <roland(a)lrde.epita.fr>
+ Disable colored outputs for now.
+
+ * src/function_loader.cc (dyn::function_loader_t::load): Here.
+
+2009-10-14 Roland Levillain <roland(a)lrde.epita.fr>
+
Catch up with the current interface of Ruby's MD5 class.
* src/function_loader.cc (dyn::function_loader_t::load): Here.
diff --git a/dynamic-use-of-static-c++/src/function_loader.cc
b/dynamic-use-of-static-c++/src/function_loader.cc
index 84306c4..ee34f7a 100644
--- a/dynamic-use-of-static-c++/src/function_loader.cc
+++ b/dynamic-use-of-static-c++/src/function_loader.cc
@@ -287,11 +287,19 @@ namespace dyn {
if ( ptr_it != cache.end() )
{
+ // FIXME: Colors should be used only when the terminal supports them.
+#if 0
std::cerr << "\e[36mJIT: \e[32mHIT: \e[0m " << prototype
<< std::endl;
+#endif
+ std::cerr << "JIT: HIT: " << prototype <<
std::endl;
return ptr_it->second;
}
+ // FIXME: Colors should be used only when the terminal supports them.
+#if 0
std::cerr << "\e[36mJIT: \e[31mMISS: compile: \e[0m " <<
prototype << std::endl;
+#endif
+ std::cerr << "JIT: MISS: compile: " << prototype <<
std::endl;
ruby << "compile %q{";
gen_cxx(identifier, name, arguments_types, kind, paths, ruby);
--
1.6.5