[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 73e6bec 1/7: Do not indent top-level preproce
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 73e6bec 1/7: Do not indent top-level preprocessor directives |
Date: |
Thu, 5 Jan 2017 03:41:39 +0000 (UTC) |
branch: master
commit 73e6bec6ba6ffacf54736a482b03b862b0957ca8
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Do not indent top-level preprocessor directives
---
currency_test.cpp | 7 ++-----
expression_template_0_test.cpp | 4 ++--
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/currency_test.cpp b/currency_test.cpp
index 18c7cf6..97a4f17 100644
--- a/currency_test.cpp
+++ b/currency_test.cpp
@@ -177,9 +177,7 @@ void test_stream_roundtrip
void currency_test::test_streams()
{
- #define TEST_ROUNDTRIP(c, str) \
- test_stream_roundtrip(c, str, __FILE__, __LINE__)
-
+#define TEST_ROUNDTRIP(c, str) test_stream_roundtrip(c, str, __FILE__,
__LINE__)
TEST_ROUNDTRIP( currency(123, 45), "123.45");
TEST_ROUNDTRIP( currency( 0, 0), "0.00");
TEST_ROUNDTRIP( currency( 0, 1), "0.01");
@@ -187,8 +185,7 @@ void currency_test::test_streams()
TEST_ROUNDTRIP(-currency(123, 45), "-123.45");
TEST_ROUNDTRIP(-currency( 0, 1), "-0.01");
TEST_ROUNDTRIP(-currency( 0, 99), "-0.99");
-
- #undef TEST_ROUNDTRIP
+#undef TEST_ROUNDTRIP
}
template<>
diff --git a/expression_template_0_test.cpp b/expression_template_0_test.cpp
index fff87f6..41e0f99 100644
--- a/expression_template_0_test.cpp
+++ b/expression_template_0_test.cpp
@@ -111,11 +111,11 @@ struct greater_of
std::valarray<double> va2;
// ub*: boost uBLAS.
- #if defined USE_UBLAS
+#if defined USE_UBLAS
boost::numeric::ublas::vector<double> ub0;
boost::numeric::ublas::vector<double> ub1;
boost::numeric::ublas::vector<double> ub2;
- #endif // defined USE_UBLAS
+#endif // defined USE_UBLAS
// pv*: PETE standard vectors.
std::vector<double> pv0;
- [lmi-commits] [lmi] master updated (4cc9f66 -> 571924b), Greg Chicares, 2017/01/04
- [lmi-commits] [lmi] master ae3dc97 3/7: Test for x87, Greg Chicares, 2017/01/04
- [lmi-commits] [lmi] master 73e6bec 1/7: Do not indent top-level preprocessor directives,
Greg Chicares <=
- [lmi-commits] [lmi] master ea356b1 4/7: Improve documentation, Greg Chicares, 2017/01/04
- [lmi-commits] [lmi] master 13090e1 2/7: Update reserved-name exceptions in coding rules, Greg Chicares, 2017/01/04
- [lmi-commits] [lmi] master 2c16778 5/7: Refactor to make ensuing changes simpler, Greg Chicares, 2017/01/04
- [lmi-commits] [lmi] master 571924b 7/7: Drop support for an ancient non-free compiler, Greg Chicares, 2017/01/04
- [lmi-commits] [lmi] master c07baf8 6/7: Conditionalize x87 code; provide <cfenv> alternatives where possible, Greg Chicares, 2017/01/04