mirror of
https://github.com/reactos/reactos.git
synced 2025-05-23 11:04:52 +00:00
Implement EngSort()
svn path=/trunk/; revision=5098
This commit is contained in:
parent
fdfc1cdb67
commit
36f596b459
6 changed files with 48 additions and 8 deletions
|
@ -1248,7 +1248,14 @@ EngSetLastError
|
||||||
EngSetPointerShape
|
EngSetPointerShape
|
||||||
EngSetPointerTag
|
EngSetPointerTag
|
||||||
EngSetPrinterData
|
EngSetPrinterData
|
||||||
EngSort
|
*/
|
||||||
|
|
||||||
|
typedef int CDECL (*SORTCOMP)(const void *Elem1, const void *Elem2);
|
||||||
|
|
||||||
|
void STDCALL
|
||||||
|
EngSort(IN OUT PBYTE Buf, IN ULONG ElemSize, IN ULONG ElemCount, IN SORTCOMP CompFunc);
|
||||||
|
|
||||||
|
/*
|
||||||
EngStretchBlt
|
EngStretchBlt
|
||||||
EngStrokeAndFillPath
|
EngStrokeAndFillPath
|
||||||
EngStrokePath
|
EngStrokePath
|
||||||
|
|
33
reactos/subsys/win32k/eng/sort.c
Normal file
33
reactos/subsys/win32k/eng/sort.c
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
/*
|
||||||
|
* ReactOS W32 Subsystem
|
||||||
|
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
*/
|
||||||
|
/* $Id: sort.c,v 1.1 2003/07/12 12:45:29 gvg Exp $ */
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <ddk/winddi.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
|
void STDCALL
|
||||||
|
EngSort(IN OUT PBYTE Buf, IN ULONG ElemSize, IN ULONG ElemCount, IN SORTCOMP CompFunc)
|
||||||
|
{
|
||||||
|
qsort(Buf, ElemSize, ElemCount, CompFunc);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* EOF */
|
|
@ -1,4 +1,4 @@
|
||||||
# $Id: makefile,v 1.68 2003/06/21 18:06:11 ekohl Exp $
|
# $Id: makefile,v 1.69 2003/07/12 12:45:29 gvg Exp $
|
||||||
|
|
||||||
PATH_TO_TOP = ../..
|
PATH_TO_TOP = ../..
|
||||||
|
|
||||||
|
@ -31,12 +31,13 @@ TARGET_CFLAGS =\
|
||||||
|
|
||||||
TARGET_LFLAGS =\
|
TARGET_LFLAGS =\
|
||||||
$(PATH_TO_TOP)/dk/nkm/lib/freetype.a \
|
$(PATH_TO_TOP)/dk/nkm/lib/freetype.a \
|
||||||
|
$(PATH_TO_TOP)/dk/w32/lib/rosrtl.a \
|
||||||
--disable-stdcall-fixup
|
--disable-stdcall-fixup
|
||||||
|
|
||||||
ENG_OBJECTS= eng/debug.o eng/mem.o eng/brush.o eng/bitblt.o eng/clip.o \
|
ENG_OBJECTS= eng/debug.o eng/mem.o eng/brush.o eng/bitblt.o eng/clip.o \
|
||||||
eng/copybits.o eng/device.o eng/handle.o eng/lineto.o eng/paint.o \
|
eng/copybits.o eng/device.o eng/handle.o eng/lineto.o eng/paint.o \
|
||||||
eng/palette.o eng/perfcnt.o eng/surface.o eng/xlate.o eng/transblt.o \
|
eng/palette.o eng/perfcnt.o eng/surface.o eng/xlate.o eng/transblt.o \
|
||||||
eng/mouse.o eng/misc.o eng/nls.o
|
eng/mouse.o eng/misc.o eng/nls.o eng/sort.o
|
||||||
|
|
||||||
MAIN_OBJECTS = main/dllmain.o main/svctabm.o
|
MAIN_OBJECTS = main/dllmain.o main/svctabm.o
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,6 @@ STUB(EngSetLastError)
|
||||||
STUB(EngSetPointerShape)
|
STUB(EngSetPointerShape)
|
||||||
STUB(EngSetPointerTag)
|
STUB(EngSetPointerTag)
|
||||||
STUB(EngSetPrinterData)
|
STUB(EngSetPrinterData)
|
||||||
STUB(EngSort)
|
|
||||||
STUB(EngStretchBlt)
|
STUB(EngStretchBlt)
|
||||||
STUB(EngStrokeAndFillPath)
|
STUB(EngStrokeAndFillPath)
|
||||||
STUB(EngStrokePath)
|
STUB(EngStrokePath)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
; $Id: win32k.def,v 1.17 2003/06/21 18:06:11 ekohl Exp $
|
; $Id: win32k.def,v 1.18 2003/07/12 12:45:29 gvg Exp $
|
||||||
;
|
;
|
||||||
; win32k.def
|
; win32k.def
|
||||||
;
|
;
|
||||||
|
@ -92,7 +92,7 @@ EngSetLastError
|
||||||
EngSetPointerShape
|
EngSetPointerShape
|
||||||
EngSetPointerTag
|
EngSetPointerTag
|
||||||
EngSetPrinterData
|
EngSetPrinterData
|
||||||
EngSort
|
EngSort@16
|
||||||
EngStretchBlt
|
EngStretchBlt
|
||||||
EngStrokeAndFillPath
|
EngStrokeAndFillPath
|
||||||
EngStrokePath
|
EngStrokePath
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
; $Id: win32k.edf,v 1.11 2003/06/21 18:06:11 ekohl Exp $
|
; $Id: win32k.edf,v 1.12 2003/07/12 12:45:29 gvg Exp $
|
||||||
;
|
;
|
||||||
; win32k.def
|
; win32k.def
|
||||||
;
|
;
|
||||||
|
@ -92,7 +92,7 @@ EngSetLastError
|
||||||
EngSetPointerShape
|
EngSetPointerShape
|
||||||
EngSetPointerTag
|
EngSetPointerTag
|
||||||
EngSetPrinterData
|
EngSetPrinterData
|
||||||
EngSort
|
EngSort=EngSort@16
|
||||||
EngStretchBlt
|
EngStretchBlt
|
||||||
EngStrokeAndFillPath
|
EngStrokeAndFillPath
|
||||||
EngStrokePath
|
EngStrokePath
|
||||||
|
|
Loading…
Reference in a new issue