src/clipsrules/core/sortfun.c File Reference

#include "setup.h"
#include "argacces.h"
#include "dffnxfun.h"
#include "envrnmnt.h"
#include "evaluatn.h"
#include "extnfunc.h"
#include "memalloc.h"
#include "multifld.h"
#include "sysdep.h"
#include "sortfun.h"

Include dependency graph for sortfun.c:

Go to the source code of this file.

Classes

struct  sortFunctionData

Defines

#define _SORTFUN_SOURCE_
#define SORTFUN_DATA   7
#define SortFunctionData(theEnv)   ((struct sortFunctionData *) GetEnvironmentData(theEnv,SORTFUN_DATA))

Functions

globle void SortFunctionDefinitions (void *theEnv)
globle void SortFunction (void *theEnv, DATA_OBJECT_PTR returnValue)
void MergeSort (void *theEnv, unsigned long listSize, DATA_OBJECT *theList, int(*swapFunction)(void *, DATA_OBJECT *, DATA_OBJECT *))


Define Documentation

#define _SORTFUN_SOURCE_

Definition at line 26 of file sortfun.c.

#define SORTFUN_DATA   7

Definition at line 41 of file sortfun.c.

#define SortFunctionData ( theEnv   )     ((struct sortFunctionData *) GetEnvironmentData(theEnv,SORTFUN_DATA))

Definition at line 48 of file sortfun.c.


Function Documentation

void MergeSort ( void *  theEnv,
unsigned long  listSize,
DATA_OBJECT theList,
int(*)(void *, DATA_OBJECT *, DATA_OBJECT *)  swapFunction 
)

Definition at line 295 of file sortfun.c.

globle void SortFunction ( void *  theEnv,
DATA_OBJECT_PTR  returnValue 
)

Definition at line 112 of file sortfun.c.

globle void SortFunctionDefinitions ( void *  theEnv  ) 

Definition at line 64 of file sortfun.c.


Generated on Mon Jan 10 22:33:42 2011 by  doxygen 1.5.6