File: wvsorter.cc

package info (click to toggle)
wvstreams 4.6.1-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,420 kB
  • sloc: cpp: 64,196; ansic: 4,154; sh: 4,025; makefile: 546; perl: 402
file content (20 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Worldvisions Weaver Software:
 *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
 * 
 * An iterator that can sort anything that has an Iter subclass with the
 * right member functions.
 * 
 * See wvsorter.h.
 */
#include "wvsorter.h"

WvSorterBase::CompareFunc *WvSorterBase::actual_compare;

int WvSorterBase::magic_compare(const void *_a, const void *_b)
{
    void *a = *(void **)_a, *b = *(void **)_b;
    return actual_compare(a, b);
}