[ros-dev] [ros-diffs] [hpoussin] 28603: qsort() prototype in stdlib.h doesn't specify that callback function must be __cdecl
Fan Decheng
fandecheng at gmail.com
Wed Aug 29 07:04:25 CEST 2007
What is the calling convention of the compare function in qsort?
2007/8/28, Alex Ionescu <ionucu at videotron.ca>:
> O rly?
>
> _CRTIMP void __cdecl qsort(__inout_bcount(_NumOfElements *
> _SizeOfElements) void * _Base,
>
>
> On 8/27/07, hpoussin at svn.reactos.org <hpoussin at 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&r1=28602&r2=28603&view=diff
> >
> ==============================================================================
> > --- 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 at 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
More information about the Ros-dev
mailing list