swayfx/sway
robotanarchy c3e9ee5e43 replace non-standard qsort_r with qsort
I've tried to make as few changes, as possible.

Usually the reason for using qsort_r is, that you can pass an extra userdata pointer to the
compare function. However, in sway list_sort wrapped qsort_r and always called a wrapper
function for comparing, the wrapper function then had the real compare function as argument.
The only thing, that the wrapper function does, is dereferencing the 'left' and 'right' function
arguments before passing them to the real compare function.

I have renamed list_sort to list_qsort to avoid confusion (so nobody tries to use list_qsort like
list_sort) and removed the wrapper functionality. Now the dereferencing must be done in the
compare function, that gets passed.

Some compare functions were used in both list_sort and list_seq_find. To make the difference
clear, I've added a '_qsort' suffix to the compare functions, that are intended to be used with
the new list_qsort. (In other words: list_qsort is not compatible anymore with list_seq_find).

- Changed and renamed function (it isn't used anywhere but in commands.c, and only for sorting):
	compare_set -> compare_set_qsort
- New wrapper functions:
	sway_binding_cmp_qsort (for sway_binding_cmp)
	sway_mouse_binding_cmp_qsort (for sway_mouse_binding_cmp)
2015-12-22 00:38:18 +01:00
..
CMakeLists.txt Move sway/util.c to common/util.c 2015-12-14 17:17:06 +01:00
commands.c replace non-standard qsort_r with qsort 2015-12-22 00:38:18 +01:00
config.c replace non-standard qsort_r with qsort 2015-12-22 00:38:18 +01:00
container.c container: Fix inner gaps against screen edge. 2015-12-20 21:23:20 +01:00
criteria.c criteria: Code formatting. 2015-11-25 14:59:07 +01:00
debug_log.c remove unused execinfo.h include from debug_log.c 2015-12-21 18:57:26 +01:00
extensions.c extensions: Track panels by wl_resource, position per panel. 2015-12-20 12:54:34 +01:00
focus.c focus: Fix moving last workspace. 2015-12-18 13:23:49 +01:00
handlers.c extensions: Track panels by wl_resource, position per panel. 2015-12-20 12:54:34 +01:00
input_state.c Lookup dragging key when in dragging mode 2015-12-14 22:44:50 +01:00
ipc-server.c Implement bar option: separator_symbol 2015-12-16 13:01:11 +01:00
layout.c layout: Fix edge_gaps off with top/left panels. 2015-12-20 21:23:20 +01:00
main.c Detect proprietary AMD drivers too 2015-12-14 18:13:44 +02:00
output.c output: Support multiple adjacent outputs. 2015-11-16 21:32:18 +01:00
resize.c return after disconnect ipc client and minor checks 2015-09-29 07:19:10 -07:00
sway.1.txt move manpages to subfolders 2015-12-02 12:49:01 +02:00
sway.5.txt Add floating_modifier extension to manpage 2015-12-11 18:04:27 +01:00
workspace.c Fix default workspace name generation 2015-12-18 18:52:51 -05:00