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