177298Sobrien/* Sorting algorithms. 2104834Sobrien Copyright (C) 2000, 2002 Free Software Foundation, Inc. 377298Sobrien Contributed by Mark Mitchell <mark@codesourcery.com>. 477298Sobrien 589857SobrienThis file is part of GCC. 677298Sobrien 789857SobrienGCC is free software; you can redistribute it and/or modify it 877298Sobrienunder the terms of the GNU General Public License as published by 977298Sobrienthe Free Software Foundation; either version 2, or (at your option) 1077298Sobrienany later version. 1177298Sobrien 1289857SobrienGCC is distributed in the hope that it will be useful, but 1377298SobrienWITHOUT ANY WARRANTY; without even the implied warranty of 1477298SobrienMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1577298SobrienGeneral Public License for more details. 1677298Sobrien 1777298SobrienYou should have received a copy of the GNU General Public License 1889857Sobrienalong with GCC; see the file COPYING. If not, write to 19218822Sdimthe Free Software Foundation, 51 Franklin Street - Fifth Floor, 20218822SdimBoston, MA 02110-1301, USA. */ 2177298Sobrien 2277298Sobrien#ifndef SORT_H 2377298Sobrien#define SORT_H 2477298Sobrien 2577298Sobrien#include <sys/types.h> /* For size_t */ 2677298Sobrien#ifdef __STDC__ 2777298Sobrien#include <stddef.h> 2877298Sobrien#endif /* __STDC__ */ 2977298Sobrien 3077298Sobrien#ifdef __cplusplus 3177298Sobrienextern "C" { 3277298Sobrien#endif /* __cplusplus */ 3377298Sobrien 34104834Sobrien#include "ansidecl.h" 3577298Sobrien 3677298Sobrien/* Sort an array of pointers. */ 3777298Sobrien 38218822Sdimextern void sort_pointers (size_t, void **, void **); 3977298Sobrien 4077298Sobrien#ifdef __cplusplus 4177298Sobrien} 4277298Sobrien#endif /* __cplusplus */ 4377298Sobrien 4477298Sobrien#endif /* SORT_H */ 4577298Sobrien 4677298Sobrien 4777298Sobrien 4877298Sobrien 49