"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libisofs/util_rbtree.c" between
xorriso-1.5.2.tar.gz and xorriso-1.5.4.tar.gz

About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.

util_rbtree.c  (xorriso-1.5.2):util_rbtree.c  (xorriso-1.5.4)
skipping to change at line 280 skipping to change at line 280
/** /**
* Get an array view of the elements of the tree. * Get an array view of the elements of the tree.
* *
* @param include_item * @param include_item
* Function to select which elements to include in the array. It that takes * Function to select which elements to include in the array. It that takes
* a pointer to an element and returns 1 if the element should be included, * a pointer to an element and returns 1 if the element should be included,
* 0 if not. If you want to add all elements to the array, you can pass a * 0 if not. If you want to add all elements to the array, you can pass a
* NULL pointer. * NULL pointer.
* @return * @return
* A sorted array with the contents of the tree, or NULL if there is not * A sorted array with the contents of the tree, or NULL if there is not
* enought memory to allocate the array. You should free(3) the array when * enough memory to allocate the array. You should free(3) the array when
* no more needed. Note that the array is NULL-terminated, and thus it * no more needed. Note that the array is NULL-terminated, and thus it
* has size + 1 length. * has size + 1 length.
*/ */
void ** iso_rbtree_to_array(IsoRBTree *tree, int (*include_item)(void *), void ** iso_rbtree_to_array(IsoRBTree *tree, int (*include_item)(void *),
size_t *size) size_t *size)
{ {
size_t pos; size_t pos;
void **array, **new_array; void **array, **new_array;
array = malloc((tree->size + 1) * sizeof(void*)); array = malloc((tree->size + 1) * sizeof(void*));
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)