xref: /openbsd-src/gnu/usr.bin/binutils/include/sort.h (revision d2201f2f89f0be1a0be6f7568000ed297414a06d)
15f210c2aSfgsch /* Sorting algorithms.
2*d2201f2fSdrahn    Copyright (C) 2000, 2002 Free Software Foundation, Inc.
35f210c2aSfgsch    Contributed by Mark Mitchell <mark@codesourcery.com>.
45f210c2aSfgsch 
5*d2201f2fSdrahn This file is part of GCC.
65f210c2aSfgsch 
7*d2201f2fSdrahn GCC is free software; you can redistribute it and/or modify it
85f210c2aSfgsch under the terms of the GNU General Public License as published by
95f210c2aSfgsch the Free Software Foundation; either version 2, or (at your option)
105f210c2aSfgsch any later version.
115f210c2aSfgsch 
12*d2201f2fSdrahn GCC is distributed in the hope that it will be useful, but
135f210c2aSfgsch WITHOUT ANY WARRANTY; without even the implied warranty of
145f210c2aSfgsch MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
155f210c2aSfgsch General Public License for more details.
165f210c2aSfgsch 
175f210c2aSfgsch You should have received a copy of the GNU General Public License
18*d2201f2fSdrahn along with GCC; see the file COPYING.  If not, write to
195f210c2aSfgsch the Free Software Foundation, 59 Temple Place - Suite 330,
205f210c2aSfgsch Boston, MA 02111-1307, USA.  */
215f210c2aSfgsch 
225f210c2aSfgsch #ifndef SORT_H
235f210c2aSfgsch #define SORT_H
245f210c2aSfgsch 
255f210c2aSfgsch #include <sys/types.h> /* For size_t */
265f210c2aSfgsch #ifdef __STDC__
275f210c2aSfgsch #include <stddef.h>
285f210c2aSfgsch #endif	/* __STDC__ */
295f210c2aSfgsch 
305f210c2aSfgsch #ifdef __cplusplus
315f210c2aSfgsch extern "C" {
325f210c2aSfgsch #endif /* __cplusplus */
335f210c2aSfgsch 
34*d2201f2fSdrahn #include "ansidecl.h"
355f210c2aSfgsch 
365f210c2aSfgsch /* Sort an array of pointers.  */
375f210c2aSfgsch 
385f210c2aSfgsch extern void sort_pointers PARAMS ((size_t, void **, void **));
395f210c2aSfgsch 
405f210c2aSfgsch #ifdef __cplusplus
415f210c2aSfgsch }
425f210c2aSfgsch #endif /* __cplusplus */
435f210c2aSfgsch 
445f210c2aSfgsch #endif /* SORT_H */
455f210c2aSfgsch 
465f210c2aSfgsch 
475f210c2aSfgsch 
485f210c2aSfgsch 
49