Staging
v0.5.1
https://github.com/git/git
Revision ba6f0905fdb9e65c1ac5fbc79c9a4ef0b59b3e68 authored by Jonathan Nieder on 19 April 2020, 23:24:14 UTC, committed by Jonathan Nieder on 19 April 2020, 23:24:14 UTC
This merges up the security fix from v2.17.5.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
2 parent s 21a3e50 + df5be6d
Raw File
Tip revision: ba6f0905fdb9e65c1ac5fbc79c9a4ef0b59b3e68 authored by Jonathan Nieder on 19 April 2020, 23:24:14 UTC
Git 2.18.4
Tip revision: ba6f090
mergesort.h
#ifndef MERGESORT_H
#define MERGESORT_H

/*
 * Sort linked list in place.
 * - get_next_fn() returns the next element given an element of a linked list.
 * - set_next_fn() takes two elements A and B, and makes B the "next" element
 *   of A on the list.
 * - compare_fn() takes two elements A and B, and returns negative, 0, positive
 *   as the same sign as "subtracting" B from A.
 */
void *llist_mergesort(void *list,
		      void *(*get_next_fn)(const void *),
		      void (*set_next_fn)(void *, void *),
		      int (*compare_fn)(const void *, const void *));

#endif
back to top