~ubuntu-branches/ubuntu/lucid/bogofilter/lucid-updates

« back to all changes in this revision

Viewing changes to src/listsort.h

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-05-06 05:41:52 UTC
  • mfrom: (1.1.11 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090506054152-tgameecssbuv4np6
Tags: 1.2.0-2ubuntu1
* Merge from debian unstable, remaining changes: LP: #372497
  - don't build qdbm.
  - Don't build tokyocabinet support as it's in universe.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _LISTSORT_H
 
2
#define _LISTSORT_H
 
3
 
 
4
#define LISTSORT
 
5
 
 
6
#include "bftypes.h"
 
7
 
 
8
typedef struct element element;
 
9
struct element {
 
10
    element *next, *prev;
 
11
    int i;
 
12
};
 
13
 
 
14
typedef int fcn_compare(const element *a, const element *b);
 
15
 
 
16
extern element *listsort(element *list, fcn_compare *compare);
 
17
 
 
18
#endif