Whitespace cleanup
This commit is contained in:
parent
a3e946f90f
commit
a24910b374
11 changed files with 17 additions and 17 deletions
|
|
@ -152,7 +152,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
-Wno-unused-parameter
|
-Wno-unused-parameter
|
||||||
-Wno-c++98-compat
|
-Wno-c++98-compat
|
||||||
-fno-limit-debug-info)
|
-fno-limit-debug-info)
|
||||||
|
|
||||||
macro(ADD_PCH_RULE _header_filename _src_list _other_srcs)
|
macro(ADD_PCH_RULE _header_filename _src_list _other_srcs)
|
||||||
set(_pch_filename "${_header_filename}.pch")
|
set(_pch_filename "${_header_filename}.pch")
|
||||||
|
|
||||||
|
|
@ -188,7 +188,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
COMMAND ${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1} ${_args}
|
COMMAND ${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1} ${_args}
|
||||||
DEPENDS ${_header_filename})
|
DEPENDS ${_header_filename})
|
||||||
endmacro(ADD_PCH_RULE _header_filename _src_list _other_srcs)
|
endmacro(ADD_PCH_RULE _header_filename _src_list _other_srcs)
|
||||||
|
|
||||||
elseif(CMAKE_CXX_COMPILER MATCHES "g\\+\\+")
|
elseif(CMAKE_CXX_COMPILER MATCHES "g\\+\\+")
|
||||||
set(GXX_WARNING_FLAGS
|
set(GXX_WARNING_FLAGS
|
||||||
-pedantic
|
-pedantic
|
||||||
|
|
@ -210,7 +210,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
-Wno-strict-aliasing)
|
-Wno-strict-aliasing)
|
||||||
|
|
||||||
add_definitions(${GXX_WARNING_FLAGS})
|
add_definitions(${GXX_WARNING_FLAGS})
|
||||||
|
|
||||||
macro(ADD_PCH_RULE _header_filename _src_list _other_srcs)
|
macro(ADD_PCH_RULE _header_filename _src_list _other_srcs)
|
||||||
set(_gch_filename "${_header_filename}.gch")
|
set(_gch_filename "${_header_filename}.gch")
|
||||||
|
|
||||||
|
|
@ -247,7 +247,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
COMMAND ${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1} ${_args}
|
COMMAND ${CMAKE_CXX_COMPILER} ${CMAKE_CXX_COMPILER_ARG1} ${_args}
|
||||||
DEPENDS ${_header_filename})
|
DEPENDS ${_header_filename})
|
||||||
endmacro(ADD_PCH_RULE _header_filename _src_list _other_srcs)
|
endmacro(ADD_PCH_RULE _header_filename _src_list _other_srcs)
|
||||||
|
|
||||||
else()
|
else()
|
||||||
macro(ADD_PCH_RULE _header_filename _src_list _other_srcs)
|
macro(ADD_PCH_RULE _header_filename _src_list _other_srcs)
|
||||||
endmacro(ADD_PCH_RULE _header_filename _src_list _other_srcs)
|
endmacro(ADD_PCH_RULE _header_filename _src_list _other_srcs)
|
||||||
|
|
|
||||||
|
|
@ -448,7 +448,7 @@ void collapse_posts::report_subtotal()
|
||||||
DEBUG("filters.collapse", "Pseudo-xact date = " << *xact._date);
|
DEBUG("filters.collapse", "Pseudo-xact date = " << *xact._date);
|
||||||
DEBUG("filters.collapse", "earliest date = " << earliest_date);
|
DEBUG("filters.collapse", "earliest date = " << earliest_date);
|
||||||
DEBUG("filters.collapse", "latest date = " << latest_date);
|
DEBUG("filters.collapse", "latest date = " << latest_date);
|
||||||
|
|
||||||
foreach (totals_map::value_type& pat, totals) {
|
foreach (totals_map::value_type& pat, totals) {
|
||||||
handle_value(/* value= */ pat.second,
|
handle_value(/* value= */ pat.second,
|
||||||
/* account= */ &temps.create_account(pat.first),
|
/* account= */ &temps.create_account(pat.first),
|
||||||
|
|
@ -476,10 +476,10 @@ value_t& collapse_posts::find_totals(account_t* account)
|
||||||
|
|
||||||
if(depth==0)
|
if(depth==0)
|
||||||
return totals[_("<Total>")];
|
return totals[_("<Total>")];
|
||||||
|
|
||||||
if(account->depth==depth)
|
if(account->depth==depth)
|
||||||
return totals[account->fullname()];
|
return totals[account->fullname()];
|
||||||
|
|
||||||
//else recurse
|
//else recurse
|
||||||
return find_totals(account->parent);
|
return find_totals(account->parent);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -423,7 +423,7 @@ class collapse_posts : public item_handler<post_t>
|
||||||
{
|
{
|
||||||
|
|
||||||
typedef std::map<string,value_t> totals_map;
|
typedef std::map<string,value_t> totals_map;
|
||||||
|
|
||||||
expr_t& amount_expr;
|
expr_t& amount_expr;
|
||||||
predicate_t display_predicate;
|
predicate_t display_predicate;
|
||||||
predicate_t only_predicate;
|
predicate_t only_predicate;
|
||||||
|
|
|
||||||
|
|
@ -475,7 +475,7 @@ commodity_history_impl_t::find_price(const commodity_t& source,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
vertex_descriptor v = tv;
|
vertex_descriptor v = tv;
|
||||||
for (vertex_descriptor u = predecessorMap[v];
|
for (vertex_descriptor u = predecessorMap[v];
|
||||||
u != v;
|
u != v;
|
||||||
v = u, u = predecessorMap[v])
|
v = u, u = predecessorMap[v])
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -78,8 +78,8 @@ public:
|
||||||
commodity_t * default_commodity;
|
commodity_t * default_commodity;
|
||||||
|
|
||||||
bool keep_base; // --base
|
bool keep_base; // --base
|
||||||
optional<path> price_db; // --price-db=
|
optional<path> price_db; // --price-db=
|
||||||
long quote_leeway; // --leeway=
|
long quote_leeway; // --leeway=
|
||||||
bool get_quotes; // --download
|
bool get_quotes; // --download
|
||||||
|
|
||||||
function<optional<price_point_t>
|
function<optional<price_point_t>
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ public:
|
||||||
if (name != "__main__")
|
if (name != "__main__")
|
||||||
main_module->define_global(name, mod->module_object);
|
main_module->define_global(name, mod->module_object);
|
||||||
return mod;
|
return mod;
|
||||||
}
|
}
|
||||||
|
|
||||||
python_interpreter_t() : session_t(), is_initialized(false) {
|
python_interpreter_t() : session_t(), is_initialized(false) {
|
||||||
TRACE_CTOR(python_interpreter_t, "");
|
TRACE_CTOR(python_interpreter_t, "");
|
||||||
|
|
|
||||||
|
|
@ -396,7 +396,7 @@ value_t select_command(call_scope_t& args)
|
||||||
#if 0
|
#if 0
|
||||||
query_t query;
|
query_t query;
|
||||||
keep_details_t keeper(true, true, true);
|
keep_details_t keeper(true, true, true);
|
||||||
expr_t::ptr_op_t expr =
|
expr_t::ptr_op_t expr =
|
||||||
query.parse_args(string_value(arg).to_sequence(), keeper, false, true);
|
query.parse_args(string_value(arg).to_sequence(), keeper, false, true);
|
||||||
report.HANDLER(limit_).on("#select", query.get_query(query_t::QUERY_LIMIT));
|
report.HANDLER(limit_).on("#select", query.get_query(query_t::QUERY_LIMIT));
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ static char* _strptime(const char *s, const char *format, struct tm *tm) {
|
||||||
if (tm->tm_wday == -1) return NULL;
|
if (tm->tm_wday == -1) return NULL;
|
||||||
s += len;
|
s += len;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// month name.
|
// month name.
|
||||||
case 'b':
|
case 'b':
|
||||||
case 'B':
|
case 'B':
|
||||||
|
|
|
||||||
|
|
@ -435,7 +435,7 @@ public:
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
void in_place_roundto(int places);
|
void in_place_roundto(int places);
|
||||||
|
|
||||||
value_t truncated() const {
|
value_t truncated() const {
|
||||||
value_t temp(*this);
|
value_t temp(*this);
|
||||||
temp.in_place_truncate();
|
temp.in_place_truncate();
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,7 @@ public:
|
||||||
optional<string> note() const {
|
optional<string> note() const {
|
||||||
return ptr()->note;
|
return ptr()->note;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool has_tag(const string& tag) const {
|
bool has_tag(const string& tag) const {
|
||||||
return ptr()->has_tag(tag);
|
return ptr()->has_tag(tag);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -195,7 +195,7 @@ int mk_wcwidth(boost::uint32_t ucs)
|
||||||
|
|
||||||
/* if we arrive here, ucs is not a combining or C0/C1 control character */
|
/* if we arrive here, ucs is not a combining or C0/C1 control character */
|
||||||
|
|
||||||
return 1 +
|
return 1 +
|
||||||
(ucs >= 0x1100 &&
|
(ucs >= 0x1100 &&
|
||||||
(ucs <= 0x115f || /* Hangul Jamo init. consonants */
|
(ucs <= 0x115f || /* Hangul Jamo init. consonants */
|
||||||
ucs == 0x2329 || ucs == 0x232a ||
|
ucs == 0x2329 || ucs == 0x232a ||
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue