diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-23 20:07:00 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-23 20:07:00 +0200 |
commit | 08c066cac2efdfcf569e47609e9e1b0a947ce129 (patch) | |
tree | 496864a7aee5d95779a777908d66c65355df58d8 /src/xine-utils/sorted_array.h | |
parent | 046552bc9db04ec6296fb8054b5d44270b0b9b0e (diff) | |
download | xine-lib-08c066cac2efdfcf569e47609e9e1b0a947ce129.tar.gz xine-lib-08c066cac2efdfcf569e47609e9e1b0a947ce129.tar.bz2 |
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.
Diffstat (limited to 'src/xine-utils/sorted_array.h')
-rw-r--r-- | src/xine-utils/sorted_array.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xine-utils/sorted_array.h b/src/xine-utils/sorted_array.h index a1894eca3..c6fdd1c25 100644 --- a/src/xine-utils/sorted_array.h +++ b/src/xine-utils/sorted_array.h @@ -63,7 +63,7 @@ typedef struct xine_sarray_s xine_sarray_t; typedef int (*xine_sarray_comparator_t)(void*, void*); /* Constructor */ -xine_sarray_t *xine_sarray_new(size_t initial_size, xine_sarray_comparator_t comparator) XINE_PROTECTED; +xine_sarray_t *xine_sarray_new(size_t initial_size, xine_sarray_comparator_t comparator) XINE_MALLOC XINE_PROTECTED; /* Destructor */ void xine_sarray_delete(xine_sarray_t *sarray) XINE_PROTECTED; |