xref: /dflybsd-src/contrib/gcc-4.7/include/sort.h (revision 04febcfb30580676d3e95f58a16c5137ee478b32)
1*e4b17023SJohn Marino /* Sorting algorithms.
2*e4b17023SJohn Marino    Copyright (C) 2000, 2002 Free Software Foundation, Inc.
3*e4b17023SJohn Marino    Contributed by Mark Mitchell <mark@codesourcery.com>.
4*e4b17023SJohn Marino 
5*e4b17023SJohn Marino This file is part of GCC.
6*e4b17023SJohn Marino 
7*e4b17023SJohn Marino GCC is free software; you can redistribute it and/or modify it
8*e4b17023SJohn Marino under the terms of the GNU General Public License as published by
9*e4b17023SJohn Marino the Free Software Foundation; either version 2, or (at your option)
10*e4b17023SJohn Marino any later version.
11*e4b17023SJohn Marino 
12*e4b17023SJohn Marino GCC is distributed in the hope that it will be useful, but
13*e4b17023SJohn Marino WITHOUT ANY WARRANTY; without even the implied warranty of
14*e4b17023SJohn Marino MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15*e4b17023SJohn Marino General Public License for more details.
16*e4b17023SJohn Marino 
17*e4b17023SJohn Marino You should have received a copy of the GNU General Public License
18*e4b17023SJohn Marino along with GCC; see the file COPYING.  If not, write to
19*e4b17023SJohn Marino the Free Software Foundation, 51 Franklin Street - Fifth Floor,
20*e4b17023SJohn Marino Boston, MA 02110-1301, USA.  */
21*e4b17023SJohn Marino 
22*e4b17023SJohn Marino #ifndef SORT_H
23*e4b17023SJohn Marino #define SORT_H
24*e4b17023SJohn Marino 
25*e4b17023SJohn Marino #include <sys/types.h> /* For size_t */
26*e4b17023SJohn Marino #ifdef __STDC__
27*e4b17023SJohn Marino #include <stddef.h>
28*e4b17023SJohn Marino #endif	/* __STDC__ */
29*e4b17023SJohn Marino 
30*e4b17023SJohn Marino #ifdef __cplusplus
31*e4b17023SJohn Marino extern "C" {
32*e4b17023SJohn Marino #endif /* __cplusplus */
33*e4b17023SJohn Marino 
34*e4b17023SJohn Marino #include "ansidecl.h"
35*e4b17023SJohn Marino 
36*e4b17023SJohn Marino /* Sort an array of pointers.  */
37*e4b17023SJohn Marino 
38*e4b17023SJohn Marino extern void sort_pointers (size_t, void **, void **);
39*e4b17023SJohn Marino 
40*e4b17023SJohn Marino #ifdef __cplusplus
41*e4b17023SJohn Marino }
42*e4b17023SJohn Marino #endif /* __cplusplus */
43*e4b17023SJohn Marino 
44*e4b17023SJohn Marino #endif /* SORT_H */
45*e4b17023SJohn Marino 
46*e4b17023SJohn Marino 
47*e4b17023SJohn Marino 
48*e4b17023SJohn Marino 
49