From c8fdff20285b59cd892297317572fbb4c3633f78 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Sun, 7 Dec 2003 15:34:29 +0000 Subject: get rid of XINE_{ASSERT,ABORT} and useless xine_print_trace (useless). Replace XINE_ASSERT by _x_assert, which works exaclty as assert, except that it still warns with NDEBUG defined (but don't abort). Fix missuning of assert(0), which isn't safe, abort is abort, assert is for debugging purpose only, so all assert(0) has been converted to abort() alls. In osd_preload_fonts(): alloc needed memory chunk. Define NDEBUG in CFLAGS, for non DEBUG build only. CVS patchset: 5860 CVS date: 2003/12/07 15:34:29 --- src/xine-utils/utils.c | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'src/xine-utils/utils.c') diff --git a/src/xine-utils/utils.c b/src/xine-utils/utils.c index 3e7ec7f6b..b351ac860 100644 --- a/src/xine-utils/utils.c +++ b/src/xine-utils/utils.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: utils.c,v 1.21 2003/12/06 16:10:01 miguelfreitas Exp $ + * $Id: utils.c,v 1.22 2003/12/07 15:34:31 f1rmb Exp $ * */ #define _POSIX_PTHREAD_SEMANTICS 1 /* for 5-arg getpwuid_r on solaris */ @@ -142,32 +142,6 @@ void xine_usec_sleep(unsigned usec) { #endif } - -/* Obtain a backtrace and print it to stdout. */ -void xine_print_trace (void) { -#if HAVE_BACKTRACE - /* Code Taken from GNU C Library manual */ - void *array[10]; - size_t size; - char **strings; - size_t i; - - size = backtrace (array, 10); - strings = backtrace_symbols (array, size); - - printf ("Obtained %lu stack frames.\n", (unsigned long) size); - - for (i = 0; i < size; i++) { - printf ("%s\n", strings[i]); - } - free (strings); -#elif HAVE_PRINTSTACK - printstack(STDOUT_FILENO); -#else - printf("stack backtrace not available.\n"); -#endif -} - /* print a hexdump of length bytes from the data given in buf */ void xine_hexdump (const char *buf, int length) { int i,j; -- cgit v1.2.3