Removed mooutils-debug.h, those backtraces are worth nothing

master
Yevgen Muntyan 2007-07-16 15:23:19 -05:00
parent 92d9fcd2ee
commit b8418163b1
6 changed files with 0 additions and 59 deletions

View File

@ -20,7 +20,6 @@
#include "moopython/moopython-loader.h" #include "moopython/moopython-loader.h"
#include "mooutils/mooutils-misc.h" #include "mooutils/mooutils-misc.h"
#include "mooutils/mooutils-debug.h"
#define LIBDIR "lib" #define LIBDIR "lib"

View File

@ -111,7 +111,6 @@ mooutils_sources = \
mootype-macros.h \ mootype-macros.h \
moouixml.c \ moouixml.c \
mooundo.c \ mooundo.c \
mooutils-debug.h \
mooutils-fs.c \ mooutils-fs.c \
mooutils-gobject-private.h \ mooutils-gobject-private.h \
mooutils-gobject.c \ mooutils-gobject.c \

View File

@ -14,7 +14,6 @@
#include "mooutils/moomarkup.h" #include "mooutils/moomarkup.h"
#include "mooutils/mooutils-fs.h" #include "mooutils/mooutils-fs.h"
#include "mooutils/mooutils-gobject.h" #include "mooutils/mooutils-gobject.h"
#include "mooutils/mooutils-debug.h"
#include "mooutils/mooutils-misc.h" #include "mooutils/mooutils-misc.h"
#include <string.h> #include <string.h>
#include <glib.h> #include <glib.h>

View File

@ -16,7 +16,6 @@
#include "mooutils/moomarkup.h" #include "mooutils/moomarkup.h"
#include "mooutils/mooutils-fs.h" #include "mooutils/mooutils-fs.h"
#include "mooutils/mooutils-gobject.h" #include "mooutils/mooutils-gobject.h"
#include "mooutils/mooutils-debug.h"
#include "mooutils/mootype-macros.h" #include "mooutils/mootype-macros.h"
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>

View File

@ -1,54 +0,0 @@
/*
* mooutils-debug.h
*
* Copyright (C) 2004-2007 by Yevgen Muntyan <muntyan@math.tamu.edu>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* See COPYING file that comes with this distribution.
*/
#ifndef MOO_UTILS_DEBUG_H
#define MOO_UTILS_DEBUG_H
#include "config.h"
#include <glib.h>
#include <stdlib.h>
#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
#endif
G_BEGIN_DECLS
#if defined(MOO_DEBUG) && defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE)
#ifndef MOO_BACKTRACE_DEPTH
#define MOO_BACKTRACE_DEPTH 10
#endif
#define MOO_BACKTRACE() \
G_STMT_START { \
gpointer buf__[MOO_BACKTRACE_DEPTH]; \
int n_entries__, i__; \
char **symbols__; \
\
n_entries__ = backtrace (buf__, G_N_ELEMENTS (buf__)); \
symbols__ = backtrace_symbols (buf__, n_entries__); \
\
if (symbols__) \
for (i__ = 0; i__ < n_entries__; ++i__) \
g_message ("%s", symbols__[i__]); \
\
free (symbols__); \
} G_STMT_END
#else
#define MOO_BACKTRACE()
#endif
G_END_DECLS
#endif /* MOO_UTILS_DEBUG_H */

View File

@ -14,7 +14,6 @@
#include "mooutils/mooutils-treeview.h" #include "mooutils/mooutils-treeview.h"
#include "mooutils/mooutils-gobject.h" #include "mooutils/mooutils-gobject.h"
#include "mooutils/moomarshals.h" #include "mooutils/moomarshals.h"
#include "mooutils/mooutils-debug.h"
#include <string.h> #include <string.h>
#include <gobject/gvaluecollector.h> #include <gobject/gvaluecollector.h>