C++: Untabify, reindent, delete trailing whitespace

This commit is contained in:
Petri Lehtinen 2010-02-02 20:59:23 +02:00
parent 5b1a666cf1
commit 2b43e7dbda
3 changed files with 793 additions and 790 deletions

View File

@ -4,7 +4,7 @@
// it under the terms of the MIT license. See LICENSE for details. // it under the terms of the MIT license. See LICENSE for details.
#if !defined(IN_JANSSON_HPP) #if !defined(IN_JANSSON_HPP)
# error "jansson-impl.hpp may only by included from jansson.hpp" #error "jansson-impl.hpp may only by included from jansson.hpp"
#endif #endif
namespace json { namespace json {

View File

@ -14,7 +14,7 @@
namespace json { namespace json {
// include Jansson C library into the json namespace // include Jansson C library into the json namespace
#include <jansson.h> # include <jansson.h>
class Iterator; class Iterator;
class Value; class Value;

View File

@ -8,9 +8,12 @@
do { \ do { \
if(!((lhs) op (rhs))) { \ if(!((lhs) op (rhs))) { \
std::cerr << std::boolalpha; \ std::cerr << std::boolalpha; \
std::cerr << __FILE__ << '[' << __LINE__ << "]: ERROR: " << (m) << std::endl; \ std::cerr << __FILE__ << '[' << __LINE__ << "]: ERROR: " \
std::cerr << "\ttest: " << #lhs << ' ' << #op << ' ' << #rhs << std::endl; \ << (m) << std::endl; \
std::cerr << "\tresult: " << (lhs) << ' ' << #op << ' ' << (rhs) << std::endl; \ std::cerr << "\ttest: " << #lhs << ' ' << #op << ' ' \
<< #rhs << std::endl; \
std::cerr << "\tresult: " << (lhs) << ' ' << #op << ' ' \
<< (rhs) << std::endl; \
return 1; \ return 1; \
} \ } \
} while(0) } while(0)