From 487f09bb9dc0b355deb2e6aa4fef64e9318fb04d Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Mon, 30 Nov 2009 13:58:28 +0100 Subject: [PATCH] dwarflint: Drop some crud --- src/dwarflint/where.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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; } -- 2.47.3