1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
/*
------------------------------------------------------------------------------
A license is hereby granted to reproduce this software source code and
to create executable versions from this source code for personal,
non-commercial use. The copyright notice included with the software
must be maintained in all copies produced.
THIS PROGRAM IS PROVIDED "AS IS". THE AUTHOR PROVIDES NO WARRANTIES
WHATSOEVER, EXPRESSED OR IMPLIED, INCLUDING WARRANTIES OF
MERCHANTABILITY, TITLE, OR FITNESS FOR ANY PARTICULAR PURPOSE. THE
AUTHOR DOES NOT WARRANT THAT USE OF THIS PROGRAM DOES NOT INFRINGE THE
INTELLECTUAL PROPERTY RIGHTS OF ANY THIRD PARTY IN ANY COUNTRY.
Copyright (c) 1995, John Conover, All Rights Reserved.
Comments and/or bug reports should be addressed to:
john@johncon.com (John Conover)
------------------------------------------------------------------------------
qsortlist.h, general include file for qsortlist.c
$Revision: 1.0 $
$Date: 1995/04/22 05:14:50 $
$Id: qsortlist.h,v 1.0 1995/04/22 05:14:50 john Exp $
$Log: qsortlist.h,v $
* Revision 1.0 1995/04/22 05:14:50 john
* Initial revision
*
*/
#ifndef _QSORTLIST_H /* if not defined then qsortlist.h has not yet been included */
#define _QSORTLIST_H
#define QSORTLIST_H_ID "$Id: qsortlist.h,v 1.0 1995/04/22 05:14:50 john Exp $" /* module version */
typedef RELEVANCE LIST; /* LIST is internal to qsortlist module */
typedef LIST *list; /* list is external to qsortlist module */
#define element_comp(x,y) (y)->count - (x)->count /* comparison function for qsortlist */
#ifdef __STDC__
extern void qsortlist (list *top, list bottom);
#else
extern void qsortlist ();
#endif
#endif
|