From: Petr Machata Date: Mon, 30 Nov 2009 12:58:28 +0000 (+0100) Subject: dwarflint: Drop some crud X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=487f09bb9dc0b355deb2e6aa4fef64e9318fb04d;p=thirdparty%2Felfutils.git dwarflint: Drop some crud --- diff --git a/src/dwarflint/where.h b/src/dwarflint/where.h index 5155cae7d..f8fd6c136 100644 --- a/src/dwarflint/where.h +++ b/src/dwarflint/where.h @@ -5,12 +5,9 @@ #include #ifdef __cplusplus -# define IF_CPLUSPLUS(X) X #include extern "C" { -#else -# define IF_CPLUSPLUS(X) /*X*/ #endif #define DEBUGINFO_SECTIONS \ @@ -73,7 +70,7 @@ extern "C" (uint64_t)-1, (uint64_t)-1, (uint64_t)-1, \ NULL, NEXT}) - extern const char *where_fmt (const struct where *wh, char *ptr IF_CPLUSPLUS (= NULL)); + extern const char *where_fmt (const struct where *wh, char *ptr); extern void where_fmt_chain (const struct where *wh, const char *severity); extern void where_reset_1 (struct where *wh, uint64_t addr); extern void where_reset_2 (struct where *wh, uint64_t addr); @@ -84,16 +81,10 @@ extern "C" #include -inline const char * -where_fmt (where const &wh) -{ - return where_fmt (&wh); -} - inline std::ostream & operator << (std::ostream &os, where const &wh) { - os << where_fmt (wh); + os << where_fmt (&wh, NULL); return os; }