// The following ifdef block is the standard way of creating macros which make exporting // from a DLL simpler. All files within this DLL are compiled with the SORTLIBRARY_EXPORTS // symbol defined on the command line. This symbol should not be defined on any project // that uses this DLL. This way any other project whose source files include this file see // SORTLIBRARY_API functions as being imported from a DLL, whereas this DLL sees symbols // defined with this macro as being exported. #ifdef SORTLIBRARY_EXPORTS #define SORTLIBRARY_API __declspec(dllexport) #else #define SORTLIBRARY_API __declspec(dllimport) #endif #ifndef _SORTLIBRARY_H_ #define _SORTLIBRARY_H_ #include "sort.h" #ifdef __cplusplus extern "C" { #endif SORTLIBRARY_API void sedgesort (KEY_T array[], int len); SORTLIBRARY_API void insort (KEY_T array[], int len); SORTLIBRARY_API void quickersort (KEY_T array[], int lower, int upper); SORTLIBRARY_API void partial_quickersort (KEY_T array[], int lower, int upper); SORTLIBRARY_API void dualPivotQuicksort(KEY_T a[], int left, int right); SORTLIBRARY_API void flashsort(KEY_T a[], int n, double scaleFactor); #ifdef __cplusplus } #endif #endif // _SORTLIBRARY_H_