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