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/libmad/timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libmad/timer.c') diff --git a/src/libmad/timer.c b/src/libmad/timer.c index 47dbfca41..69a2efb40 100755 --- a/src/libmad/timer.c +++ b/src/libmad/timer.c @@ -16,7 +16,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: timer.c,v 1.4 2003/02/28 02:51:50 storri Exp $ + * $Id: timer.c,v 1.5 2003/12/07 15:34:30 f1rmb Exp $ */ # ifdef HAVE_CONFIG_H @@ -123,7 +123,7 @@ void reduce_rational(unsigned long *numer, unsigned long *denom) factor = gcd(*numer, *denom); - XINE_ASSERT(factor != 0, "value 'factor' is equal to 0. This will result in a divide by zero error."); + _x_assert(factor != 0); *numer /= factor; *denom /= factor; @@ -140,7 +140,7 @@ unsigned long scale_rational(unsigned long numer, unsigned long denom, reduce_rational(&numer, &denom); reduce_rational(&scale, &denom); - XINE_ASSERT(denom != 0, "value 'denom' is 0. This will result in a divide by zero error"); + _x_assert(denom != 0); if (denom < scale) return numer * (scale / denom) + numer * (scale % denom) / denom; -- cgit v1.2.3