mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge 10.5 into 10.6
This commit is contained in:
@@ -291,17 +291,14 @@ public:
|
||||
delete_dynamic(&array);
|
||||
}
|
||||
|
||||
typedef int (*CMP_FUNC)(const Elem *el1, const Elem *el2);
|
||||
|
||||
void sort(CMP_FUNC cmp_func)
|
||||
void sort(int (*cmp_func)(const void *, const void *))
|
||||
{
|
||||
my_qsort(array.buffer, array.elements, sizeof(Elem), (qsort_cmp)cmp_func);
|
||||
my_qsort(array.buffer, array.elements, sizeof(Elem), cmp_func);
|
||||
}
|
||||
|
||||
typedef int (*CMP_FUNC2)(void *, const Elem *el1, const Elem *el2);
|
||||
void sort(CMP_FUNC2 cmp_func, void *data)
|
||||
void sort(qsort_cmp2 cmp_func, void *data)
|
||||
{
|
||||
my_qsort2(array.buffer, array.elements, sizeof(Elem), (qsort2_cmp)cmp_func, data);
|
||||
my_qsort2(array.buffer, array.elements, sizeof(Elem), cmp_func, data);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user