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