From 72dbc9153036800cefdb5f2970666acc82cdb732 Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 8 Nov 2006 17:51:32 +0000 Subject: 2006-11-08 Frank Ch. Eigler * util.h (lex_cast_qstring): Move def'n here. Also quote \. (stringify, lex_cast, lex_cast_hex): Move defn here. * buildrun.cxx, elaborate.cxx, main.cxx, staptree.cxx: Adapt. --- buildrun.cxx | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) (limited to 'buildrun.cxx') diff --git a/buildrun.cxx b/buildrun.cxx index 969ba352..3673a9b0 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -9,6 +9,7 @@ #include "config.h" #include "buildrun.h" #include "session.h" +#include "util.h" #include #include @@ -28,38 +29,6 @@ extern "C" { using namespace std; -// return as quoted string, with at least '"' backslash-escaped -template inline string -lex_cast_qstring(IN const & in) -{ - stringstream ss; - string out, out2; - if (!(ss << in)) - throw runtime_error("bad lexical cast"); - out = ss.str(); - out2 += '"'; - for (unsigned i=0; i -static string -stringify(T t) -{ - ostringstream s; - s << t; - return s.str (); -} - - - int compile_pass (systemtap_session& s) { -- cgit