What is the calling convention of the compare function in qsort?
2007/8/28, Alex Ionescu <ionucu(a)videotron.ca>ca>:
O rly?
_CRTIMP void __cdecl qsort(__inout_bcount(_NumOfElements *
_SizeOfElements) void * _Base,
On 8/27/07, hpoussin(a)svn.reactos.org <hpoussin(a)svn.reactos.org > wrote:
Author: hpoussin
Date: Mon Aug 27 19:26:39 2007
New Revision: 28603
URL:
http://svn.reactos.org/svn/reactos?rev=28603&view=rev
Log:
qsort() prototype in stdlib.h doesn't specify that callback function must
be
__cdecl
Modified:
trunk/reactos/lib/rtl/bitmap.c
Modified: trunk/reactos/lib/rtl/bitmap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/bitmap.c?rev=28603…
==============================================================================
> --- trunk/reactos/lib/rtl/bitmap.c (original)
> +++ trunk/reactos/lib/rtl/bitmap.c Mon Aug 27 19:26:39 2007
> @@ -36,7 +36,6 @@
> static
> int
> -__cdecl
> NTDLL_RunSortFn(const void *lhs,
> const void *rhs)
> {
--
Best regards,
Alex Ionescu
_______________________________________________
Ros-dev mailing list
Ros-dev(a)reactos.org
http://www.reactos.org/mailman/listinfo/ros-dev
--
Fan Decheng (AKA Robbie Mosaic)
Given enough eyeballs, all bugs are shallow. -- Eric S. Raymond
GPL is less free in some aspects. -- Bram Moolenaar