Re: [Patch] Call sort() from within a comparison function

2016-02-22 Fir de Conversatie Bram Moolenaar
Jacob Niehus wrote: > Currently, the way sorting works in eval.c (global variables > representing the parameters of the current state) causes undefined > behavior in the event that a comparison function calls sort(). I moved > the parameters into a struct so it can be changed and reverted if > so

[Patch] Call sort() from within a comparison function

2016-02-21 Fir de Conversatie Jacob Niehus
Currently, the way sorting works in eval.c (global variables representing the parameters of the current state) causes undefined behavior in the event that a comparison function calls sort(). I moved the parameters into a struct so it can be changed and reverted if sort() is called while already