From 08c066cac2efdfcf569e47609e9e1b0a947ce129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 23 May 2008 20:07:00 +0200 Subject: Mark initialisation functions with malloc attribute. All the initialisation functions returning a new object instance that was allocated through malloc() or calloc() can get the malloc attribute so that the compiler can optimise their call. --- src/post/audio/stretch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/post') diff --git a/src/post/audio/stretch.c b/src/post/audio/stretch.c index 8be58d8c5..6930fea3d 100644 --- a/src/post/audio/stretch.c +++ b/src/post/audio/stretch.c @@ -152,7 +152,7 @@ static void stretchscr_exit (scr_plugin_t *scr) { free(this); } -static stretchscr_t* stretchscr_init (double *stretch_factor) { +static stretchscr_t *XINE_MALLOC stretchscr_init (double *stretch_factor) { stretchscr_t *this; this = calloc(1, sizeof(stretchscr_t)); -- cgit v1.2.3 From 37f4983b76f90efb4e5715f3eca693daf668310a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 23 May 2008 23:43:00 +0200 Subject: Remove MIN/MAX macro definitions on unit. Now that the macro are either imported from the system or defined by configure. don't define them in every source file. --- src/post/planar/unsharp.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/post') diff --git a/src/post/planar/unsharp.c b/src/post/planar/unsharp.c index e61d80076..da41708d0 100644 --- a/src/post/planar/unsharp.c +++ b/src/post/planar/unsharp.c @@ -26,13 +26,6 @@ #include "xineutils.h" #include -#ifndef MIN -#define MIN(a,b) (((a)<(b))?(a):(b)) -#endif -#ifndef MAX -#define MAX(a,b) (((a)>(b))?(a):(b)) -#endif - /*===========================================================================*/ #define MIN_MATRIX_SIZE 3 -- cgit v1.2.3