diff options
author | René Scharfe <l.s.r@web.de> | 2017-01-22 18:52:13 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-23 11:02:36 -0800 |
commit | 3ca869940994866796edf9e53e52d80f82c3c04c (patch) | |
tree | f142a9dd9059877bc251038bed73f131f89f4733 /Documentation | |
parent | compat: add qsort_s() (diff) | |
download | tgif-3ca869940994866796edf9e53e52d80f82c3c04c.tar.xz |
add QSORT_S
Add the macro QSORT_S, a convenient wrapper for qsort_s() that infers
the size of the array elements and dies on error.
Basically all possible errors are programming mistakes (passing NULL as
base of a non-empty array, passing NULL as comparison function,
out-of-bounds accesses), so terminating the program should be acceptable
for most callers.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions