From 6b515c0cb39670b28a1ee8f98355aecca71dfbf7 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 14 Feb 2009 04:55:44 -0400 Subject: Added #if 0'd stub code from 2.x's option.cc --- src/report.h | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/src/report.h b/src/report.h index d4e592b8..ccc0e231 100644 --- a/src/report.h +++ b/src/report.h @@ -217,7 +217,12 @@ public: expr = args[0].to_string(); }); - OPTION(report_t, amount_data); // -j + OPTION_(report_t, amount_data, DO() { +#if 0 + format_string = session.plot_amount_format; +#endif + }); // -j + OPTION(report_t, anon); OPTION(report_t, ansi); OPTION(report_t, ansi_invert); @@ -431,9 +436,27 @@ public: expr = args[0].to_string(); }); - OPTION(report_t, total_data); // -J + OPTION_(report_t, total_data, DO() { +#if 0 + format_string = session.plot_total_format; +#endif + }); // -J + OPTION(report_t, totals); - OPTION(report_t, truncate_); + + OPTION_(report_t, truncate_, DO_(args) { +#if 0 + std::string style(optarg); + if (style == "leading") + format_t::elision_style = format_t::TRUNCATE_LEADING; + else if (style == "middle") + format_t::elision_style = format_t::TRUNCATE_MIDDLE; + else if (style == "trailing") + format_t::elision_style = format_t::TRUNCATE_TRAILING; + else if (style == "abbrev") + format_t::elision_style = format_t::ABBREVIATE; +#endif + }); OPTION_(report_t, unbudgeted, DO() { parent->budget_flags = BUDGET_UNBUDGETED; -- cgit v1.2.3